diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2628bebd..53a65de0 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -94,6 +94,7 @@ docs/CollectionType.md docs/ComplianceApi.md docs/ComplianceResult.md docs/ComplianceResultFullPayload.md +docs/ComplianceResultStatusesEnum.md docs/ComplianceScreeningConfigurationApi.md docs/ComplianceScreeningResult.md docs/ComplianceScreeningResultFullPayload.md @@ -210,6 +211,22 @@ docs/DropTransactionRequest.md docs/DropTransactionResponse.md docs/EVMTokenCreateParamsDto.md docs/EditGasStationConfigurationResponse.md +docs/EmbeddedWallet.md +docs/EmbeddedWalletAccount.md +docs/EmbeddedWalletAddressDetails.md +docs/EmbeddedWalletAlgoritm.md +docs/EmbeddedWalletAssetBalance.md +docs/EmbeddedWalletAssetResponse.md +docs/EmbeddedWalletAssetRewardInfo.md +docs/EmbeddedWalletDevice.md +docs/EmbeddedWalletDeviceKeySetupResponse.md +docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md +docs/EmbeddedWalletLatestBackupKey.md +docs/EmbeddedWalletLatestBackupResponse.md +docs/EmbeddedWalletPaginatedAddressesResponse.md +docs/EmbeddedWalletPaginatedAssetsResponse.md +docs/EmbeddedWalletPaginatedWalletsResponse.md +docs/EmbeddedWalletSetUpStatus.md docs/EmbeddedWalletsApi.md docs/ErrorResponse.md docs/ErrorResponseError.md @@ -759,6 +776,7 @@ src/main/java/com/fireblocks/sdk/model/CollectionTokenMetadataDto.java src/main/java/com/fireblocks/sdk/model/CollectionType.java src/main/java/com/fireblocks/sdk/model/ComplianceResult.java src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java +src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResult.java src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java src/main/java/com/fireblocks/sdk/model/ConfigChangeRequestStatus.java @@ -868,6 +886,22 @@ src/main/java/com/fireblocks/sdk/model/DropTransactionRequest.java src/main/java/com/fireblocks/sdk/model/DropTransactionResponse.java src/main/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDto.java src/main/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponse.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java +src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java src/main/java/com/fireblocks/sdk/model/ErrorResponse.java src/main/java/com/fireblocks/sdk/model/ErrorResponseError.java src/main/java/com/fireblocks/sdk/model/ErrorSchema.java @@ -1367,6 +1401,7 @@ src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataAttributeDtoTest.j src/test/java/com/fireblocks/sdk/model/CollectionTokenMetadataDtoTest.java src/test/java/com/fireblocks/sdk/model/CollectionTypeTest.java src/test/java/com/fireblocks/sdk/model/ComplianceResultFullPayloadTest.java +src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayloadTest.java src/test/java/com/fireblocks/sdk/model/ComplianceScreeningResultTest.java @@ -1477,6 +1512,22 @@ src/test/java/com/fireblocks/sdk/model/DropTransactionRequestTest.java src/test/java/com/fireblocks/sdk/model/DropTransactionResponseTest.java src/test/java/com/fireblocks/sdk/model/EVMTokenCreateParamsDtoTest.java src/test/java/com/fireblocks/sdk/model/EditGasStationConfigurationResponseTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java +src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java src/test/java/com/fireblocks/sdk/model/ErrorResponseErrorTest.java src/test/java/com/fireblocks/sdk/model/ErrorResponseTest.java src/test/java/com/fireblocks/sdk/model/ErrorSchemaTest.java diff --git a/README.md b/README.md index 363daa83..63fa61ba 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 10.1.1 + 0.0.0 compile ``` @@ -42,7 +42,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.fireblocks.sdk:fireblocks-sdk:10.1.1" +compile "com.fireblocks.sdk:fireblocks-sdk:0.0.0" ``` ### Others @@ -55,7 +55,7 @@ mvn clean package Then manually install the following JARs: -- `target/fireblocks-sdk-10.1.1.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` @@ -198,8 +198,22 @@ Class | Method | HTTP request | Description *DeployedContractsApi* | [**getDeployedContractByAddress**](docs/DeployedContractsApi.md#getDeployedContractByAddress) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data *DeployedContractsApi* | [**getDeployedContractById**](docs/DeployedContractsApi.md#getDeployedContractById) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id *DeployedContractsApi* | [**getDeployedContracts**](docs/DeployedContractsApi.md#getDeployedContracts) | **GET** /tokenization/contracts | List deployed contracts data -*EmbeddedWalletsApi* | [**getPublicKeyInfoForAddressNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoForAddressNcw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset -*EmbeddedWalletsApi* | [**getPublicKeyInfoNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/{walletId}/public_key_info | Get the public key for a derivation path +*EmbeddedWalletsApi* | [**addEmbeddedWalletAsset**](docs/EmbeddedWalletsApi.md#addEmbeddedWalletAsset) | **POST** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Add asset to account +*EmbeddedWalletsApi* | [**createEmbeddedWallet**](docs/EmbeddedWalletsApi.md#createEmbeddedWallet) | **POST** /ncw/wallets | Create a new wallet +*EmbeddedWalletsApi* | [**createEmbeddedWalletAccount**](docs/EmbeddedWalletsApi.md#createEmbeddedWalletAccount) | **POST** /ncw/wallets/{walletId}/accounts | Create a new account +*EmbeddedWalletsApi* | [**getEmbeddedWallet**](docs/EmbeddedWalletsApi.md#getEmbeddedWallet) | **GET** /ncw/wallets/{walletId} | Get a wallet +*EmbeddedWalletsApi* | [**getEmbeddedWalletAccount**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAccount) | **GET** /ncw/wallets/{walletId}/accounts/{accountId} | Get a account +*EmbeddedWalletsApi* | [**getEmbeddedWalletAddresses**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAddresses) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses | Retrieve asset addresses +*EmbeddedWalletsApi* | [**getEmbeddedWalletAsset**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAsset) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Retrieve asset +*EmbeddedWalletsApi* | [**getEmbeddedWalletAssetBalance**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletAssetBalance) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Retrieve asset balance +*EmbeddedWalletsApi* | [**getEmbeddedWalletDevice**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletDevice) | **GET** /ncw/wallets/{walletId}/devices/{deviceId} | Get Embedded Wallet Device +*EmbeddedWalletsApi* | [**getEmbeddedWalletDeviceSetupState**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletDeviceSetupState) | **GET** /ncw/wallets/{walletId}/devices/{deviceId}/setup_status | Get device key setup state +*EmbeddedWalletsApi* | [**getEmbeddedWalletLatestBackup**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletLatestBackup) | **GET** /ncw/wallets/{walletId}/backup/latest | Get wallet Latest Backup details +*EmbeddedWalletsApi* | [**getEmbeddedWalletPublicKeyInfoForAddress**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletPublicKeyInfoForAddress) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset +*EmbeddedWalletsApi* | [**getEmbeddedWalletSupportedAssets**](docs/EmbeddedWalletsApi.md#getEmbeddedWalletSupportedAssets) | **GET** /ncw/wallets/supported_assets | Retrieve supported assets +*EmbeddedWalletsApi* | [**getEmbeddedWallets**](docs/EmbeddedWalletsApi.md#getEmbeddedWallets) | **GET** /ncw/wallets | List wallets +*EmbeddedWalletsApi* | [**getPublicKeyInfoNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/wallets/{walletId}/public_key_info | Get the public key for a derivation path +*EmbeddedWalletsApi* | [**refreshEmbeddedWalletAssetBalance**](docs/EmbeddedWalletsApi.md#refreshEmbeddedWalletAssetBalance) | **PUT** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Refresh asset balance *ExchangeAccountsApi* | [**addExchangeAccount**](docs/ExchangeAccountsApi.md#addExchangeAccount) | **POST** /exchange_accounts | Add an exchange account *ExchangeAccountsApi* | [**convertAssets**](docs/ExchangeAccountsApi.md#convertAssets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset. *ExchangeAccountsApi* | [**getExchangeAccount**](docs/ExchangeAccountsApi.md#getExchangeAccount) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account @@ -334,7 +348,7 @@ Class | Method | HTTP request | Description *TokenizationApi* | [**issueTokenMultiChain**](docs/TokenizationApi.md#issueTokenMultiChain) | **POST** /tokenization/multichain/tokens | Issue a token on one or more blockchains *TokenizationApi* | [**link**](docs/TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a contract *TokenizationApi* | [**mintCollectionToken**](docs/TokenizationApi.md#mintCollectionToken) | **POST** /tokenization/collections/{id}/tokens/mint | Mint tokens -*TokenizationApi* | [**reIssueTokenMultiChain**](docs/TokenizationApi.md#reIssueTokenMultiChain) | **POST** /tokenization/multichain/token/{tokenLinkId} | Reissue a multichain token +*TokenizationApi* | [**reIssueTokenMultiChain**](docs/TokenizationApi.md#reIssueTokenMultiChain) | **POST** /tokenization/multichain/reissue/token/{tokenLinkId} | Reissue a multichain token *TokenizationApi* | [**unlink**](docs/TokenizationApi.md#unlink) | **DELETE** /tokenization/tokens/{id} | Unlink a token *TokenizationApi* | [**unlinkCollection**](docs/TokenizationApi.md#unlinkCollection) | **DELETE** /tokenization/collections/{id} | Delete a collection link *TransactionsApi* | [**cancelTransaction**](docs/TransactionsApi.md#cancelTransaction) | **POST** /transactions/{txId}/cancel | Cancel a transaction @@ -492,6 +506,7 @@ Class | Method | HTTP request | Description - [CollectionType](docs/CollectionType.md) - [ComplianceResult](docs/ComplianceResult.md) - [ComplianceResultFullPayload](docs/ComplianceResultFullPayload.md) + - [ComplianceResultStatusesEnum](docs/ComplianceResultStatusesEnum.md) - [ComplianceScreeningResult](docs/ComplianceScreeningResult.md) - [ComplianceScreeningResultFullPayload](docs/ComplianceScreeningResultFullPayload.md) - [ConfigChangeRequestStatus](docs/ConfigChangeRequestStatus.md) @@ -601,6 +616,22 @@ Class | Method | HTTP request | Description - [DropTransactionResponse](docs/DropTransactionResponse.md) - [EVMTokenCreateParamsDto](docs/EVMTokenCreateParamsDto.md) - [EditGasStationConfigurationResponse](docs/EditGasStationConfigurationResponse.md) + - [EmbeddedWallet](docs/EmbeddedWallet.md) + - [EmbeddedWalletAccount](docs/EmbeddedWalletAccount.md) + - [EmbeddedWalletAddressDetails](docs/EmbeddedWalletAddressDetails.md) + - [EmbeddedWalletAlgoritm](docs/EmbeddedWalletAlgoritm.md) + - [EmbeddedWalletAssetBalance](docs/EmbeddedWalletAssetBalance.md) + - [EmbeddedWalletAssetResponse](docs/EmbeddedWalletAssetResponse.md) + - [EmbeddedWalletAssetRewardInfo](docs/EmbeddedWalletAssetRewardInfo.md) + - [EmbeddedWalletDevice](docs/EmbeddedWalletDevice.md) + - [EmbeddedWalletDeviceKeySetupResponse](docs/EmbeddedWalletDeviceKeySetupResponse.md) + - [EmbeddedWalletDeviceKeySetupResponseSetupStatusInner](docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md) + - [EmbeddedWalletLatestBackupKey](docs/EmbeddedWalletLatestBackupKey.md) + - [EmbeddedWalletLatestBackupResponse](docs/EmbeddedWalletLatestBackupResponse.md) + - [EmbeddedWalletPaginatedAddressesResponse](docs/EmbeddedWalletPaginatedAddressesResponse.md) + - [EmbeddedWalletPaginatedAssetsResponse](docs/EmbeddedWalletPaginatedAssetsResponse.md) + - [EmbeddedWalletPaginatedWalletsResponse](docs/EmbeddedWalletPaginatedWalletsResponse.md) + - [EmbeddedWalletSetUpStatus](docs/EmbeddedWalletSetUpStatus.md) - [ErrorResponse](docs/ErrorResponse.md) - [ErrorResponseError](docs/ErrorResponseError.md) - [ErrorSchema](docs/ErrorSchema.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 247817cb..8b26ddde 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -64,6 +64,7 @@ paths: tags: - Vaults x-internal: true + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -116,6 +117,7 @@ paths: summary: Create a new vault account tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -327,6 +329,7 @@ paths: summary: Bulk creation of new vault accounts tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -436,6 +439,7 @@ paths: summary: List vault accounts (Paginated) tags: - Vaults + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -508,6 +512,7 @@ paths: summary: Find a vault account by ID tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -701,6 +706,7 @@ paths: summary: List asset wallets (Paginated) tags: - Vaults + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -782,6 +788,7 @@ paths: summary: Hide a vault account in the console tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -861,6 +868,7 @@ paths: summary: Unhide a vault account in the console tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -950,6 +958,7 @@ paths: summary: Activate a wallet in a vault account tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -1031,6 +1040,7 @@ paths: summary: Set an AML/KYT customer reference ID for a vault account tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -1120,6 +1130,7 @@ paths: summary: Turn autofueling on or off tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -1189,6 +1200,7 @@ paths: summary: Get the asset balance for a vault account tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -1283,6 +1295,7 @@ paths: summary: Create a new wallet tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -1375,6 +1388,7 @@ paths: summary: Refresh asset balance data tags: - Vaults + x-rate-limit-category: async x-readme: code-samples: - language: python @@ -1459,6 +1473,7 @@ paths: tags: - Vaults x-internal: true + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -1532,6 +1547,7 @@ paths: summary: Create new asset deposit address tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -1636,6 +1652,7 @@ paths: summary: List addresses (Paginated) tags: - Vaults + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -1731,6 +1748,7 @@ paths: summary: Get the maximum spendable amount in a single transaction. tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -1838,6 +1856,7 @@ paths: summary: Update address description tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -2043,6 +2062,7 @@ paths: summary: Convert a segwit address to legacy format tags: - Vaults + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -2116,6 +2136,7 @@ paths: summary: Get UTXO unspent inputs information tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -2197,6 +2218,7 @@ paths: summary: Get the public key information tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -2295,6 +2317,7 @@ paths: summary: Get the public key for a vault account tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -2369,6 +2392,7 @@ paths: summary: Get asset balance for chosen assets tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -2451,6 +2475,7 @@ paths: summary: Bulk creation of wallets tags: - Assets + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -2510,6 +2535,7 @@ paths: summary: Get vault balance by asset tags: - Vaults + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -2535,12 +2561,1148 @@ paths: - lang: Python source: response = fireblocks.vaults.get_vault_balance_by_asset(asset_id); x-accepts: application/json - /ncw/{walletId}/public_key_info: + /ncw/wallets/supported_assets: + get: + description: Get all the available supported assets for the Non-Custodial Wallet + operationId: GetEmbeddedWalletSupportedAssets + parameters: + - description: Next page cursor to fetch + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Items per page + example: 500 + explode: true + in: query + name: pageSize + required: false + schema: + default: 200 + maximum: 400 + type: number + style: form + - description: Only base assets + example: true + explode: true + in: query + name: onlyBaseAssets + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletPaginatedAssetsResponse' + description: Successful response + 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: Retrieve supported assets + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletSupportedAssets(embeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWalletSupportedAssets(pageCursor,\ + \ pageSize, onlyBaseAssets);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_supported_assets(page_cursor,\ + \ page_size, only_base_assets);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletSupportedAssets(embeddedWalletsApiGetEmbeddedWalletSupportedAssetsRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWalletSupportedAssets(pageCursor,\ + \ pageSize, onlyBaseAssets);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_supported_assets(page_cursor,\ + \ page_size, only_base_assets);" + x-accepts: application/json + /ncw/wallets: + get: + description: Get all Non Custodial Wallets + operationId: GetEmbeddedWallets + parameters: + - description: Next page cursor to fetch + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Items per page + example: 500 + explode: true + in: query + name: pageSize + required: false + schema: + default: 200 + maximum: 400 + type: number + style: form + - description: Field(s) to use for sorting + example: createdAt + explode: true + in: query + name: sort + required: false + schema: + default: createdAt + enum: + - createdAt + type: string + style: form + - description: Is the order ascending or descending + example: ASC + explode: true + in: query + name: order + required: false + schema: + default: ASC + enum: + - ASC + - DESC + type: string + style: form + - description: Enabled Wallets + example: true + explode: true + in: query + name: enabled + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletPaginatedWalletsResponse' + description: Successful response + 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: List wallets + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWallets(embeddedWalletsApiGetEmbeddedWalletsRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWallets(pageCursor,\ + \ pageSize, sort, order, enabled);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallets(page_cursor,\ + \ page_size, sort, order, enabled);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWallets(embeddedWalletsApiGetEmbeddedWalletsRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWallets(pageCursor,\ + \ pageSize, sort, order, enabled);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallets(page_cursor,\ + \ page_size, sort, order, enabled);" + x-accepts: application/json + post: + description: Create new Non Custodial Wallet + operationId: CreateEmbeddedWallet + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWallet' + description: Wallet created successfully + 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: Create a new wallet + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.embeddedWallets.createEmbeddedWallet(embeddedWalletsApiCreateEmbeddedWalletRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWallet(idempotencyKey); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.embedded_wallets.create_embedded_wallet(idempotency_key); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.embeddedWallets.createEmbeddedWallet(embeddedWalletsApiCreateEmbeddedWalletRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWallet(idempotencyKey); + - lang: Python + source: response = fireblocks.embedded_wallets.create_embedded_wallet(idempotency_key); + x-accepts: application/json + /ncw/wallets/{walletId}: + get: + description: Get a wallet + operationId: GetEmbeddedWallet + parameters: + - description: Wallet Id + explode: false + in: path + name: walletId + required: true + schema: + example: 550e8400-e29b-41d4-a716-446655440000 + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWallet' + description: Successful response + 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 a wallet + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.embeddedWallets.getEmbeddedWallet(embeddedWalletsApiGetEmbeddedWalletRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallet(walletId); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.embedded_wallets.get_embedded_wallet(wallet_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.embeddedWallets.getEmbeddedWallet(embeddedWalletsApiGetEmbeddedWalletRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallet(walletId); + - lang: Python + source: response = fireblocks.embedded_wallets.get_embedded_wallet(wallet_id); + x-accepts: application/json + /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}: + get: + description: "Get asset under a specific account, under a specific Non Custodial\ + \ Wallet" + operationId: GetEmbeddedWalletAsset + parameters: + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the account + example: "0" + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + - description: The ID of the asset + example: BTC + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletAssetResponse' + description: Successful response + 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: Retrieve asset + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAsset(embeddedWalletsApiGetEmbeddedWalletAssetRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().getEmbeddedWalletAsset(walletId, accountId,\ + \ assetId);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset(wallet_id,\ + \ account_id, asset_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAsset(embeddedWalletsApiGetEmbeddedWalletAssetRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().getEmbeddedWalletAsset(walletId, accountId,\ + \ assetId);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset(wallet_id,\ + \ account_id, asset_id);" + x-accepts: application/json + post: + description: "Get the addresses of a specific asset, under a specific account,\ + \ under a specific Non Custodial Wallet" + operationId: AddEmbeddedWalletAsset + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the account + example: "0" + explode: false + in: path + name: accountId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + - description: The ID of the asset + example: BTC + explode: false + in: path + name: assetId + required: true + schema: + type: string + style: simple + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletAddressDetails' + description: Created + default: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorSchema' + description: Error Response + headers: + X-Request-ID: + $ref: '#/components/headers/X-Request-ID' + summary: Add asset to account + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.addEmbeddedWalletAsset(embeddedWalletsApiAddEmbeddedWalletAssetRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().addEmbeddedWalletAsset(walletId, accountId,\ + \ assetId, idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.add_embedded_wallet_asset(wallet_id,\ + \ account_id, asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.addEmbeddedWalletAsset(embeddedWalletsApiAddEmbeddedWalletAssetRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().addEmbeddedWalletAsset(walletId, accountId,\ + \ assetId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.embedded_wallets.add_embedded_wallet_asset(wallet_id,\ + \ account_id, asset_id, idempotency_key);" + x-accepts: application/json + /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance: + get: + description: "Get balance for specific asset, under a specific account" + operationId: GetEmbeddedWalletAssetBalance + parameters: + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the account + example: "0" + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + - description: The ID of the asset + example: BTC + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletAssetBalance' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorSchema' + description: Error Response + headers: + X-Request-ID: + $ref: '#/components/headers/X-Request-ID' + summary: Retrieve asset balance + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAssetBalance(embeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().getEmbeddedWalletAssetBalance(walletId,\ + \ accountId, assetId);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset_balance(wallet_id,\ + \ account_id, asset_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAssetBalance(embeddedWalletsApiGetEmbeddedWalletAssetBalanceRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().getEmbeddedWalletAssetBalance(walletId,\ + \ accountId, assetId);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_asset_balance(wallet_id,\ + \ account_id, asset_id);" + x-accepts: application/json + put: + description: Refresh the balance of an asset in a specific account + operationId: RefreshEmbeddedWalletAssetBalance + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the account + example: "0" + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + - description: The ID of the asset + example: BTC + explode: false + in: path + name: assetId + required: true + schema: + type: string + x-fb-entity: asset + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletAssetBalance' + description: Successful response + 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: Refresh asset balance + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.refreshEmbeddedWalletAssetBalance(embeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().refreshEmbeddedWalletAssetBalance(walletId,\ + \ accountId, assetId, idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.refresh_embedded_wallet_asset_balance(wallet_id,\ + \ account_id, asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.refreshEmbeddedWalletAssetBalance(embeddedWalletsApiRefreshEmbeddedWalletAssetBalanceRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.embeddedWallets().refreshEmbeddedWalletAssetBalance(walletId,\ + \ accountId, assetId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.embedded_wallets.refresh_embedded_wallet_asset_balance(wallet_id,\ + \ account_id, asset_id, idempotency_key);" + x-accepts: application/json + /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses: + get: + description: "Get the addresses of a specific asset, under a specific account,\ + \ under a specific Non Custodial Wallet" + operationId: GetEmbeddedWalletAddresses + parameters: + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the account + example: "0" + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + - description: The ID of the asset + example: BTC + explode: false + in: path + name: assetId + required: true + schema: + type: string + style: simple + - description: Cursor to the next page + example: MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA== + explode: true + in: query + name: pageCursor + required: false + schema: + type: string + style: form + - description: Items per page + example: 10 + explode: true + in: query + name: pageSize + required: false + schema: + maximum: 100 + minimum: 1 + type: number + style: form + - description: Sort by address + example: address + explode: true + in: query + name: sort + required: false + schema: + default: createdAt + enum: + - address + - createdAt + type: string + style: form + - description: Is the order ascending or descending + example: ASC + explode: true + in: query + name: order + required: false + schema: + default: ASC + enum: + - DESC + - ASC + type: string + style: form + - description: Enabled + example: true + explode: true + in: query + name: enabled + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletPaginatedAddressesResponse' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorSchema' + description: Error Response + headers: + X-Request-ID: + $ref: '#/components/headers/X-Request-ID' + summary: Retrieve asset addresses + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAddresses(embeddedWalletsApiGetEmbeddedWalletAddressesRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWalletAddresses(walletId,\ + \ accountId, assetId, pageCursor, pageSize, sort, order, enabled);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_addresses(wallet_id,\ + \ account_id, asset_id, page_cursor, page_size, sort, order, enabled);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAddresses(embeddedWalletsApiGetEmbeddedWalletAddressesRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWalletAddresses(walletId,\ + \ accountId, assetId, pageCursor, pageSize, sort, order, enabled);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_addresses(wallet_id,\ + \ account_id, asset_id, page_cursor, page_size, sort, order, enabled);" + x-accepts: application/json + /ncw/wallets/{walletId}/accounts: + post: + description: Create a new account under a specific Non Custodial Wallet + operationId: CreateEmbeddedWalletAccount + parameters: + - description: "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." + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + example: 550e8400-e29b-41d4-a716-446655440000 + type: string + style: simple + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletAccount' + description: Account Created + 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: Create a new account + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.createEmbeddedWalletAccount(embeddedWalletsApiCreateEmbeddedWalletAccountRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response =\ + \ fireblocks.embeddedWallets().createEmbeddedWalletAccount(walletId, idempotencyKey);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.create_embedded_wallet_account(wallet_id,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.createEmbeddedWalletAccount(embeddedWalletsApiCreateEmbeddedWalletAccountRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.embeddedWallets().createEmbeddedWalletAccount(walletId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.embedded_wallets.create_embedded_wallet_account(wallet_id,\ + \ idempotency_key);" + x-accepts: application/json + /ncw/wallets/{walletId}/accounts/{accountId}: + get: + description: Get a specific account under a specific Non Custodial Wallet + operationId: GetEmbeddedWalletAccount + parameters: + - description: WalletId + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: The ID of the account + example: "0" + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletAccount' + description: Successful response + 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 a account + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAccount(embeddedWalletsApiGetEmbeddedWalletAccountRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response =\ + \ fireblocks.embeddedWallets().getEmbeddedWalletAccount(walletId, accountId);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_account(wallet_id,\ + \ account_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletAccount(embeddedWalletsApiGetEmbeddedWalletAccountRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.embeddedWallets().getEmbeddedWalletAccount(walletId, accountId);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_account(wallet_id,\ + \ account_id);" + x-accepts: application/json + /ncw/wallets/{walletId}/backup/latest: + get: + description: "Get wallet Latest Backup details, including the deviceId, and\ + \ backup time" + operationId: GetEmbeddedWalletLatestBackup + parameters: + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletLatestBackupResponse' + description: Successful response + 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 wallet Latest Backup details + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletLatestBackup(embeddedWalletsApiGetEmbeddedWalletLatestBackupRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> + response = fireblocks.embeddedWallets().getEmbeddedWalletLatestBackup(walletId); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.embedded_wallets.get_embedded_wallet_latest_backup(wallet_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletLatestBackup(embeddedWalletsApiGetEmbeddedWalletLatestBackupRequest);" + - lang: Java + source: CompletableFuture> + response = fireblocks.embeddedWallets().getEmbeddedWalletLatestBackup(walletId); + - lang: Python + source: response = fireblocks.embedded_wallets.get_embedded_wallet_latest_backup(wallet_id); + x-accepts: application/json + /ncw/wallets/{walletId}/devices/{deviceId}: + get: + description: Get specific device for a specific s Wallet + operationId: GetEmbeddedWalletDevice + parameters: + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: Device Id + example: 9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3 + explode: false + in: path + name: deviceId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletDevice' + description: Successful response + 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 Embedded Wallet Device + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletDevice(embeddedWalletsApiGetEmbeddedWalletDeviceRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDevice(walletId,\ + \ deviceId);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_device(wallet_id,\ + \ device_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletDevice(embeddedWalletsApiGetEmbeddedWalletDeviceRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDevice(walletId,\ + \ deviceId);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_device(wallet_id,\ + \ device_id);" + x-accepts: application/json + /ncw/wallets/{walletId}/devices/{deviceId}/setup_status: + get: + description: Get the state of the specific device setup key under a specific + Non Custodial Wallet + operationId: GetEmbeddedWalletDeviceSetupState + parameters: + - description: Wallet Id + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: walletId + required: true + schema: + type: string + style: simple + - description: Device Id + example: 9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3 + explode: false + in: path + name: deviceId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EmbeddedWalletDeviceKeySetupResponse' + description: Successful response + 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 device key setup state + tags: + - Embedded Wallets + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletDeviceSetupState(embeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWalletDeviceSetupState(walletId,\ + \ deviceId);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_device_setup_state(wallet_id,\ + \ device_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.embeddedWallets.getEmbeddedWalletDeviceSetupState(embeddedWalletsApiGetEmbeddedWalletDeviceSetupStateRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.embeddedWallets().getEmbeddedWalletDeviceSetupState(walletId,\ + \ deviceId);" + - lang: Python + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_device_setup_state(wallet_id,\ + \ device_id);" + x-accepts: application/json + /ncw/wallets/{walletId}/public_key_info: get: description: Gets the public key information based on derivation path and signing algorithm within a Non-Custodial Wallet operationId: getPublicKeyInfoNcw parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: true + schema: + format: uuid + type: string + style: simple - description: The ID of the Non-Custodial wallet explode: false in: path @@ -2576,13 +3738,16 @@ paths: - MPC_ECDSA_SECP256K1 - MPC_ECDSA_SECP256R1 - MPC_EDDSA_ED25519 + example: MPC_EDDSA_ED25519 type: string style: form - - explode: true + - description: Compressed/Uncompressed public key format + explode: true in: query name: compressed required: false schema: + example: true type: boolean style: form responses: @@ -2620,11 +3785,11 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\ - \ derivationPath, algorithm, compressed);" + \ derivationPath, algorithm, xEndUserWalletId, compressed);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\ - \ derivation_path, algorithm, compressed);" + \ derivation_path, algorithm, x_end_user_wallet_id, compressed);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript @@ -2632,17 +3797,27 @@ paths: \ = fireblocks.embeddedWallets.getPublicKeyInfoNcw(embeddedWalletsApiGetPublicKeyInfoNcwRequest);" - lang: Java source: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\ - \ derivationPath, algorithm, compressed);" + \ derivationPath, algorithm, xEndUserWalletId, compressed);" - lang: Python source: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\ - \ derivation_path, algorithm, compressed);" + \ derivation_path, algorithm, x_end_user_wallet_id, compressed);" x-accepts: application/json - /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info: + /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info: get: description: Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet - operationId: getPublicKeyInfoForAddressNcw + operationId: GetEmbeddedWalletPublicKeyInfoForAddress parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: true + schema: + format: uuid + type: string + style: simple - description: The ID of the Non-Custodial wallet explode: false in: path @@ -2696,6 +3871,7 @@ paths: name: compressed required: false schema: + example: true type: boolean style: form responses: @@ -2730,26 +3906,134 @@ paths: name: Fireblocks SDK Javascript example - language: typescript code: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);" + \ = fireblocks.embeddedWallets.getEmbeddedWalletPublicKeyInfoForAddress(embeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\ - \ accountId, assetId, change, addressIndex, compressed);" + code: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletPublicKeyInfoForAddress(walletId,\ + \ accountId, assetId, change, addressIndex, xEndUserWalletId, compressed);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\ - \ account_id, asset_id, change, address_index, compressed);" + code: "response = fireblocks.embedded_wallets.get_embedded_wallet_public_key_info_for_address(wallet_id,\ + \ account_id, asset_id, change, address_index, x_end_user_wallet_id, compressed);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise>\ - \ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);" + \ = fireblocks.embeddedWallets.getEmbeddedWalletPublicKeyInfoForAddress(embeddedWalletsApiGetEmbeddedWalletPublicKeyInfoForAddressRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\ - \ accountId, assetId, change, addressIndex, compressed);" + source: "CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletPublicKeyInfoForAddress(walletId,\ + \ accountId, assetId, change, addressIndex, xEndUserWalletId, compressed);" - lang: Python - source: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\ - \ account_id, asset_id, change, address_index, compressed);" + source: "response = fireblocks.embedded_wallets.get_embedded_wallet_public_key_info_for_address(wallet_id,\ + \ account_id, asset_id, change, address_index, x_end_user_wallet_id, compressed);" + x-accepts: application/json + /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info: + get: + description: Gets the public key of an asset associated with a specific account + within a Non-Custodial Wallet + operationId: getPublicKeyInfoForAddressNcw + parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the Non-Custodial wallet + explode: false + in: path + name: walletId + required: true + schema: + example: 550e8400-e29b-41d4-a716-446655440000 + type: string + style: simple + - description: The ID of the account + explode: false + in: path + name: accountId + required: true + schema: + example: "0" + format: numeric + type: string + style: simple + - description: The ID of the asset + explode: false + in: path + name: assetId + required: true + schema: + example: BTC + type: string + x-fb-entity: asset + style: simple + - description: BIP44 derivation path - change value + explode: false + in: path + name: change + required: true + schema: + example: 0 + type: number + style: simple + - description: BIP44 derivation path - index value + explode: false + in: path + name: addressIndex + required: true + schema: + example: 0 + type: number + style: simple + - description: Compressed/Uncompressed public key format + explode: true + in: query + name: compressed + required: false + schema: + example: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PublicKeyInformation' + description: Public Key Information + 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 the public key of an asset + tags: + - Embedded Wallets + x-internal: true + x-readme: + code-samples: + - language: python + code: "pubKey = fireblocks.NCW.get_public_key_info_by_account_asset(wallet_id,\ + \ asset_id, account_id, change, address_index, compressed)" + name: Fireblocks SDK Python example + - language: javascript + code: "const publicKeyInfoByAccountAssetArgs = {\n assetId: 'ETH',\n accountId:\ + \ 0,\n change: 0,\n addressIndex: 0,\n compressed: true\n}; \ + \ \nconst pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId,\ + \ publicKeyInfoByAccountAssetArgs);\n" + name: Fireblocks SDK Javascript example x-accepts: application/json /workspace/freeze: post: @@ -2820,6 +4104,7 @@ paths: tags: - Exchange accounts x-internal: true + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -2952,6 +4237,7 @@ paths: summary: Pagination list exchange accounts tags: - Exchange accounts + x-rate-limit-category: query x-readme: code-samples: - language: javascript @@ -3020,6 +4306,7 @@ paths: summary: Find a specific exchange account tags: - Exchange accounts + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -3097,6 +4384,7 @@ paths: summary: Internal transfer for exchange accounts tags: - Exchange accounts + x-rate-limit-category: high_compute x-readme: code-samples: - language: typescript @@ -3180,6 +4468,7 @@ paths: asset. tags: - Exchange accounts + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -3251,6 +4540,7 @@ paths: summary: Find an asset for an exchange account tags: - Exchange accounts + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -3308,6 +4598,7 @@ paths: summary: Get public key to encrypt exchange credentials tags: - Exchange accounts + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -3619,7 +4910,6 @@ paths: get: description: | Returns all network connections. - **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. @@ -3658,6 +4948,7 @@ paths: summary: List network connections tags: - Network connections + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -3690,7 +4981,6 @@ paths: post: description: | Initiates a new network connection. - **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. @@ -3748,6 +5038,7 @@ paths: summary: Creates a new network connection tags: - Network connections + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -4131,6 +5422,7 @@ paths: summary: "Returns all network IDs, both local IDs and discoverable remote IDs" tags: - Network connections + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -4213,6 +5505,7 @@ paths: summary: Creates a new Network ID tags: - Network connections + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -6419,6 +7712,7 @@ paths: summary: List external wallets tags: - External wallets + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -6488,6 +7782,7 @@ paths: summary: Create an external wallet tags: - External wallets + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -6550,6 +7845,7 @@ paths: summary: Delete an external wallet tags: - External wallets + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -6609,6 +7905,7 @@ paths: summary: Find an external wallet tags: - External wallets + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -6683,6 +7980,7 @@ paths: summary: Set an AML customer reference ID for an external wallet tags: - External wallets + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -6755,6 +8053,7 @@ paths: summary: Delete an asset from an external wallet tags: - External wallets + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -6828,6 +8127,7 @@ paths: summary: Get an asset from an external wallet tags: - External wallets + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -6920,6 +8220,7 @@ paths: summary: Add an asset to an external wallet. tags: - External wallets + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -6980,6 +8281,7 @@ paths: summary: List contracts tags: - Contracts + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -7043,6 +8345,7 @@ paths: summary: Create a contract tags: - Contracts + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -7098,6 +8401,7 @@ paths: summary: Delete a contract tags: - Contracts + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -7151,6 +8455,7 @@ paths: summary: Find a specific contract tags: - Contracts + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -7210,6 +8515,7 @@ paths: summary: Delete a contract asset tags: - Contracts + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -7276,6 +8582,7 @@ paths: summary: Find a contract asset tags: - Contracts + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -7358,6 +8665,7 @@ paths: summary: Add an asset to a contract tags: - Contracts + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -7416,6 +8724,7 @@ paths: summary: List all asset types supported by Fireblocks - legacy endpoint tags: - Blockchains & assets + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -7697,6 +9006,7 @@ paths: summary: Register an asset tags: - Blockchains & assets + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -7795,6 +9105,7 @@ paths: summary: Get an asset tags: - Blockchains & assets + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -8304,6 +9615,7 @@ paths: summary: List transaction history tags: - Transactions + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -8396,6 +9708,7 @@ paths: summary: Create a new transaction tags: - Transactions + x-rate-limit-category: async x-readme: code-samples: - language: python @@ -8477,6 +9790,7 @@ paths: summary: Estimate transaction fee tags: - Transactions + x-rate-limit-category: high_compute x-readme: code-samples: - language: python @@ -8558,6 +9872,7 @@ paths: summary: Find a specific transaction by Fireblocks transaction ID tags: - Transactions + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -8621,6 +9936,7 @@ paths: summary: Find a specific transaction by external transaction ID tags: - Transactions + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -8700,6 +10016,7 @@ paths: summary: Set confirmation threshold by transaction ID tags: - Transactions + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -8795,6 +10112,7 @@ paths: summary: Drop ETH transaction by ID tags: - Transactions + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -8885,6 +10203,7 @@ paths: summary: Cancel a transaction tags: - Transactions + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -8965,6 +10284,7 @@ paths: summary: Freeze a transaction tags: - Transactions + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -9046,6 +10366,7 @@ paths: summary: Unfreeze a transaction tags: - Transactions + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -9123,6 +10444,7 @@ paths: summary: Validate destination address tags: - Transactions + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -9200,6 +10522,7 @@ paths: summary: rescan array of transactions tags: - Transactions + x-rate-limit-category: async x-readme: code-samples: - language: typescript @@ -9280,6 +10603,7 @@ paths: summary: Set confirmation threshold by transaction hash tags: - Transactions + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -9352,6 +10676,7 @@ paths: summary: Estimate the required fee for an asset tags: - Transactions + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -10290,6 +11615,7 @@ paths: summary: List user groups tags: - User groups (Beta) + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -10688,6 +12014,7 @@ paths: summary: Get audit logs tags: - Audit Logs + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -11057,6 +12384,7 @@ paths: summary: Resend failed webhooks tags: - Webhooks + x-rate-limit-category: async x-readme: code-samples: - language: python @@ -11138,6 +12466,7 @@ paths: summary: Resend failed webhooks for a transaction by ID tags: - Webhooks + x-rate-limit-category: async x-readme: code-samples: - language: python @@ -11369,6 +12698,7 @@ paths: summary: Delete webhook tags: - Webhooks V2 (Beta) + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -11426,6 +12756,7 @@ paths: summary: Get webhook by id tags: - Webhooks V2 (Beta) + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -11489,6 +12820,7 @@ paths: summary: Update webhook tags: - Webhooks V2 (Beta) + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -11634,6 +12966,7 @@ paths: summary: Get all notifications by webhook id tags: - Webhooks V2 (Beta) + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -11716,6 +13049,7 @@ paths: summary: Get notification by id tags: - Webhooks V2 (Beta) + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -11793,6 +13127,7 @@ paths: summary: Resend notification by id tags: - Webhooks V2 (Beta) + x-rate-limit-category: async x-readme: code-samples: - language: typescript @@ -11867,6 +13202,7 @@ paths: summary: Resend notifications by resource Id tags: - Webhooks V2 (Beta) + x-rate-limit-category: async x-readme: code-samples: - language: typescript @@ -12882,6 +14218,7 @@ paths: summary: List all linked tokens tags: - Tokenization + x-rate-limit-category: query x-readme: code-samples: - language: python @@ -12955,6 +14292,7 @@ paths: summary: Issue a new token tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -13040,6 +14378,7 @@ paths: summary: Link a contract tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -13103,6 +14442,7 @@ paths: summary: Unlink a token tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -13160,6 +14500,7 @@ paths: summary: Return a linked token tags: - Tokenization + x-rate-limit-category: read x-readme: code-samples: - language: python @@ -13240,6 +14581,7 @@ paths: summary: Get deterministic address for contract deployment tags: - Tokenization + x-rate-limit-category: read x-readme: code-samples: - language: javascript @@ -13332,6 +14674,7 @@ paths: summary: Issue a token on one or more blockchains tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: javascript @@ -13381,7 +14724,7 @@ paths: \ idempotency_key);" x-content-type: application/json x-accepts: application/json - /tokenization/multichain/token/{tokenLinkId}: + /tokenization/multichain/reissue/token/{tokenLinkId}: post: description: Reissue a multichain token. This endpoint allows you to reissue a token on one or more blockchains. The token must be initially issued using @@ -13450,6 +14793,7 @@ paths: summary: Reissue a multichain token tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: javascript @@ -13538,6 +14882,7 @@ paths: summary: Get collections tags: - Tokenization + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -13605,6 +14950,7 @@ paths: summary: Create a new collection tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -13662,6 +15008,7 @@ paths: summary: Delete a collection link tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -13713,6 +15060,7 @@ paths: summary: Get a collection by id tags: - Tokenization + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -13776,6 +15124,7 @@ paths: summary: Get collection token details tags: - Tokenization + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -13851,6 +15200,7 @@ paths: summary: Mint tokens tags: - Tokenization + x-rate-limit-category: async x-readme: code-samples: - language: typescript @@ -13929,6 +15279,7 @@ paths: summary: Burn tokens tags: - Tokenization + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -14125,6 +15476,7 @@ paths: code: "response = fireblocks.contract_interactions.read_call_function(read_call_function_dto,\ \ contract_address, base_asset_id, idempotency_key);" name: Fireblocks SDK Python example + x-rate-limit-category: read x-codeSamples: - lang: TypeScript source: "const response: Promise>\ @@ -14221,6 +15573,7 @@ paths: code: "response = fireblocks.contract_interactions.write_call_function(write_call_function_dto,\ \ contract_address, base_asset_id, idempotency_key);" name: Fireblocks SDK Python example + x-rate-limit-category: async x-codeSamples: - lang: TypeScript source: "const response: Promise>\ @@ -15234,6 +16587,7 @@ paths: tags: - Admin Quorum x-internal: true + x-rate-limit-category: write x-readme: code-samples: - language: python @@ -15273,6 +16627,7 @@ paths: - ETHERLINK_TEST - MANTLE - MANTLE_TEST + - GUN_GUNZILLA - GUN_GUNZILLA_TEST - ETH_SONEIUM - SONEIUM_MINATO_TEST @@ -15436,6 +16791,7 @@ paths: summary: List all owned tokens (paginated) tags: - NFTs + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -15491,6 +16847,7 @@ paths: - ETHERLINK_TEST - MANTLE - MANTLE_TEST + - GUN_GUNZILLA - GUN_GUNZILLA_TEST - ETH_SONEIUM - SONEIUM_MINATO_TEST @@ -15668,6 +17025,7 @@ paths: summary: List all distinct owned tokens (paginated) tags: - NFTs + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -15800,6 +17158,7 @@ paths: summary: List owned collections (paginated) tags: - NFTs + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -15855,6 +17214,7 @@ paths: summary: List token data by ID tags: - NFTs + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -15879,6 +17239,16 @@ paths: Updates the latest token metadata. operationId: refreshNFTMetadata parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple - description: NFT ID example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd explode: false @@ -15915,19 +17285,21 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response = fireblocks.nFTs().refreshNFTMetadata(id,\ - \ idempotencyKey);" + \ xEndUserWalletId, idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, idempotency_key);" + code: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, x_end_user_wallet_id,\ + \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> = fireblocks.nFTs.refreshNFTMetadata(nFTsApiRefreshNFTMetadataRequest);" - lang: Java source: "CompletableFuture> response = fireblocks.nFTs().refreshNFTMetadata(id,\ - \ idempotencyKey);" + \ xEndUserWalletId, idempotencyKey);" - lang: Python - source: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, idempotency_key);" + source: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, x_end_user_wallet_id,\ + \ idempotency_key);" x-accepts: application/json /nfts/tokens: get: @@ -16003,6 +17375,7 @@ paths: summary: List tokens by IDs tags: - NFTs + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -16032,6 +17405,16 @@ paths: Updates token status for a tenant, in all tenant vaults. operationId: updateTokenOwnershipStatus parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple - description: NFT ID example: NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd explode: false @@ -16074,21 +17457,21 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response = fireblocks.nFTs().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto,\ - \ id, idempotencyKey);" + \ id, xEndUserWalletId, idempotencyKey);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.n_f_ts.update_token_ownership_status(update_token_ownership_status_dto,\ - \ id, idempotency_key);" + \ id, x_end_user_wallet_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> = fireblocks.nFTs.updateTokenOwnershipStatus(nFTsApiUpdateTokenOwnershipStatusRequest);" - lang: Java source: "CompletableFuture> response = fireblocks.nFTs().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto,\ - \ id, idempotencyKey);" + \ id, xEndUserWalletId, idempotencyKey);" - lang: Python source: "response = fireblocks.n_f_ts.update_token_ownership_status(update_token_ownership_status_dto,\ - \ id, idempotency_key);" + \ id, x_end_user_wallet_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /nfts/ownership/tokens/status: @@ -16096,6 +17479,16 @@ paths: description: "Updates tokens status for a tenant, in all tenant vaults." operationId: updateTokensOwnershipStatus parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple - description: "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\ @@ -16139,21 +17532,21 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload,\ - \ idempotencyKey);" + \ xEndUserWalletId, idempotencyKey);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.n_f_ts.update_tokens_ownership_status(token_ownership_status_update_payload,\ - \ idempotency_key);" + \ x_end_user_wallet_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipStatus(nFTsApiUpdateTokensOwnershipStatusRequest);" - lang: Java source: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload,\ - \ idempotencyKey);" + \ xEndUserWalletId, idempotencyKey);" - lang: Python source: "response = fireblocks.n_f_ts.update_tokens_ownership_status(token_ownership_status_update_payload,\ - \ idempotency_key);" + \ x_end_user_wallet_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /nfts/ownership/tokens/spam: @@ -16162,6 +17555,16 @@ paths: \ in all tenant vaults." operationId: updateTokensOwnershipSpam parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple - description: "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\ @@ -16205,21 +17608,21 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload,\ - \ idempotencyKey);" + \ xEndUserWalletId, idempotencyKey);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.n_f_ts.update_tokens_ownership_spam(token_ownership_spam_update_payload,\ - \ idempotency_key);" + \ x_end_user_wallet_id, idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipSpam(nFTsApiUpdateTokensOwnershipSpamRequest);" - lang: Java source: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload,\ - \ idempotencyKey);" + \ xEndUserWalletId, idempotencyKey);" - lang: Python source: "response = fireblocks.n_f_ts.update_tokens_ownership_spam(token_ownership_spam_update_payload,\ - \ idempotency_key);" + \ x_end_user_wallet_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /connections: @@ -16227,6 +17630,16 @@ paths: description: Get open Web3 connections. operationId: get parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple - description: List order; ascending or descending. explode: true in: query @@ -16324,6 +17737,7 @@ paths: summary: List all open Web3 connections. tags: - Web3 connections + x-rate-limit-category: high_compute x-readme: code-samples: - language: typescript @@ -16332,11 +17746,12 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response =\ - \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next);" + \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next,\ + \ xEndUserWalletId);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.web3_connections.get(order, filter, sort, page_size,\ - \ next);" + \ next, x_end_user_wallet_id);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript @@ -16344,10 +17759,11 @@ paths: \ = fireblocks.web3Connections.get(web3ConnectionsApiGetRequest);" - lang: Java source: "CompletableFuture> response =\ - \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next);" + \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next,\ + \ xEndUserWalletId);" - lang: Python source: "response = fireblocks.web3_connections.get(order, filter, sort, page_size,\ - \ next);" + \ next, x_end_user_wallet_id);" x-accepts: application/json /connections/wc: post: @@ -16368,6 +17784,16 @@ paths: schema: type: string style: simple + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple requestBody: content: application/json: @@ -16397,6 +17823,7 @@ paths: summary: Create a new Web3 connection. tags: - Web3 connections + x-rate-limit-category: high_compute x-readme: code-samples: - language: typescript @@ -16405,11 +17832,12 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response\ - \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey);" + \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey,\ + \ xEndUserWalletId);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.web3_connections.create(create_connection_request,\ - \ idempotency_key);" + \ idempotency_key, x_end_user_wallet_id);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript @@ -16417,10 +17845,11 @@ paths: \ = fireblocks.web3Connections.create(web3ConnectionsApiCreateRequest);" - lang: Java source: "CompletableFuture> response\ - \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey);" + \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey,\ + \ xEndUserWalletId);" - lang: Python source: "response = fireblocks.web3_connections.create(create_connection_request,\ - \ idempotency_key);" + \ idempotency_key, x_end_user_wallet_id);" x-content-type: application/json x-accepts: application/json /connections/wc/{id}: @@ -16428,6 +17857,16 @@ paths: description: Remove a Web3 connection operationId: remove parameters: + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple - description: The ID of the existing Web3 connection to remove. explode: false in: path @@ -16455,24 +17894,27 @@ paths: summary: Remove an existing Web3 connection. tags: - Web3 connections + x-rate-limit-category: high_compute x-readme: code-samples: - language: typescript code: "const response: Promise> = fireblocks.web3Connections.remove(web3ConnectionsApiRemoveRequest);" name: Fireblocks SDK TypeScript example - language: java - code: CompletableFuture> response = fireblocks.web3Connections().remove(id); + code: "CompletableFuture> response = fireblocks.web3Connections().remove(id,\ + \ xEndUserWalletId);" name: Fireblocks SDK Java example - language: python - code: response = fireblocks.web3_connections.remove(id); + code: "response = fireblocks.web3_connections.remove(id, x_end_user_wallet_id);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> = fireblocks.web3Connections.remove(web3ConnectionsApiRemoveRequest);" - lang: Java - source: CompletableFuture> response = fireblocks.web3Connections().remove(id); + source: "CompletableFuture> response = fireblocks.web3Connections().remove(id,\ + \ xEndUserWalletId);" - lang: Python - source: response = fireblocks.web3_connections.remove(id); + source: "response = fireblocks.web3_connections.remove(id, x_end_user_wallet_id);" x-accepts: application/json put: description: |- @@ -16501,6 +17943,16 @@ paths: schema: type: string style: simple + - description: Unique ID of the End-User wallet to the API request. Required + for end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: false + schema: + format: uuid + type: string + style: simple requestBody: content: application/json: @@ -16531,6 +17983,7 @@ paths: summary: Respond to a pending Web3 connection request. tags: - Web3 connections + x-rate-limit-category: high_compute x-readme: code-samples: - language: typescript @@ -16538,21 +17991,21 @@ paths: name: Fireblocks SDK TypeScript example - language: java code: "CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest,\ - \ id, idempotencyKey);" + \ id, idempotencyKey, xEndUserWalletId);" name: Fireblocks SDK Java example - language: python code: "response = fireblocks.web3_connections.submit(respond_to_connection_request,\ - \ id, idempotency_key);" + \ id, idempotency_key, x_end_user_wallet_id);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> = fireblocks.web3Connections.submit(web3ConnectionsApiSubmitRequest);" - lang: Java source: "CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest,\ - \ id, idempotencyKey);" + \ id, idempotencyKey, xEndUserWalletId);" - lang: Python source: "response = fireblocks.web3_connections.submit(respond_to_connection_request,\ - \ id, idempotency_key);" + \ id, idempotency_key, x_end_user_wallet_id);" x-content-type: application/json x-accepts: application/json /screening/travel_rule/transaction/validate: @@ -18789,6 +20242,7 @@ paths: summary: Find Ticket tags: - Smart Transfer + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -18863,6 +20317,7 @@ paths: summary: Create Ticket tags: - Smart Transfer + x-rate-limit-category: async x-readme: code-samples: - language: typescript @@ -18924,6 +20379,7 @@ paths: summary: Search Tickets by ID tags: - Smart Transfer + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -19004,6 +20460,7 @@ paths: summary: Set expiration tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19089,6 +20546,7 @@ paths: summary: Add external ref. ID tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19175,6 +20633,7 @@ paths: summary: Submit ticket tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19255,6 +20714,7 @@ paths: summary: Fund ticket manually tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19415,6 +20875,7 @@ paths: summary: Cancel Ticket tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19490,6 +20951,7 @@ paths: summary: Create leg (term) tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19555,6 +21017,7 @@ paths: summary: Delete ticket leg (term) tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19618,6 +21081,7 @@ paths: summary: Search ticket by leg (term) ID tags: - Smart Transfer + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -19700,6 +21164,7 @@ paths: summary: Update ticket leg (term) tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19793,6 +21258,7 @@ paths: summary: Define funding source tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19886,6 +21352,7 @@ paths: summary: Define funding source and give approve to contract to transfer asset tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -19978,6 +21445,7 @@ paths: summary: Manually add term transaction tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -20033,6 +21501,7 @@ paths: summary: Get user group tags: - Smart Transfer + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -20099,6 +21568,7 @@ paths: summary: Set user group tags: - Smart Transfer + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -20156,6 +21626,7 @@ paths: summary: Get smart transfers statistic tags: - Smart Transfer + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -20223,6 +21694,7 @@ paths: summary: Return a list of jobs belonging to tenant tags: - Job Management + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -20279,6 +21751,7 @@ paths: summary: Get job details tags: - Job Management + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -20301,7 +21774,7 @@ paths: /batch/{jobId}/pause: post: description: "Pause the given job, after the current task is done. A paused\ - \ job can later be resumed by calling ‘continue’, or canceled." + \ job can later be resumed by calling 'continue', or canceled." operationId: pauseJob parameters: - description: The requested job id @@ -20338,6 +21811,7 @@ paths: summary: Pause a job tags: - Job Management + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -20398,6 +21872,7 @@ paths: summary: Continue a paused job tags: - Job Management + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -20421,7 +21896,7 @@ paths: x-accepts: application/json /batch/{jobId}/cancel: post: - description: "Stop the given job immediately. If the job is in the ‘Active’\ + description: "Stop the given job immediately. If the job is in the 'Active'\ \ state, the job will be canceled after completing the current task. Vault\ \ accounts and Wallets that are already created will not be affected." operationId: cancelJob @@ -20460,6 +21935,7 @@ paths: summary: Cancel a running job tags: - Job Management + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -20516,6 +21992,7 @@ paths: summary: Return a list of tasks for given job tags: - Job Management + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -20597,6 +22074,7 @@ paths: summary: Get all cosigners tags: - Cosigners (Beta) + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -20731,6 +22209,7 @@ paths: summary: Get cosigner tags: - Cosigners (Beta) + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -20794,6 +22273,7 @@ paths: summary: Rename cosigner tags: - Cosigners (Beta) + x-rate-limit-category: write x-readme: code-samples: - language: typescript @@ -20888,6 +22368,7 @@ paths: summary: Get all API keys tags: - Cosigners (Beta) + x-rate-limit-category: query x-readme: code-samples: - language: typescript @@ -21033,6 +22514,7 @@ paths: summary: Get API key tags: - Cosigners (Beta) + x-rate-limit-category: read x-readme: code-samples: - language: typescript @@ -21343,6 +22825,17 @@ components: schema: type: string style: simple + X-End-User-Wallet-Id_required: + description: Unique ID of the End-User wallet to the API request. Required for + end-user wallet operations. + explode: false + in: header + name: X-End-User-Wallet-Id + required: true + schema: + format: uuid + type: string + style: simple X-End-User-Wallet-Id: description: Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. @@ -22180,6 +23673,581 @@ components: description: The largest vault account ID in the range type: string type: object + EmbeddedWalletAssetResponse: + example: + coinType: 0 + symbol: USDT + ethNetwork: ethNetwork + blockchainDisplayName: BTH + deprecated: false + hasFee: true + baseAsset: ETH_TEST5 + ethContractAddress: ethContractAddress + blockchain: ETH_TEST5 + issuerAddress: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r + blockchainSymbol: BTH + decimals: 6 + name: Tether USD + id: id + testnet: true + networkProtocol: ETH + algorithm: MPC_ECDSA_SECP256K1 + properties: + id: + type: string + symbol: + description: The asset symbol + example: USDT + type: string + name: + description: The asset name + example: Tether USD + type: string + decimals: + description: Number of decimals + example: 6 + type: number + networkProtocol: + description: "Netowrk protocol of the blockchain (BTC, ETH)" + example: ETH + type: string + testnet: + description: Is in testnet + example: true + type: boolean + hasFee: + description: Has fee + example: true + type: boolean + baseAsset: + description: "Base asset symbol BTC_TEST, ETH_TEST5)" + example: ETH_TEST5 + type: string + ethNetwork: + type: string + ethContractAddress: + type: string + issuerAddress: + description: The address of the issuer of this token. Will be part of the + identifier of this token on chain. + example: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r + type: string + blockchainSymbol: + description: Name of blockchain + example: BTH + type: string + deprecated: + description: Is blockchain deprecated + example: false + type: boolean + coinType: + description: "Unique identifier of an asset (0 for BTC, 60 for ETH, etc.)" + example: 0 + type: number + blockchain: + description: The blockchain native asset id which the token is deployed + on + example: ETH_TEST5 + type: string + blockchainDisplayName: + description: Name of blockchain + example: BTH + type: string + algorithm: + enum: + - MPC_ECDSA_SECP256K1 + - MPC_EDDSA_ED25519 + type: string + required: + - baseAsset + - blockchain + - coinType + - decimals + - hasFee + - id + - name + - networkProtocol + - symbol + - testnet + - type + type: object + EmbeddedWalletPaginatedAssetsResponse: + example: + next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + data: + - coinType: 0 + symbol: USDT + ethNetwork: ethNetwork + blockchainDisplayName: BTH + deprecated: false + hasFee: true + baseAsset: ETH_TEST5 + ethContractAddress: ethContractAddress + blockchain: ETH_TEST5 + issuerAddress: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r + blockchainSymbol: BTH + decimals: 6 + name: Tether USD + id: id + testnet: true + networkProtocol: ETH + algorithm: MPC_ECDSA_SECP256K1 + - coinType: 0 + symbol: USDT + ethNetwork: ethNetwork + blockchainDisplayName: BTH + deprecated: false + hasFee: true + baseAsset: ETH_TEST5 + ethContractAddress: ethContractAddress + blockchain: ETH_TEST5 + issuerAddress: rnDV4JiwgRNhudPY2sm65AzECpRXaasL4r + blockchainSymbol: BTH + decimals: 6 + name: Tether USD + id: id + testnet: true + networkProtocol: ETH + algorithm: MPC_ECDSA_SECP256K1 + properties: + data: + description: The data of the current page + items: + $ref: '#/components/schemas/EmbeddedWalletAssetResponse' + type: array + next: + description: The ID of the next page + example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + nullable: true + type: string + required: + - data + type: object + EmbeddedWallet: + example: + walletId: 550e8400-e29b-41d4-a716-446655440000 + enabled: true + properties: + walletId: + description: walletId + example: 550e8400-e29b-41d4-a716-446655440000 + type: string + enabled: + description: enabled + example: true + type: boolean + required: + - enabled + - walletId + type: object + EmbeddedWalletPaginatedWalletsResponse: + example: + next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + data: + - walletId: 550e8400-e29b-41d4-a716-446655440000 + enabled: true + - walletId: 550e8400-e29b-41d4-a716-446655440000 + enabled: true + properties: + data: + description: The data of the current page + items: + $ref: '#/components/schemas/EmbeddedWallet' + type: array + next: + description: The ID of the next page + example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + nullable: true + type: string + required: + - data + type: object + EmbeddedWalletAddressDetails: + example: + coinType: 1.4658129805029452 + legacyAddress: legacyAddressName + address: addressName + accountName: accountName + addressType: addressType + change: 6.027456183070403 + addressFormat: addressFormatName + userDefined: true + customerRefId: customerRefIdName + paymentAddress: paymentAddressName + accountId: accountIdName + addressDescription: addressDescriptionName + addressIndex: 0.8008281904610115 + tag: tagName + state: stateName + asset: assetName + properties: + accountName: + description: accountName + example: accountName + type: string + accountId: + description: accountId + example: accountIdName + type: string + asset: + description: asset + example: assetName + type: string + address: + description: address + example: addressName + type: string + addressType: + description: addressType + enum: + - PERMANENT + - CHANGE + - DEFAULT + - ADDRESS + example: addressType + type: string + addressDescription: + description: addressDescription + example: addressDescriptionName + type: string + tag: + description: tag + example: tagName + type: string + addressIndex: + description: addressIndex + type: number + change: + description: change + type: number + coinType: + description: "Unique identifier of an asset (0 for BTC, 60 for ETH, etc.)" + type: number + customerRefId: + description: customerRefId + example: customerRefIdName + type: string + addressFormat: + description: addressFormat + example: addressFormatName + type: string + legacyAddress: + description: legacyAddress + example: legacyAddressName + type: string + paymentAddress: + description: paymentAddress + example: paymentAddressName + type: string + userDefined: + description: userDefined + example: true + type: boolean + state: + description: state + enum: + - PENDING_ACTIVATION + - ACTIVATION_FAILED + - READY + example: stateName + type: string + required: + - accountId + - accountName + - address + - addressDescription + - addressType + - asset + - tag + type: object + EmbeddedWalletAssetRewardInfo: + example: + pendingRewards: "5" + properties: + pendingRewards: + description: Amount that is pending for rewards + example: "5" + type: string + required: + - pendingRewards + type: object + EmbeddedWalletAssetBalance: + example: + blockHash: 0000000000000000000769e73a0b8f32a6c5d55e0d64f9ec20c6c3d4e5a9a3f1 + total: "0.87500000" + lockedAmount: "0.01000000" + blockHeight: "8459341" + rewardInfo: + pendingRewards: "5" + pending: "0.01500000" + available: "0.84500000" + frozen: "0.00500000" + id: BTC-mainnet-acc-01 + properties: + id: + description: Unique identifier of the asset balance entry + example: BTC-mainnet-acc-01 + type: string + total: + description: "Total balance amount for the asset in the account (including\ + \ pending, locked, and available)" + example: "0.87500000" + type: string + available: + description: The balance available for use or withdrawal + example: "0.84500000" + type: string + pending: + description: "Amount pending confirmation from blockchain (e.g., unconfirmed\ + \ deposits)" + example: "0.01500000" + type: string + frozen: + description: Balance that is frozen due to policy or regulatory lock + example: "0.00500000" + type: string + lockedAmount: + description: Funds locked for operations such as staking or delegation + example: "0.01000000" + type: string + blockHeight: + description: Latest known blockchain height when balance was fetched + example: "8459341" + type: string + blockHash: + description: Hash of the blockchain block associated with the current balance + state + example: 0000000000000000000769e73a0b8f32a6c5d55e0d64f9ec20c6c3d4e5a9a3f1 + type: string + rewardInfo: + $ref: '#/components/schemas/EmbeddedWalletAssetRewardInfo' + required: + - available + - frozen + - id + - lockedAmount + - pending + - total + type: object + EmbeddedWalletPaginatedAddressesResponse: + example: + next: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + data: + - coinType: 1.4658129805029452 + legacyAddress: legacyAddressName + address: addressName + accountName: accountName + addressType: addressType + change: 6.027456183070403 + addressFormat: addressFormatName + userDefined: true + customerRefId: customerRefIdName + paymentAddress: paymentAddressName + accountId: accountIdName + addressDescription: addressDescriptionName + addressIndex: 0.8008281904610115 + tag: tagName + state: stateName + asset: assetName + - coinType: 1.4658129805029452 + legacyAddress: legacyAddressName + address: addressName + accountName: accountName + addressType: addressType + change: 6.027456183070403 + addressFormat: addressFormatName + userDefined: true + customerRefId: customerRefIdName + paymentAddress: paymentAddressName + accountId: accountIdName + addressDescription: addressDescriptionName + addressIndex: 0.8008281904610115 + tag: tagName + state: stateName + asset: assetName + properties: + data: + description: The data of the current page + items: + $ref: '#/components/schemas/EmbeddedWalletAddressDetails' + type: array + next: + description: The ID of the next page + example: eJ0eXAiOiJKV1QiLCJhbGcOiJIUzI1NiJ9 + nullable: true + type: string + required: + - data + type: object + EmbeddedWalletAccount: + example: + accountId: "0" + walletId: 550e8400-e29b-41d4-a716-446655440000 + properties: + accountId: + description: The ID of the account + example: "0" + type: string + walletId: + description: Unique identifier of the Non-Custodial Wallet (UUID) + example: 550e8400-e29b-41d4-a716-446655440000 + type: string + required: + - accountId + - walletId + type: object + EmbeddedWalletLatestBackupKey: + example: + keyId: keyIdValue + publicKey: publicKeyValue + deviceId: deviceIdValue + algorithm: algorithm + properties: + deviceId: + description: deviceId + example: deviceIdValue + type: string + publicKey: + description: publicKey + example: publicKeyValue + type: string + keyId: + description: keyId + example: keyIdValue + type: string + algorithm: + description: algorithm + enum: + - MPC_CMP_ECDSA_SECP256K1 + - MPC_CMP_EDDSA_ED25519 + - MPC_ECDSA_SECP256K1 + example: algorithm + type: string + required: + - algorithm + - deviceId + - keyId + - publicKey + type: object + EmbeddedWalletLatestBackupResponse: + example: + createdAt: 1713789296 + keys: + - keyId: keyIdValue + publicKey: publicKeyValue + deviceId: deviceIdValue + algorithm: algorithm + - keyId: keyIdValue + publicKey: publicKeyValue + deviceId: deviceIdValue + algorithm: algorithm + passphraseId: passphraseId + properties: + passphraseId: + description: passphraseId + example: passphraseId + type: string + createdAt: + description: createdAt + example: 1713789296 + type: number + keys: + description: keys + items: + $ref: '#/components/schemas/EmbeddedWalletLatestBackupKey' + type: array + required: + - createdAt + - keys + - passphraseId + type: object + EmbeddedWalletDevice: + example: + physicalDeviceId: physicalDeviceIdValue + deviceId: deviceIdValue + enabled: true + properties: + deviceId: + description: deviceId + example: deviceIdValue + type: string + enabled: + description: enabled + example: true + type: boolean + physicalDeviceId: + description: physicalDeviceId + example: physicalDeviceIdValue + type: string + required: + - deviceId + - enabled + - physicalDeviceId + type: object + EmbeddedWalletSetUpStatus: + description: embedded wallet setup status + example: + status: statusValue + properties: + status: + description: status + enum: + - COMPLETE + - INCOMPLETE + example: statusValue + type: string + required: + - status + type: object + EmbeddedWalletAlgoritm: + description: algorithm name + properties: + algorithm: + description: algorithm + enum: + - MPC_ECDSA_SECP256K1 + - MPC_EDDSA_ED25519 + example: MPC_EDDSA_ED25519 + type: string + required: + - algorithm + type: object + EmbeddedWalletDeviceKeySetupResponse: + example: + setupStatus: + - setupStatus: setupStatusValue + confirmed: true + backedUp: true + deviceId: deviceIdValue + enabled: true + status: + status: statusValue + properties: + status: + $ref: '#/components/schemas/EmbeddedWalletSetUpStatus' + deviceId: + description: deviceId + example: deviceIdValue + type: string + enabled: + description: enabled + example: true + type: boolean + setupStatus: + description: setupStatus + example: + - setupStatus: setupStatusValue + confirmed: true + backedUp: true + items: + $ref: '#/components/schemas/EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner' + type: array + required: + - deviceId + - enabled + - setupStatus + - status + type: object ExchangeType: description: Exchange account's type enum: @@ -24587,6 +26655,7 @@ components: - UNKNOWN - END_USER_WALLET - PROGRAM_CALL + - MULTI_DESTINATION type: string SourceTransferPeerPathResponse: description: Source of the transaction. @@ -37525,6 +39594,7 @@ components: - kiln - figment - lido + - p2p example: kiln type: string FeeLevel: @@ -38226,6 +40296,7 @@ components: - ETHERLINK_TEST - MANTLE - MANTLE_TEST + - GUN_GUNZILLA - GUN_GUNZILLA_TEST - ETH_SONEIUM - SONEIUM_MINATO_TEST @@ -38390,6 +40461,7 @@ components: - ETHERLINK_TEST - MANTLE - MANTLE_TEST + - GUN_GUNZILLA - GUN_GUNZILLA_TEST - ETH_SONEIUM - SONEIUM_MINATO_TEST @@ -38492,6 +40564,7 @@ components: - ETHERLINK_TEST - MANTLE - MANTLE_TEST + - GUN_GUNZILLA - GUN_GUNZILLA_TEST - ETH_SONEIUM - SONEIUM_MINATO_TEST @@ -42754,7 +44827,7 @@ components: sourceSubType: sourceSubType asset: asset operation: operation - networkProtocol: networkProtocol + networkProtocol: ETH properties: sourceType: type: string @@ -42779,6 +44852,8 @@ components: amountUSD: type: number networkProtocol: + description: The network protocol of the token + example: ETH type: string operation: type: string @@ -42810,7 +44885,7 @@ components: sourceSubType: sourceSubType asset: asset operation: operation - networkProtocol: networkProtocol + networkProtocol: ETH createDate: 2000-01-23T04:56:07.000+00:00 properties: policy: @@ -42901,6 +44976,7 @@ components: type: boolean type: object ComplianceScreeningResultFullPayload: + description: The result of the Travel Rule screening. example: provider: provider payload: "{}" @@ -42930,7 +45006,35 @@ components: format: date-time type: number type: object + ComplianceResultStatusesEnum: + description: Status of compliance result screening. + enum: + - Started + - NetworkConnectionAddressResolve + - ScreeningPrepare + - AMLStarted + - AMLCompleted + - AMLFailed + - AMLInBackground + - TRPreconditionChecks + - TRStarted + - TRCompleted + - TRFailed + - Completed + - IncomingStarted + - IncomingScreeningPrepare + - IncomingWaitForFirstConfirmation + - AMLIncomingStarted + - AMLIncomingCompleted + - AMLIncomingFailed + - AMLIncomingInBackground + - TRIncomingStarted + - TRIncomingCompleted + - TRIncomingFailed + - IncomingCompleted + type: string AmlRegistrationResultFullPayload: + description: The results of the AML address registration. example: provider: provider success: true @@ -42947,21 +45051,13 @@ components: description: The result of the Compliance AML/Travel Rule screening. example: aml: - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 0.8008281904610115 - - provider: provider + provider: provider payload: "{}" bypassReason: bypassReason screeningStatus: COMPLETED timestamp: 0.8008281904610115 amlRegistration: - - provider: provider - success: true - timestamp: 6.027456183070403 - - provider: provider + provider: provider success: true timestamp: 6.027456183070403 amlList: @@ -42976,65 +45072,26 @@ components: screeningStatus: COMPLETED timestamp: 0.8008281904610115 tr: - - provider: provider - payload: "{}" - bypassReason: bypassReason - screeningStatus: COMPLETED - timestamp: 0.8008281904610115 - - provider: provider + provider: provider payload: "{}" bypassReason: bypassReason screeningStatus: COMPLETED timestamp: 0.8008281904610115 - status: Started + status: null properties: aml: - description: The end result of the AML screening. - items: - $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' - type: array + $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' tr: - description: The result of the Travel Rule screening. - items: - $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' - type: array + $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' amlList: description: The list of all results of the AML screening. items: $ref: '#/components/schemas/ComplianceScreeningResultFullPayload' type: array status: - description: Status of compliance result screening. - enum: - - Started - - NetworkConnectionAddressResolve - - ScreeningPrepare - - AMLStarted - - AMLCompleted - - AMLFailed - - AMLInBackground - - TRPreconditionChecks - - TRStarted - - TRCompleted - - TRFailed - - Completed - - IncomingStarted - - IncomingScreeningPrepare - - IncomingWaitForFirstConfirmation - - AMLIncomingStarted - - AMLIncomingCompleted - - AMLIncomingFailed - - AMLIncomingInBackground - - TRIncomingStarted - - TRIncomingCompleted - - TRIncomingFailed - - IncomingCompleted - type: string + $ref: '#/components/schemas/ComplianceResultStatusesEnum' amlRegistration: - description: The results of the AML address registration. - items: - $ref: '#/components/schemas/AmlRegistrationResultFullPayload' - type: array + $ref: '#/components/schemas/AmlRegistrationResultFullPayload' type: object GetOtaStatusResponse: example: @@ -46480,6 +48537,23 @@ components: the next page of results. type: string type: object + EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner: + properties: + algorithmName: + $ref: '#/components/schemas/EmbeddedWalletAlgoritm' + confirmed: + description: confirmed + example: true + type: boolean + backedUp: + description: backedUp + example: true + type: boolean + required: + - algorithmName + - backedUp + - confirmed + type: object ExchangeAccountsPaged_paging: example: before: before diff --git a/build.gradle b/build.gradle index 077a0fb9..358eefb7 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '10.1.1' +version = '0.0.0' buildscript { repositories { diff --git a/docs/AmlRegistrationResultFullPayload.md b/docs/AmlRegistrationResultFullPayload.md index ee25c23f..6b99d7f2 100644 --- a/docs/AmlRegistrationResultFullPayload.md +++ b/docs/AmlRegistrationResultFullPayload.md @@ -2,6 +2,7 @@ # AmlRegistrationResultFullPayload +The results of the AML address registration. ## Properties diff --git a/docs/CollectionOwnershipResponse.md b/docs/CollectionOwnershipResponse.md index dbfdf8d9..f956974c 100644 --- a/docs/CollectionOwnershipResponse.md +++ b/docs/CollectionOwnershipResponse.md @@ -36,6 +36,7 @@ | ETHERLINK_TEST | "ETHERLINK_TEST" | | MANTLE | "MANTLE" | | MANTLE_TEST | "MANTLE_TEST" | +| GUN_GUNZILLA | "GUN_GUNZILLA" | | GUN_GUNZILLA_TEST | "GUN_GUNZILLA_TEST" | | ETH_SONEIUM | "ETH_SONEIUM" | | SONEIUM_MINATO_TEST | "SONEIUM_MINATO_TEST" | diff --git a/docs/ComplianceResultFullPayload.md b/docs/ComplianceResultFullPayload.md index 9619b983..0af47384 100644 --- a/docs/ComplianceResultFullPayload.md +++ b/docs/ComplianceResultFullPayload.md @@ -8,41 +8,11 @@ The result of the Compliance AML/Travel Rule screening. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**aml** | [**List<ComplianceScreeningResultFullPayload>**](ComplianceScreeningResultFullPayload.md) | The end result of the AML screening. | [optional] | -|**tr** | [**List<ComplianceScreeningResultFullPayload>**](ComplianceScreeningResultFullPayload.md) | The result of the Travel Rule screening. | [optional] | +|**aml** | [**ComplianceScreeningResultFullPayload**](ComplianceScreeningResultFullPayload.md) | | [optional] | +|**tr** | [**ComplianceScreeningResultFullPayload**](ComplianceScreeningResultFullPayload.md) | | [optional] | |**amlList** | [**List<ComplianceScreeningResultFullPayload>**](ComplianceScreeningResultFullPayload.md) | The list of all results of the AML screening. | [optional] | -|**status** | [**StatusEnum**](#StatusEnum) | Status of compliance result screening. | [optional] | -|**amlRegistration** | [**List<AmlRegistrationResultFullPayload>**](AmlRegistrationResultFullPayload.md) | The results of the AML address registration. | [optional] | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| STARTED | "Started" | -| NETWORKCONNECTIONADDRESSRESOLVE | "NetworkConnectionAddressResolve" | -| SCREENINGPREPARE | "ScreeningPrepare" | -| AMLSTARTED | "AMLStarted" | -| AMLCOMPLETED | "AMLCompleted" | -| AMLFAILED | "AMLFailed" | -| AMLINBACKGROUND | "AMLInBackground" | -| TRPRECONDITIONCHECKS | "TRPreconditionChecks" | -| TRSTARTED | "TRStarted" | -| TRCOMPLETED | "TRCompleted" | -| TRFAILED | "TRFailed" | -| COMPLETED | "Completed" | -| INCOMINGSTARTED | "IncomingStarted" | -| INCOMINGSCREENINGPREPARE | "IncomingScreeningPrepare" | -| INCOMINGWAITFORFIRSTCONFIRMATION | "IncomingWaitForFirstConfirmation" | -| AMLINCOMINGSTARTED | "AMLIncomingStarted" | -| AMLINCOMINGCOMPLETED | "AMLIncomingCompleted" | -| AMLINCOMINGFAILED | "AMLIncomingFailed" | -| AMLINCOMINGINBACKGROUND | "AMLIncomingInBackground" | -| TRINCOMINGSTARTED | "TRIncomingStarted" | -| TRINCOMINGCOMPLETED | "TRIncomingCompleted" | -| TRINCOMINGFAILED | "TRIncomingFailed" | -| INCOMINGCOMPLETED | "IncomingCompleted" | +|**status** | **ComplianceResultStatusesEnum** | | [optional] | +|**amlRegistration** | [**AmlRegistrationResultFullPayload**](AmlRegistrationResultFullPayload.md) | | [optional] | diff --git a/docs/ComplianceResultStatusesEnum.md b/docs/ComplianceResultStatusesEnum.md new file mode 100644 index 00000000..e9c89019 --- /dev/null +++ b/docs/ComplianceResultStatusesEnum.md @@ -0,0 +1,55 @@ + + +# ComplianceResultStatusesEnum + +## Enum + + +* `STARTED` (value: `"Started"`) + +* `NETWORKCONNECTIONADDRESSRESOLVE` (value: `"NetworkConnectionAddressResolve"`) + +* `SCREENINGPREPARE` (value: `"ScreeningPrepare"`) + +* `AMLSTARTED` (value: `"AMLStarted"`) + +* `AMLCOMPLETED` (value: `"AMLCompleted"`) + +* `AMLFAILED` (value: `"AMLFailed"`) + +* `AMLINBACKGROUND` (value: `"AMLInBackground"`) + +* `TRPRECONDITIONCHECKS` (value: `"TRPreconditionChecks"`) + +* `TRSTARTED` (value: `"TRStarted"`) + +* `TRCOMPLETED` (value: `"TRCompleted"`) + +* `TRFAILED` (value: `"TRFailed"`) + +* `COMPLETED` (value: `"Completed"`) + +* `INCOMINGSTARTED` (value: `"IncomingStarted"`) + +* `INCOMINGSCREENINGPREPARE` (value: `"IncomingScreeningPrepare"`) + +* `INCOMINGWAITFORFIRSTCONFIRMATION` (value: `"IncomingWaitForFirstConfirmation"`) + +* `AMLINCOMINGSTARTED` (value: `"AMLIncomingStarted"`) + +* `AMLINCOMINGCOMPLETED` (value: `"AMLIncomingCompleted"`) + +* `AMLINCOMINGFAILED` (value: `"AMLIncomingFailed"`) + +* `AMLINCOMINGINBACKGROUND` (value: `"AMLIncomingInBackground"`) + +* `TRINCOMINGSTARTED` (value: `"TRIncomingStarted"`) + +* `TRINCOMINGCOMPLETED` (value: `"TRIncomingCompleted"`) + +* `TRINCOMINGFAILED` (value: `"TRIncomingFailed"`) + +* `INCOMINGCOMPLETED` (value: `"IncomingCompleted"`) + + + diff --git a/docs/ComplianceScreeningResultFullPayload.md b/docs/ComplianceScreeningResultFullPayload.md index c80fad05..cab44711 100644 --- a/docs/ComplianceScreeningResultFullPayload.md +++ b/docs/ComplianceScreeningResultFullPayload.md @@ -2,6 +2,7 @@ # ComplianceScreeningResultFullPayload +The result of the Travel Rule screening. ## Properties diff --git a/docs/EmbeddedWallet.md b/docs/EmbeddedWallet.md new file mode 100644 index 00000000..a7fbfcbb --- /dev/null +++ b/docs/EmbeddedWallet.md @@ -0,0 +1,14 @@ + + +# EmbeddedWallet + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**walletId** | **String** | walletId | | +|**enabled** | **Boolean** | enabled | | + + + diff --git a/docs/EmbeddedWalletAccount.md b/docs/EmbeddedWalletAccount.md new file mode 100644 index 00000000..99a3af39 --- /dev/null +++ b/docs/EmbeddedWalletAccount.md @@ -0,0 +1,14 @@ + + +# EmbeddedWalletAccount + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accountId** | **String** | The ID of the account | | +|**walletId** | **String** | Unique identifier of the Non-Custodial Wallet (UUID) | | + + + diff --git a/docs/EmbeddedWalletAddressDetails.md b/docs/EmbeddedWalletAddressDetails.md new file mode 100644 index 00000000..06dd98f6 --- /dev/null +++ b/docs/EmbeddedWalletAddressDetails.md @@ -0,0 +1,49 @@ + + +# EmbeddedWalletAddressDetails + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accountName** | **String** | accountName | | +|**accountId** | **String** | accountId | | +|**asset** | **String** | asset | | +|**address** | **String** | address | | +|**addressType** | [**AddressTypeEnum**](#AddressTypeEnum) | addressType | | +|**addressDescription** | **String** | addressDescription | | +|**tag** | **String** | tag | | +|**addressIndex** | **BigDecimal** | addressIndex | [optional] | +|**change** | **BigDecimal** | change | [optional] | +|**coinType** | **BigDecimal** | Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) | [optional] | +|**customerRefId** | **String** | customerRefId | [optional] | +|**addressFormat** | **String** | addressFormat | [optional] | +|**legacyAddress** | **String** | legacyAddress | [optional] | +|**paymentAddress** | **String** | paymentAddress | [optional] | +|**userDefined** | **Boolean** | userDefined | [optional] | +|**state** | [**StateEnum**](#StateEnum) | state | [optional] | + + + +## Enum: AddressTypeEnum + +| Name | Value | +|---- | -----| +| PERMANENT | "PERMANENT" | +| CHANGE | "CHANGE" | +| DEFAULT | "DEFAULT" | +| ADDRESS | "ADDRESS" | + + + +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| PENDING_ACTIVATION | "PENDING_ACTIVATION" | +| ACTIVATION_FAILED | "ACTIVATION_FAILED" | +| READY | "READY" | + + + diff --git a/docs/EmbeddedWalletAlgoritm.md b/docs/EmbeddedWalletAlgoritm.md new file mode 100644 index 00000000..3d18c423 --- /dev/null +++ b/docs/EmbeddedWalletAlgoritm.md @@ -0,0 +1,23 @@ + + +# EmbeddedWalletAlgoritm + +algorithm name + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**algorithm** | [**AlgorithmEnum**](#AlgorithmEnum) | algorithm | | + + + +## Enum: AlgorithmEnum + +| Name | Value | +|---- | -----| +| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | +| EDDSA_ED25519 | "MPC_EDDSA_ED25519" | + + + diff --git a/docs/EmbeddedWalletAssetBalance.md b/docs/EmbeddedWalletAssetBalance.md new file mode 100644 index 00000000..faebdf1d --- /dev/null +++ b/docs/EmbeddedWalletAssetBalance.md @@ -0,0 +1,21 @@ + + +# EmbeddedWalletAssetBalance + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique identifier of the asset balance entry | | +|**total** | **String** | Total balance amount for the asset in the account (including pending, locked, and available) | | +|**available** | **String** | The balance available for use or withdrawal | | +|**pending** | **String** | Amount pending confirmation from blockchain (e.g., unconfirmed deposits) | | +|**frozen** | **String** | Balance that is frozen due to policy or regulatory lock | | +|**lockedAmount** | **String** | Funds locked for operations such as staking or delegation | | +|**blockHeight** | **String** | Latest known blockchain height when balance was fetched | [optional] | +|**blockHash** | **String** | Hash of the blockchain block associated with the current balance state | [optional] | +|**rewardInfo** | [**EmbeddedWalletAssetRewardInfo**](EmbeddedWalletAssetRewardInfo.md) | | [optional] | + + + diff --git a/docs/EmbeddedWalletAssetResponse.md b/docs/EmbeddedWalletAssetResponse.md new file mode 100644 index 00000000..073ac11b --- /dev/null +++ b/docs/EmbeddedWalletAssetResponse.md @@ -0,0 +1,38 @@ + + +# EmbeddedWalletAssetResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**symbol** | **String** | The asset symbol | | +|**name** | **String** | The asset name | | +|**decimals** | **BigDecimal** | Number of decimals | | +|**networkProtocol** | **String** | Netowrk protocol of the blockchain (BTC, ETH) | | +|**testnet** | **Boolean** | Is in testnet | | +|**hasFee** | **Boolean** | Has fee | | +|**baseAsset** | **String** | Base asset symbol BTC_TEST, ETH_TEST5) | | +|**ethNetwork** | **String** | | [optional] | +|**ethContractAddress** | **String** | | [optional] | +|**issuerAddress** | **String** | The address of the issuer of this token. Will be part of the identifier of this token on chain. | [optional] | +|**blockchainSymbol** | **String** | Name of blockchain | [optional] | +|**deprecated** | **Boolean** | Is blockchain deprecated | [optional] | +|**coinType** | **BigDecimal** | Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) | | +|**blockchain** | **String** | The blockchain native asset id which the token is deployed on | | +|**blockchainDisplayName** | **String** | Name of blockchain | [optional] | +|**algorithm** | [**AlgorithmEnum**](#AlgorithmEnum) | | [optional] | + + + +## Enum: AlgorithmEnum + +| Name | Value | +|---- | -----| +| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | +| EDDSA_ED25519 | "MPC_EDDSA_ED25519" | + + + diff --git a/docs/EmbeddedWalletAssetRewardInfo.md b/docs/EmbeddedWalletAssetRewardInfo.md new file mode 100644 index 00000000..408dff42 --- /dev/null +++ b/docs/EmbeddedWalletAssetRewardInfo.md @@ -0,0 +1,13 @@ + + +# EmbeddedWalletAssetRewardInfo + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pendingRewards** | **String** | Amount that is pending for rewards | | + + + diff --git a/docs/EmbeddedWalletDevice.md b/docs/EmbeddedWalletDevice.md new file mode 100644 index 00000000..3fabfdec --- /dev/null +++ b/docs/EmbeddedWalletDevice.md @@ -0,0 +1,15 @@ + + +# EmbeddedWalletDevice + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deviceId** | **String** | deviceId | | +|**enabled** | **Boolean** | enabled | | +|**physicalDeviceId** | **String** | physicalDeviceId | | + + + diff --git a/docs/EmbeddedWalletDeviceKeySetupResponse.md b/docs/EmbeddedWalletDeviceKeySetupResponse.md new file mode 100644 index 00000000..b38f8a71 --- /dev/null +++ b/docs/EmbeddedWalletDeviceKeySetupResponse.md @@ -0,0 +1,16 @@ + + +# EmbeddedWalletDeviceKeySetupResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | [**EmbeddedWalletSetUpStatus**](EmbeddedWalletSetUpStatus.md) | | | +|**deviceId** | **String** | deviceId | | +|**enabled** | **Boolean** | enabled | | +|**setupStatus** | [**List<EmbeddedWalletDeviceKeySetupResponseSetupStatusInner>**](EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md) | setupStatus | | + + + diff --git a/docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md b/docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md new file mode 100644 index 00000000..3ea7a25d --- /dev/null +++ b/docs/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.md @@ -0,0 +1,15 @@ + + +# EmbeddedWalletDeviceKeySetupResponseSetupStatusInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**algorithmName** | [**EmbeddedWalletAlgoritm**](EmbeddedWalletAlgoritm.md) | | | +|**confirmed** | **Boolean** | confirmed | | +|**backedUp** | **Boolean** | backedUp | | + + + diff --git a/docs/EmbeddedWalletLatestBackupKey.md b/docs/EmbeddedWalletLatestBackupKey.md new file mode 100644 index 00000000..5fa0e6fa --- /dev/null +++ b/docs/EmbeddedWalletLatestBackupKey.md @@ -0,0 +1,26 @@ + + +# EmbeddedWalletLatestBackupKey + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deviceId** | **String** | deviceId | | +|**publicKey** | **String** | publicKey | | +|**keyId** | **String** | keyId | | +|**algorithm** | [**AlgorithmEnum**](#AlgorithmEnum) | algorithm | | + + + +## Enum: AlgorithmEnum + +| Name | Value | +|---- | -----| +| CMP_ECDSA_SECP256K1 | "MPC_CMP_ECDSA_SECP256K1" | +| CMP_EDDSA_ED25519 | "MPC_CMP_EDDSA_ED25519" | +| ECDSA_SECP256K1 | "MPC_ECDSA_SECP256K1" | + + + diff --git a/docs/EmbeddedWalletLatestBackupResponse.md b/docs/EmbeddedWalletLatestBackupResponse.md new file mode 100644 index 00000000..d92959fa --- /dev/null +++ b/docs/EmbeddedWalletLatestBackupResponse.md @@ -0,0 +1,15 @@ + + +# EmbeddedWalletLatestBackupResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**passphraseId** | **String** | passphraseId | | +|**createdAt** | **BigDecimal** | createdAt | | +|**keys** | [**List<EmbeddedWalletLatestBackupKey>**](EmbeddedWalletLatestBackupKey.md) | keys | | + + + diff --git a/docs/EmbeddedWalletPaginatedAddressesResponse.md b/docs/EmbeddedWalletPaginatedAddressesResponse.md new file mode 100644 index 00000000..fda5f750 --- /dev/null +++ b/docs/EmbeddedWalletPaginatedAddressesResponse.md @@ -0,0 +1,14 @@ + + +# EmbeddedWalletPaginatedAddressesResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<EmbeddedWalletAddressDetails>**](EmbeddedWalletAddressDetails.md) | The data of the current page | | +|**next** | **String** | The ID of the next page | [optional] | + + + diff --git a/docs/EmbeddedWalletPaginatedAssetsResponse.md b/docs/EmbeddedWalletPaginatedAssetsResponse.md new file mode 100644 index 00000000..b197a88d --- /dev/null +++ b/docs/EmbeddedWalletPaginatedAssetsResponse.md @@ -0,0 +1,14 @@ + + +# EmbeddedWalletPaginatedAssetsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<EmbeddedWalletAssetResponse>**](EmbeddedWalletAssetResponse.md) | The data of the current page | | +|**next** | **String** | The ID of the next page | [optional] | + + + diff --git a/docs/EmbeddedWalletPaginatedWalletsResponse.md b/docs/EmbeddedWalletPaginatedWalletsResponse.md new file mode 100644 index 00000000..4d2ced06 --- /dev/null +++ b/docs/EmbeddedWalletPaginatedWalletsResponse.md @@ -0,0 +1,14 @@ + + +# EmbeddedWalletPaginatedWalletsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<EmbeddedWallet>**](EmbeddedWallet.md) | The data of the current page | | +|**next** | **String** | The ID of the next page | [optional] | + + + diff --git a/docs/EmbeddedWalletSetUpStatus.md b/docs/EmbeddedWalletSetUpStatus.md new file mode 100644 index 00000000..f33ec6c9 --- /dev/null +++ b/docs/EmbeddedWalletSetUpStatus.md @@ -0,0 +1,23 @@ + + +# EmbeddedWalletSetUpStatus + +embedded wallet setup status + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | [**StatusEnum**](#StatusEnum) | status | | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| COMPLETE | "COMPLETE" | +| INCOMPLETE | "INCOMPLETE" | + + + diff --git a/docs/EmbeddedWalletsApi.md b/docs/EmbeddedWalletsApi.md index 3b8aa504..4d534f3a 100644 --- a/docs/EmbeddedWalletsApi.md +++ b/docs/EmbeddedWalletsApi.md @@ -4,14 +4,977 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**getPublicKeyInfoForAddressNcw**](EmbeddedWalletsApi.md#getPublicKeyInfoForAddressNcw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset | -| [**getPublicKeyInfoNcw**](EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/{walletId}/public_key_info | Get the public key for a derivation path | +| [**addEmbeddedWalletAsset**](EmbeddedWalletsApi.md#addEmbeddedWalletAsset) | **POST** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Add asset to account | +| [**createEmbeddedWallet**](EmbeddedWalletsApi.md#createEmbeddedWallet) | **POST** /ncw/wallets | Create a new wallet | +| [**createEmbeddedWalletAccount**](EmbeddedWalletsApi.md#createEmbeddedWalletAccount) | **POST** /ncw/wallets/{walletId}/accounts | Create a new account | +| [**getEmbeddedWallet**](EmbeddedWalletsApi.md#getEmbeddedWallet) | **GET** /ncw/wallets/{walletId} | Get a wallet | +| [**getEmbeddedWalletAccount**](EmbeddedWalletsApi.md#getEmbeddedWalletAccount) | **GET** /ncw/wallets/{walletId}/accounts/{accountId} | Get a account | +| [**getEmbeddedWalletAddresses**](EmbeddedWalletsApi.md#getEmbeddedWalletAddresses) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses | Retrieve asset addresses | +| [**getEmbeddedWalletAsset**](EmbeddedWalletsApi.md#getEmbeddedWalletAsset) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId} | Retrieve asset | +| [**getEmbeddedWalletAssetBalance**](EmbeddedWalletsApi.md#getEmbeddedWalletAssetBalance) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Retrieve asset balance | +| [**getEmbeddedWalletDevice**](EmbeddedWalletsApi.md#getEmbeddedWalletDevice) | **GET** /ncw/wallets/{walletId}/devices/{deviceId} | Get Embedded Wallet Device | +| [**getEmbeddedWalletDeviceSetupState**](EmbeddedWalletsApi.md#getEmbeddedWalletDeviceSetupState) | **GET** /ncw/wallets/{walletId}/devices/{deviceId}/setup_status | Get device key setup state | +| [**getEmbeddedWalletLatestBackup**](EmbeddedWalletsApi.md#getEmbeddedWalletLatestBackup) | **GET** /ncw/wallets/{walletId}/backup/latest | Get wallet Latest Backup details | +| [**getEmbeddedWalletPublicKeyInfoForAddress**](EmbeddedWalletsApi.md#getEmbeddedWalletPublicKeyInfoForAddress) | **GET** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset | +| [**getEmbeddedWalletSupportedAssets**](EmbeddedWalletsApi.md#getEmbeddedWalletSupportedAssets) | **GET** /ncw/wallets/supported_assets | Retrieve supported assets | +| [**getEmbeddedWallets**](EmbeddedWalletsApi.md#getEmbeddedWallets) | **GET** /ncw/wallets | List wallets | +| [**getPublicKeyInfoNcw**](EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/wallets/{walletId}/public_key_info | Get the public key for a derivation path | +| [**refreshEmbeddedWalletAssetBalance**](EmbeddedWalletsApi.md#refreshEmbeddedWalletAssetBalance) | **PUT** /ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance | Refresh asset balance | -## getPublicKeyInfoForAddressNcw +## addEmbeddedWalletAsset -> CompletableFuture> getPublicKeyInfoForAddressNcw getPublicKeyInfoForAddressNcw(walletId, accountId, assetId, change, addressIndex, compressed) +> CompletableFuture> addEmbeddedWalletAsset addEmbeddedWalletAsset(walletId, accountId, assetId, idempotencyKey) + +Add asset to account + +Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String accountId = "0"; // String | The ID of the account + String assetId = "BTC"; // String | The ID of the asset + String idempotencyKey = "idempotencyKey_example"; // 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. + try { + CompletableFuture> response = fireblocks.embeddedWallets().addEmbeddedWalletAsset(walletId, accountId, assetId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#addEmbeddedWalletAsset"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#addEmbeddedWalletAsset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **accountId** | **String**| The ID of the account | | +| **assetId** | **String**| The ID of the asset | | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **0** | Error Response | * X-Request-ID -
| + + +## createEmbeddedWallet + +> CompletableFuture> createEmbeddedWallet createEmbeddedWallet(idempotencyKey) + +Create a new wallet + +Create new Non Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String idempotencyKey = "idempotencyKey_example"; // 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. + try { + CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWallet(idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWallet"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWallet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Wallet created successfully | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## createEmbeddedWalletAccount + +> CompletableFuture> createEmbeddedWalletAccount createEmbeddedWalletAccount(walletId, idempotencyKey) + +Create a new account + +Create a new account under a specific Non Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String idempotencyKey = "idempotencyKey_example"; // 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. + try { + CompletableFuture> response = fireblocks.embeddedWallets().createEmbeddedWalletAccount(walletId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWalletAccount"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#createEmbeddedWalletAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Account Created | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWallet + +> CompletableFuture> getEmbeddedWallet getEmbeddedWallet(walletId) + +Get a wallet + +Get a wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallet(walletId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallet"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletAccount + +> CompletableFuture> getEmbeddedWalletAccount getEmbeddedWalletAccount(walletId, accountId) + +Get a account + +Get a specific account under a specific Non Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | WalletId + String accountId = "0"; // String | The ID of the account + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAccount(walletId, accountId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAccount"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| WalletId | | +| **accountId** | **String**| The ID of the account | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletAddresses + +> CompletableFuture> getEmbeddedWalletAddresses getEmbeddedWalletAddresses(walletId, accountId, assetId, pageCursor, pageSize, sort, order, enabled) + +Retrieve asset addresses + +Get the addresses of a specific asset, under a specific account, under a specific Non Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String accountId = "0"; // String | The ID of the account + String assetId = "BTC"; // String | The ID of the asset + String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Cursor to the next page + BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Items per page + String sort = "address"; // String | Sort by address + String order = "DESC"; // String | Is the order ascending or descending + Boolean enabled = true; // Boolean | Enabled + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAddresses(walletId, accountId, assetId, pageCursor, pageSize, sort, order, enabled); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAddresses"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAddresses"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **accountId** | **String**| The ID of the account | | +| **assetId** | **String**| The ID of the asset | | +| **pageCursor** | **String**| Cursor to the next page | [optional] | +| **pageSize** | **BigDecimal**| Items per page | [optional] | +| **sort** | **String**| Sort by address | [optional] [default to createdAt] [enum: address, createdAt] | +| **order** | **String**| Is the order ascending or descending | [optional] [default to ASC] [enum: DESC, ASC] | +| **enabled** | **Boolean**| Enabled | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletAsset + +> CompletableFuture> getEmbeddedWalletAsset getEmbeddedWalletAsset(walletId, accountId, assetId) + +Retrieve asset + +Get asset under a specific account, under a specific Non Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String accountId = "0"; // String | The ID of the account + String assetId = "BTC"; // String | The ID of the asset + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAsset(walletId, accountId, assetId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAsset"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAsset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **accountId** | **String**| The ID of the account | | +| **assetId** | **String**| The ID of the asset | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletAssetBalance + +> CompletableFuture> getEmbeddedWalletAssetBalance getEmbeddedWalletAssetBalance(walletId, accountId, assetId) + +Retrieve asset balance + +Get balance for specific asset, under a specific account + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String accountId = "0"; // String | The ID of the account + String assetId = "BTC"; // String | The ID of the asset + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletAssetBalance(walletId, accountId, assetId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAssetBalance"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletAssetBalance"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **accountId** | **String**| The ID of the account | | +| **assetId** | **String**| The ID of the asset | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletDevice + +> CompletableFuture> getEmbeddedWalletDevice getEmbeddedWalletDevice(walletId, deviceId) + +Get Embedded Wallet Device + +Get specific device for a specific s Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String deviceId = "9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3"; // String | Device Id + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDevice(walletId, deviceId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDevice"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **deviceId** | **String**| Device Id | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletDeviceSetupState + +> CompletableFuture> getEmbeddedWalletDeviceSetupState getEmbeddedWalletDeviceSetupState(walletId, deviceId) + +Get device key setup state + +Get the state of the specific device setup key under a specific Non Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String deviceId = "9ee1bff0-6dba-4f0c-9b75-03fe90e66fa3"; // String | Device Id + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletDeviceSetupState(walletId, deviceId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDeviceSetupState"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletDeviceSetupState"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **deviceId** | **String**| Device Id | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletLatestBackup + +> CompletableFuture> getEmbeddedWalletLatestBackup getEmbeddedWalletLatestBackup(walletId) + +Get wallet Latest Backup details + +Get wallet Latest Backup details, including the deviceId, and backup time + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletLatestBackup(walletId); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletLatestBackup"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletLatestBackup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWalletPublicKeyInfoForAddress + +> CompletableFuture> getEmbeddedWalletPublicKeyInfoForAddress getEmbeddedWalletPublicKeyInfoForAddress(xEndUserWalletId, walletId, accountId, assetId, change, addressIndex, compressed) Get the public key of an asset @@ -40,6 +1003,7 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | The ID of the Non-Custodial wallet String accountId = "0"; // String | The ID of the account String assetId = "BTC"; // String | The ID of the asset @@ -47,19 +1011,19 @@ public class Example { BigDecimal addressIndex = new BigDecimal("0"); // BigDecimal | BIP44 derivation path - index value Boolean compressed = true; // Boolean | Compressed/Uncompressed public key format try { - CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId, accountId, assetId, change, addressIndex, compressed); + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletPublicKeyInfoForAddress(xEndUserWalletId, walletId, accountId, assetId, change, addressIndex, compressed); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling EmbeddedWalletsApi#getPublicKeyInfoForAddressNcw"); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletPublicKeyInfoForAddress"); System.err.println("Status code: " + apiException.getCode()); System.err.println("Response headers: " + apiException.getResponseHeaders()); System.err.println("Reason: " + apiException.getResponseBody()); e.printStackTrace(); } catch (ApiException e) { - System.err.println("Exception when calling EmbeddedWalletsApi#getPublicKeyInfoForAddressNcw"); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletPublicKeyInfoForAddress"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -74,6 +1038,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | | | **walletId** | **String**| The ID of the Non-Custodial wallet | | | **accountId** | **String**| The ID of the account | | | **assetId** | **String**| The ID of the asset | | @@ -102,9 +1067,187 @@ No authorization required | **0** | Error Response | * X-Request-ID -
| +## getEmbeddedWalletSupportedAssets + +> CompletableFuture> getEmbeddedWalletSupportedAssets getEmbeddedWalletSupportedAssets(pageCursor, pageSize, onlyBaseAssets) + +Retrieve supported assets + +Get all the available supported assets for the Non-Custodial Wallet + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Next page cursor to fetch + BigDecimal pageSize = new BigDecimal("200"); // BigDecimal | Items per page + Boolean onlyBaseAssets = true; // Boolean | Only base assets + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWalletSupportedAssets(pageCursor, pageSize, onlyBaseAssets); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletSupportedAssets"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWalletSupportedAssets"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pageCursor** | **String**| Next page cursor to fetch | [optional] | +| **pageSize** | **BigDecimal**| Items per page | [optional] [default to 200] | +| **onlyBaseAssets** | **Boolean**| Only base assets | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + +## getEmbeddedWallets + +> CompletableFuture> getEmbeddedWallets getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled) + +List wallets + +Get all Non Custodial Wallets + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String pageCursor = "MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA=="; // String | Next page cursor to fetch + BigDecimal pageSize = new BigDecimal("200"); // BigDecimal | Items per page + String sort = "createdAt"; // String | Field(s) to use for sorting + String order = "ASC"; // String | Is the order ascending or descending + Boolean enabled = true; // Boolean | Enabled Wallets + try { + CompletableFuture> response = fireblocks.embeddedWallets().getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallets"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#getEmbeddedWallets"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pageCursor** | **String**| Next page cursor to fetch | [optional] | +| **pageSize** | **BigDecimal**| Items per page | [optional] [default to 200] | +| **sort** | **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] | +| **enabled** | **Boolean**| Enabled Wallets | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getPublicKeyInfoNcw -> CompletableFuture> getPublicKeyInfoNcw getPublicKeyInfoNcw(walletId, derivationPath, algorithm, compressed) +> CompletableFuture> getPublicKeyInfoNcw getPublicKeyInfoNcw(xEndUserWalletId, walletId, derivationPath, algorithm, compressed) Get the public key for a derivation path @@ -133,12 +1276,13 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | The ID of the Non-Custodial wallet String derivationPath = "[44,0,0,0,0]"; // String | An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. String algorithm = "MPC_ECDSA_SECP256K1"; // String | Elliptic Curve - Boolean compressed = true; // Boolean | + Boolean compressed = true; // Boolean | Compressed/Uncompressed public key format try { - CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId, derivationPath, algorithm, compressed); + CompletableFuture> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(xEndUserWalletId, walletId, derivationPath, algorithm, compressed); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -165,10 +1309,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | | | **walletId** | **String**| The ID of the Non-Custodial wallet | | | **derivationPath** | **String**| An array of integers (passed as JSON stringified array) representing the full BIP44 derivation path of the requested public key. The first element must always be 44. | | | **algorithm** | **String**| Elliptic Curve | [enum: MPC_ECDSA_SECP256K1, MPC_ECDSA_SECP256R1, MPC_EDDSA_ED25519] | -| **compressed** | **Boolean**| | [optional] | +| **compressed** | **Boolean**| Compressed/Uncompressed public key format | [optional] | ### Return type @@ -190,3 +1335,92 @@ No authorization required | **200** | Public key information | * X-Request-ID -
| | **0** | Error Response | * X-Request-ID -
| + +## refreshEmbeddedWalletAssetBalance + +> CompletableFuture> refreshEmbeddedWalletAssetBalance refreshEmbeddedWalletAssetBalance(walletId, accountId, assetId, idempotencyKey) + +Refresh asset balance + +Refresh the balance of an asset in a specific account + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.EmbeddedWalletsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String walletId = "550e8400-e29b-41d4-a716-446655440000"; // String | Wallet Id + String accountId = "0"; // String | The ID of the account + String assetId = "BTC"; // String | The ID of the asset + String idempotencyKey = "idempotencyKey_example"; // 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. + try { + CompletableFuture> response = fireblocks.embeddedWallets().refreshEmbeddedWalletAssetBalance(walletId, accountId, assetId, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling EmbeddedWalletsApi#refreshEmbeddedWalletAssetBalance"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling EmbeddedWalletsApi#refreshEmbeddedWalletAssetBalance"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **walletId** | **String**| Wallet Id | | +| **accountId** | **String**| The ID of the account | | +| **assetId** | **String**| The ID of the asset | | +| **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] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + diff --git a/docs/JobManagementApi.md b/docs/JobManagementApi.md index 0a2eeafd..bf1b8fac 100644 --- a/docs/JobManagementApi.md +++ b/docs/JobManagementApi.md @@ -19,7 +19,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ Cancel a running job -Stop the given job immediately. If the job is in the ‘Active’ state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. +Stop the given job immediately. If the job is in the 'Active' state, the job will be canceled after completing the current task. Vault accounts and Wallets that are already created will not be affected. ### Example @@ -438,7 +438,7 @@ No authorization required Pause a job -Pause the given job, after the current task is done. A paused job can later be resumed by calling ‘continue’, or canceled. +Pause the given job, after the current task is done. A paused job can later be resumed by calling 'continue', or canceled. ### Example diff --git a/docs/NetworkConnectionsApi.md b/docs/NetworkConnectionsApi.md index 577edf0f..392b68eb 100644 --- a/docs/NetworkConnectionsApi.md +++ b/docs/NetworkConnectionsApi.md @@ -113,7 +113,7 @@ No authorization required Creates a new network connection -Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). +Initiates a new network connection. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** Supported asset groups for routing police can be found at `/network_ids/routing_policy_asset_groups` - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). ### Example @@ -532,7 +532,7 @@ No authorization required List network connections -Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). +Returns all network connections. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`). ### Example diff --git a/docs/NftsApi.md b/docs/NftsApi.md index b66db243..bfaf57f1 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, BASECHAIN_ETH_TEST3, BASECHAIN_ETH_TEST5, ETHERLINK, ETHERLINK_TEST, MANTLE, MANTLE_TEST, GUN_GUNZILLA_TEST, ETH_SONEIUM, SONEIUM_MINATO_TEST, IOTX_IOTEX, KLAY_KAIA, KLAY_KAIA_TEST, APECHAIN, APECHAIN_TEST] | +| **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, BASECHAIN_ETH_TEST5, ETHERLINK, ETHERLINK_TEST, MANTLE, MANTLE_TEST, GUN_GUNZILLA, GUN_GUNZILLA_TEST, ETH_SONEIUM, SONEIUM_MINATO_TEST, IOTX_IOTEX, KLAY_KAIA, KLAY_KAIA_TEST, APECHAIN, APECHAIN_TEST] | | **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] | @@ -493,7 +493,7 @@ No authorization required ## refreshNFTMetadata -> CompletableFuture> refreshNFTMetadata refreshNFTMetadata(id, idempotencyKey) +> CompletableFuture> refreshNFTMetadata refreshNFTMetadata(id, xEndUserWalletId, idempotencyKey) Refresh token metadata @@ -523,9 +523,10 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); String id = "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd"; // String | NFT ID + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // 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. try { - CompletableFuture> response = fireblocks.nfts().refreshNFTMetadata(id, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().refreshNFTMetadata(id, xEndUserWalletId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -552,6 +553,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| NFT ID | | +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **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] | ### Return type @@ -635,7 +637,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST5, ETHERLINK, ETHERLINK_TEST, MANTLE, MANTLE_TEST, GUN_GUNZILLA_TEST, ETH_SONEIUM, SONEIUM_MINATO_TEST, IOTX_IOTEX, KLAY_KAIA, KLAY_KAIA_TEST, APECHAIN, APECHAIN_TEST] | +| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST5, ETHERLINK, ETHERLINK_TEST, MANTLE, MANTLE_TEST, GUN_GUNZILLA, GUN_GUNZILLA_TEST, ETH_SONEIUM, SONEIUM_MINATO_TEST, IOTX_IOTEX, KLAY_KAIA, KLAY_KAIA_TEST, APECHAIN, APECHAIN_TEST] | | **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] | @@ -661,7 +663,7 @@ No authorization required ## updateTokenOwnershipStatus -> CompletableFuture> updateTokenOwnershipStatus updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, idempotencyKey) +> CompletableFuture> updateTokenOwnershipStatus updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey) Update token ownership status @@ -692,9 +694,10 @@ public class Example { UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto = new UpdateTokenOwnershipStatusDto(); // UpdateTokenOwnershipStatusDto | String id = "NFT-abcdefabcdefabcdefabcdefabcdefabcdefabcd"; // String | NFT ID + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // 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. try { - CompletableFuture> response = fireblocks.nfts().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -722,6 +725,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **updateTokenOwnershipStatusDto** | [**UpdateTokenOwnershipStatusDto**](UpdateTokenOwnershipStatusDto.md)| | | | **id** | **String**| NFT ID | | +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **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] | ### Return type @@ -746,7 +750,7 @@ No authorization required ## updateTokensOwnershipSpam -> CompletableFuture> updateTokensOwnershipSpam updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, idempotencyKey) +> CompletableFuture> updateTokensOwnershipSpam updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey) Update tokens ownership spam property @@ -776,9 +780,10 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); List tokenOwnershipSpamUpdatePayload = Arrays.asList(); // List | + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // 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. try { - CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -805,6 +810,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tokenOwnershipSpamUpdatePayload** | [**List<TokenOwnershipSpamUpdatePayload>**](TokenOwnershipSpamUpdatePayload.md)| | | +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **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] | ### Return type @@ -831,7 +837,7 @@ No authorization required ## updateTokensOwnershipStatus -> CompletableFuture> updateTokensOwnershipStatus updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, idempotencyKey) +> CompletableFuture> updateTokensOwnershipStatus updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey) Update tokens ownership status @@ -861,9 +867,10 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); List tokenOwnershipStatusUpdatePayload = Arrays.asList(); // List | + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String idempotencyKey = "idempotencyKey_example"; // 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. try { - CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, idempotencyKey); + CompletableFuture> response = fireblocks.nfts().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -890,6 +897,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tokenOwnershipStatusUpdatePayload** | [**List<TokenOwnershipStatusUpdatePayload>**](TokenOwnershipStatusUpdatePayload.md)| | | +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **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] | ### Return type diff --git a/docs/StakingApi.md b/docs/StakingApi.md index 30957f9a..6d02851a 100644 --- a/docs/StakingApi.md +++ b/docs/StakingApi.md @@ -80,7 +80,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **providerId** | [**StakingProvider**](.md)| The unique identifier of the staking provider | [enum: kiln, figment, lido] | +| **providerId** | [**StakingProvider**](.md)| The unique identifier of the staking provider | [enum: kiln, figment, lido, p2p] | | **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] | ### Return type diff --git a/docs/StakingProvider.md b/docs/StakingProvider.md index 87403ff6..6a4b0fb5 100644 --- a/docs/StakingProvider.md +++ b/docs/StakingProvider.md @@ -11,5 +11,7 @@ * `LIDO` (value: `"lido"`) +* `P2P` (value: `"p2p"`) + diff --git a/docs/TokenOwnershipResponse.md b/docs/TokenOwnershipResponse.md index 0bd2fd24..c5e2f081 100644 --- a/docs/TokenOwnershipResponse.md +++ b/docs/TokenOwnershipResponse.md @@ -48,6 +48,7 @@ | ETHERLINK_TEST | "ETHERLINK_TEST" | | MANTLE | "MANTLE" | | MANTLE_TEST | "MANTLE_TEST" | +| GUN_GUNZILLA | "GUN_GUNZILLA" | | GUN_GUNZILLA_TEST | "GUN_GUNZILLA_TEST" | | ETH_SONEIUM | "ETH_SONEIUM" | | SONEIUM_MINATO_TEST | "SONEIUM_MINATO_TEST" | diff --git a/docs/TokenResponse.md b/docs/TokenResponse.md index 8b93a588..e90e4189 100644 --- a/docs/TokenResponse.md +++ b/docs/TokenResponse.md @@ -41,6 +41,7 @@ | ETHERLINK_TEST | "ETHERLINK_TEST" | | MANTLE | "MANTLE" | | MANTLE_TEST | "MANTLE_TEST" | +| GUN_GUNZILLA | "GUN_GUNZILLA" | | GUN_GUNZILLA_TEST | "GUN_GUNZILLA_TEST" | | ETH_SONEIUM | "ETH_SONEIUM" | | SONEIUM_MINATO_TEST | "SONEIUM_MINATO_TEST" | diff --git a/docs/TokenizationApi.md b/docs/TokenizationApi.md index a83cf7fd..eb813969 100644 --- a/docs/TokenizationApi.md +++ b/docs/TokenizationApi.md @@ -16,7 +16,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**issueTokenMultiChain**](TokenizationApi.md#issueTokenMultiChain) | **POST** /tokenization/multichain/tokens | Issue a token on one or more blockchains | | [**link**](TokenizationApi.md#link) | **POST** /tokenization/tokens/link | Link a contract | | [**mintCollectionToken**](TokenizationApi.md#mintCollectionToken) | **POST** /tokenization/collections/{id}/tokens/mint | Mint tokens | -| [**reIssueTokenMultiChain**](TokenizationApi.md#reIssueTokenMultiChain) | **POST** /tokenization/multichain/token/{tokenLinkId} | Reissue a multichain token | +| [**reIssueTokenMultiChain**](TokenizationApi.md#reIssueTokenMultiChain) | **POST** /tokenization/multichain/reissue/token/{tokenLinkId} | Reissue a multichain token | | [**unlink**](TokenizationApi.md#unlink) | **DELETE** /tokenization/tokens/{id} | Unlink a token | | [**unlinkCollection**](TokenizationApi.md#unlinkCollection) | **DELETE** /tokenization/collections/{id} | Delete a collection link | diff --git a/docs/TransferPeerPathType.md b/docs/TransferPeerPathType.md index 0d88508a..f76ce10d 100644 --- a/docs/TransferPeerPathType.md +++ b/docs/TransferPeerPathType.md @@ -31,5 +31,7 @@ * `PROGRAM_CALL` (value: `"PROGRAM_CALL"`) +* `MULTI_DESTINATION` (value: `"MULTI_DESTINATION"`) + diff --git a/docs/TravelRulePolicyRuleResponse.md b/docs/TravelRulePolicyRuleResponse.md index 5a1d19dc..0f512d06 100644 --- a/docs/TravelRulePolicyRuleResponse.md +++ b/docs/TravelRulePolicyRuleResponse.md @@ -18,7 +18,7 @@ |**baseAsset** | **String** | | [optional] | |**amount** | **BigDecimal** | | [optional] | |**amountUSD** | **BigDecimal** | | [optional] | -|**networkProtocol** | **String** | | [optional] | +|**networkProtocol** | **String** | The network protocol of the token | [optional] | |**operation** | **String** | | [optional] | |**action** | [**ActionEnum**](#ActionEnum) | | | diff --git a/docs/Web3ConnectionsApi.md b/docs/Web3ConnectionsApi.md index a35ac703..234e8a28 100644 --- a/docs/Web3ConnectionsApi.md +++ b/docs/Web3ConnectionsApi.md @@ -13,7 +13,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ ## create -> CompletableFuture> create create(createConnectionRequest, idempotencyKey) +> CompletableFuture> create create(createConnectionRequest, idempotencyKey, xEndUserWalletId) Create a new Web3 connection. @@ -44,8 +44,9 @@ public class Example { CreateConnectionRequest createConnectionRequest = new CreateConnectionRequest(); // CreateConnectionRequest | String idempotencyKey = "idempotencyKey_example"; // 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. + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. try { - CompletableFuture> response = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey); + CompletableFuture> response = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey, xEndUserWalletId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -74,6 +75,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **createConnectionRequest** | [**CreateConnectionRequest**](CreateConnectionRequest.md)| | | | **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] | +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | ### Return type @@ -99,7 +101,7 @@ No authorization required ## get -> CompletableFuture> get get(order, filter, sort, pageSize, next) +> CompletableFuture> get get(xEndUserWalletId, order, filter, sort, pageSize, next) List all open Web3 connections. @@ -128,13 +130,14 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. String order = "ASC"; // String | List order; ascending or descending. GetFilterParameter filter = new GetFilterParameter(); // GetFilterParameter | Parsed filter object String sort = "id"; // String | Property to sort Web3 connections by. BigDecimal pageSize = new BigDecimal("10"); // BigDecimal | Amount of results to return in the next page. String next = "next_example"; // String | Cursor to the next page try { - CompletableFuture> response = fireblocks.web3Connections().get(order, filter, sort, pageSize, next); + CompletableFuture> response = fireblocks.web3Connections().get(xEndUserWalletId, order, filter, sort, pageSize, next); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -161,6 +164,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | | **order** | **String**| List order; ascending or descending. | [optional] [default to ASC] [enum: ASC, DESC] | | **filter** | [**GetFilterParameter**](.md)| Parsed filter object | [optional] | | **sort** | **String**| Property to sort Web3 connections by. | [optional] [default to createdAt] [enum: id, userId, vaultAccountId, createdAt, feeLevel, appUrl, appName] | @@ -191,7 +195,7 @@ No authorization required ## remove -> CompletableFuture> remove remove(id) +> CompletableFuture> remove remove(id, xEndUserWalletId) Remove an existing Web3 connection. @@ -221,8 +225,9 @@ public class Example { Fireblocks fireblocks = new Fireblocks(configurationOptions); String id = "id_example"; // String | The ID of the existing Web3 connection to remove. + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. try { - CompletableFuture> response = fireblocks.web3Connections().remove(id); + CompletableFuture> response = fireblocks.web3Connections().remove(id, xEndUserWalletId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -249,6 +254,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| The ID of the existing Web3 connection to remove. | | +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | ### Return type @@ -274,7 +280,7 @@ No authorization required ## submit -> CompletableFuture> submit submit(respondToConnectionRequest, id, idempotencyKey) +> CompletableFuture> submit submit(respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId) Respond to a pending Web3 connection request. @@ -306,8 +312,9 @@ public class Example { RespondToConnectionRequest respondToConnectionRequest = new RespondToConnectionRequest(); // RespondToConnectionRequest | String id = "id_example"; // String | The ID of the initiated Web3 connection to approve. String idempotencyKey = "idempotencyKey_example"; // 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. + UUID xEndUserWalletId = UUID.randomUUID(); // UUID | Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. try { - CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest, id, idempotencyKey); + CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -336,6 +343,7 @@ public class Example { | **respondToConnectionRequest** | [**RespondToConnectionRequest**](RespondToConnectionRequest.md)| | | | **id** | **String**| The ID of the initiated Web3 connection to approve. | | | **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] | +| **xEndUserWalletId** | **UUID**| Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. | [optional] | ### Return type diff --git a/pom.xml b/pom.xml index 220b5045..94938f50 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 10.1.1 + 0.0.0 https://github.com/fireblocks/java-sdk The Fireblocks Official SDK is a comprehensive software development kit that enables seamless integration and interaction with the Fireblocks platform. Fireblocks is a cutting-edge blockchain infrastructure platform that provides secure and scalable solutions for managing digital assets and transactions. This SDK empowers developers to build robust applications that can interact with the Fireblocks platform's features, including creating and managing vault accounts, initiating secure transactions, managing assets, and more. It abstracts complex interactions with the Fireblocks API, making it easier for developers to leverage the platform's capabilities while adhering to best practices in security and efficiency. diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java index ed5fe762..9ec56d09 100644 --- a/src/main/java/com/fireblocks/sdk/Configuration.java +++ b/src/main/java/com/fireblocks/sdk/Configuration.java @@ -14,7 +14,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "10.1.1"; + public static final String VERSION = "0.0.0"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java index 9f4c777a..2ee5d5b4 100644 --- a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java @@ -20,6 +20,17 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; +import com.fireblocks.sdk.model.EmbeddedWallet; +import com.fireblocks.sdk.model.EmbeddedWalletAccount; +import com.fireblocks.sdk.model.EmbeddedWalletAddressDetails; +import com.fireblocks.sdk.model.EmbeddedWalletAssetBalance; +import com.fireblocks.sdk.model.EmbeddedWalletAssetResponse; +import com.fireblocks.sdk.model.EmbeddedWalletDevice; +import com.fireblocks.sdk.model.EmbeddedWalletDeviceKeySetupResponse; +import com.fireblocks.sdk.model.EmbeddedWalletLatestBackupResponse; +import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAddressesResponse; +import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAssetsResponse; +import com.fireblocks.sdk.model.EmbeddedWalletPaginatedWalletsResponse; import com.fireblocks.sdk.model.PublicKeyInformation; import java.io.IOException; import java.io.InputStream; @@ -32,6 +43,7 @@ import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; +import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -73,10 +85,891 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } + /** + * Add asset to account Get the addresses of a specific asset, under a specific account, under a + * specific Non Custodial Wallet + * + * @param walletId Wallet Id (required) + * @param accountId The ID of the account (required) + * @param assetId The ID of the asset (required) + * @param idempotencyKey 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) + * @return CompletableFuture<ApiResponse<EmbeddedWalletAddressDetails>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> addEmbeddedWalletAsset( + String walletId, String accountId, String assetId, String idempotencyKey) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + addEmbeddedWalletAssetRequestBuilder( + walletId, accountId, assetId, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "addEmbeddedWalletAsset", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletAddressDetails>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder addEmbeddedWalletAssetRequestBuilder( + String walletId, String accountId, String assetId, String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "addEmbeddedWalletAsset", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "addEmbeddedWalletAsset", "accountId", accountId); + ValidationUtils.assertParamExistsAndNotEmpty("addEmbeddedWalletAsset", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Create a new wallet Create new Non Custodial Wallet + * + * @param idempotencyKey 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) + * @return CompletableFuture<ApiResponse<EmbeddedWallet>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> createEmbeddedWallet( + String idempotencyKey) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + createEmbeddedWalletRequestBuilder(idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "createEmbeddedWallet", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWallet>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder createEmbeddedWalletRequestBuilder(String idempotencyKey) + throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/ncw/wallets"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Create a new account Create a new account under a specific Non Custodial Wallet + * + * @param walletId Wallet Id (required) + * @param idempotencyKey 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) + * @return CompletableFuture<ApiResponse<EmbeddedWalletAccount>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> createEmbeddedWalletAccount( + String walletId, String idempotencyKey) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + createEmbeddedWalletAccountRequestBuilder(walletId, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "createEmbeddedWalletAccount", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletAccount>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder createEmbeddedWalletAccountRequestBuilder( + String walletId, String idempotencyKey) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "createEmbeddedWalletAccount", "walletId", walletId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/accounts" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Get a wallet Get a wallet + * + * @param walletId Wallet Id (required) + * @return CompletableFuture<ApiResponse<EmbeddedWallet>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> getEmbeddedWallet(String walletId) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = getEmbeddedWalletRequestBuilder(walletId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException("getEmbeddedWallet", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWallet>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletRequestBuilder(String walletId) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty("getEmbeddedWallet", "walletId", walletId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Get a account Get a specific account under a specific Non Custodial Wallet + * + * @param walletId WalletId (required) + * @param accountId The ID of the account (required) + * @return CompletableFuture<ApiResponse<EmbeddedWalletAccount>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> getEmbeddedWalletAccount( + String walletId, String accountId) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletAccountRequestBuilder(walletId, accountId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletAccount", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletAccount>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletAccountRequestBuilder( + String walletId, String accountId) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAccount", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAccount", "accountId", accountId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/accounts/{accountId}" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Retrieve asset addresses Get the addresses of a specific asset, under a specific account, + * under a specific Non Custodial Wallet + * + * @param walletId Wallet Id (required) + * @param accountId The ID of the account (required) + * @param assetId The ID of the asset (required) + * @param pageCursor Cursor to the next page (optional) + * @param pageSize Items per page (optional) + * @param sort Sort by address (optional, default to createdAt) + * @param order Is the order ascending or descending (optional, default to ASC) + * @param enabled Enabled (optional) + * @return CompletableFuture<ApiResponse<EmbeddedWalletPaginatedAddressesResponse>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> + getEmbeddedWalletAddresses( + String walletId, + String accountId, + String assetId, + String pageCursor, + BigDecimal pageSize, + String sort, + String order, + Boolean enabled) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletAddressesRequestBuilder( + walletId, + accountId, + assetId, + pageCursor, + pageSize, + sort, + order, + enabled); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletAddresses", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse< + EmbeddedWalletPaginatedAddressesResponse>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletPaginatedAddressesResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletAddressesRequestBuilder( + String walletId, + String accountId, + String assetId, + String pageCursor, + BigDecimal pageSize, + String sort, + String order, + Boolean enabled) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAddresses", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAddresses", "accountId", accountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAddresses", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/addresses" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "pageCursor"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); + localVarQueryParameterBaseName = "pageSize"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); + localVarQueryParameterBaseName = "sort"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); + localVarQueryParameterBaseName = "order"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); + localVarQueryParameterBaseName = "enabled"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("enabled", enabled)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Retrieve asset Get asset under a specific account, under a specific Non Custodial Wallet + * + * @param walletId Wallet Id (required) + * @param accountId The ID of the account (required) + * @param assetId The ID of the asset (required) + * @return CompletableFuture<ApiResponse<EmbeddedWalletAssetResponse>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> getEmbeddedWalletAsset( + String walletId, String accountId, String assetId) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletAssetRequestBuilder(walletId, accountId, assetId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletAsset", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletAssetResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletAssetRequestBuilder( + String walletId, String accountId, String assetId) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAsset", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAsset", "accountId", accountId); + ValidationUtils.assertParamExistsAndNotEmpty("getEmbeddedWalletAsset", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Retrieve asset balance Get balance for specific asset, under a specific account + * + * @param walletId Wallet Id (required) + * @param accountId The ID of the account (required) + * @param assetId The ID of the asset (required) + * @return CompletableFuture<ApiResponse<EmbeddedWalletAssetBalance>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> getEmbeddedWalletAssetBalance( + String walletId, String accountId, String assetId) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletAssetBalanceRequestBuilder(walletId, accountId, assetId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletAssetBalance", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletAssetBalance>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletAssetBalanceRequestBuilder( + String walletId, String accountId, String assetId) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAssetBalance", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAssetBalance", "accountId", accountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletAssetBalance", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Get Embedded Wallet Device Get specific device for a specific s Wallet + * + * @param walletId Wallet Id (required) + * @param deviceId Device Id (required) + * @return CompletableFuture<ApiResponse<EmbeddedWalletDevice>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> getEmbeddedWalletDevice( + String walletId, String deviceId) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletDeviceRequestBuilder(walletId, deviceId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletDevice", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletDevice>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletDeviceRequestBuilder( + String walletId, String deviceId) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletDevice", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletDevice", "deviceId", deviceId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/devices/{deviceId}" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{deviceId}", ApiClient.urlEncode(deviceId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Get device key setup state Get the state of the specific device setup key under a specific + * Non Custodial Wallet + * + * @param walletId Wallet Id (required) + * @param deviceId Device Id (required) + * @return CompletableFuture<ApiResponse<EmbeddedWalletDeviceKeySetupResponse>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> + getEmbeddedWalletDeviceSetupState(String walletId, String deviceId) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletDeviceSetupStateRequestBuilder(walletId, deviceId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletDeviceSetupState", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletDeviceKeySetupResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletDeviceSetupStateRequestBuilder( + String walletId, String deviceId) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletDeviceSetupState", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletDeviceSetupState", "deviceId", deviceId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/devices/{deviceId}/setup_status" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{deviceId}", ApiClient.urlEncode(deviceId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Get wallet Latest Backup details Get wallet Latest Backup details, including the deviceId, + * and backup time + * + * @param walletId Wallet Id (required) + * @return CompletableFuture<ApiResponse<EmbeddedWalletLatestBackupResponse>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> + getEmbeddedWalletLatestBackup(String walletId) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletLatestBackupRequestBuilder(walletId); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletLatestBackup", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletLatestBackupResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletLatestBackupRequestBuilder(String walletId) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletLatestBackup", "walletId", walletId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/backup/latest" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Get the public key of an asset Gets the public key of an asset associated with a specific * account within a Non-Custodial Wallet * + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (required) * @param walletId The ID of the Non-Custodial wallet (required) * @param accountId The ID of the account (required) * @param assetId The ID of the asset (required) @@ -86,18 +979,26 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @return CompletableFuture<ApiResponse<PublicKeyInformation>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getPublicKeyInfoForAddressNcw( - String walletId, - String accountId, - String assetId, - BigDecimal change, - BigDecimal addressIndex, - Boolean compressed) - throws ApiException { + public CompletableFuture> + getEmbeddedWalletPublicKeyInfoForAddress( + UUID xEndUserWalletId, + String walletId, + String accountId, + String assetId, + BigDecimal change, + BigDecimal addressIndex, + Boolean compressed) + throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - getPublicKeyInfoForAddressNcwRequestBuilder( - walletId, accountId, assetId, change, addressIndex, compressed); + getEmbeddedWalletPublicKeyInfoForAddressRequestBuilder( + xEndUserWalletId, + walletId, + accountId, + assetId, + change, + addressIndex, + compressed); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -108,7 +1009,7 @@ public CompletableFuture> getPublicKeyInfoForA if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( getApiException( - "getPublicKeyInfoForAddressNcw", + "getEmbeddedWalletPublicKeyInfoForAddress", localVarResponse)); } try { @@ -132,7 +1033,8 @@ public CompletableFuture> getPublicKeyInfoForA } } - private HttpRequest.Builder getPublicKeyInfoForAddressNcwRequestBuilder( + private HttpRequest.Builder getEmbeddedWalletPublicKeyInfoForAddressRequestBuilder( + UUID xEndUserWalletId, String walletId, String accountId, String assetId, @@ -141,19 +1043,24 @@ private HttpRequest.Builder getPublicKeyInfoForAddressNcwRequestBuilder( Boolean compressed) throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty( - "getPublicKeyInfoForAddressNcw", "walletId", walletId); + "getEmbeddedWalletPublicKeyInfoForAddress", + "xEndUserWalletId", + xEndUserWalletId.toString()); ValidationUtils.assertParamExistsAndNotEmpty( - "getPublicKeyInfoForAddressNcw", "accountId", accountId); + "getEmbeddedWalletPublicKeyInfoForAddress", "walletId", walletId); ValidationUtils.assertParamExistsAndNotEmpty( - "getPublicKeyInfoForAddressNcw", "assetId", assetId); - ValidationUtils.assertParamExists("getPublicKeyInfoForAddressNcw", "change", change); + "getEmbeddedWalletPublicKeyInfoForAddress", "accountId", accountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "getEmbeddedWalletPublicKeyInfoForAddress", "assetId", assetId); + ValidationUtils.assertParamExists( + "getEmbeddedWalletPublicKeyInfoForAddress", "change", change); ValidationUtils.assertParamExists( - "getPublicKeyInfoForAddressNcw", "addressIndex", addressIndex); + "getEmbeddedWalletPublicKeyInfoForAddress", "addressIndex", addressIndex); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info" + "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/{change}/{addressIndex}/public_key_info" .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) .replace("{assetId}", ApiClient.urlEncode(assetId.toString())) @@ -178,6 +1085,200 @@ private HttpRequest.Builder getPublicKeyInfoForAddressNcwRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * Retrieve supported assets Get all the available supported assets for the Non-Custodial Wallet + * + * @param pageCursor Next page cursor to fetch (optional) + * @param pageSize Items per page (optional, default to 200) + * @param onlyBaseAssets Only base assets (optional) + * @return CompletableFuture<ApiResponse<EmbeddedWalletPaginatedAssetsResponse>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> + getEmbeddedWalletSupportedAssets( + String pageCursor, BigDecimal pageSize, Boolean onlyBaseAssets) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletSupportedAssetsRequestBuilder( + pageCursor, pageSize, onlyBaseAssets); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWalletSupportedAssets", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletPaginatedAssetsResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletSupportedAssetsRequestBuilder( + String pageCursor, BigDecimal pageSize, Boolean onlyBaseAssets) throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/ncw/wallets/supported_assets"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "pageCursor"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); + localVarQueryParameterBaseName = "pageSize"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); + localVarQueryParameterBaseName = "onlyBaseAssets"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("onlyBaseAssets", onlyBaseAssets)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** + * List wallets Get all Non Custodial Wallets + * + * @param pageCursor Next page cursor to fetch (optional) + * @param pageSize Items per page (optional, default to 200) + * @param sort Field(s) to use for sorting (optional, default to createdAt) + * @param order Is the order ascending or descending (optional, default to ASC) + * @param enabled Enabled Wallets (optional) + * @return CompletableFuture<ApiResponse<EmbeddedWalletPaginatedWalletsResponse>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> + getEmbeddedWallets( + String pageCursor, + BigDecimal pageSize, + String sort, + String order, + Boolean enabled) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getEmbeddedWalletsRequestBuilder(pageCursor, pageSize, sort, order, enabled); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "getEmbeddedWallets", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletPaginatedWalletsResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getEmbeddedWalletsRequestBuilder( + String pageCursor, BigDecimal pageSize, String sort, String order, Boolean enabled) + throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/ncw/wallets"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "pageCursor"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor)); + localVarQueryParameterBaseName = "pageSize"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); + localVarQueryParameterBaseName = "sort"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); + localVarQueryParameterBaseName = "order"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("order", order)); + localVarQueryParameterBaseName = "enabled"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("enabled", enabled)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + localVarRequestBuilder.header("Accept", "application/json"); localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); @@ -193,22 +1294,28 @@ private HttpRequest.Builder getPublicKeyInfoForAddressNcwRequestBuilder( * Get the public key for a derivation path Gets the public key information based on derivation * path and signing algorithm within a Non-Custodial Wallet * + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (required) * @param walletId The ID of the Non-Custodial wallet (required) * @param derivationPath An array of integers (passed as JSON stringified array) representing * the full BIP44 derivation path of the requested public key. The first element must always * be 44. (required) * @param algorithm Elliptic Curve (required) - * @param compressed (optional) + * @param compressed Compressed/Uncompressed public key format (optional) * @return CompletableFuture<ApiResponse<PublicKeyInformation>> * @throws ApiException if fails to make API call */ public CompletableFuture> getPublicKeyInfoNcw( - String walletId, String derivationPath, String algorithm, Boolean compressed) + UUID xEndUserWalletId, + String walletId, + String derivationPath, + String algorithm, + Boolean compressed) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getPublicKeyInfoNcwRequestBuilder( - walletId, derivationPath, algorithm, compressed); + xEndUserWalletId, walletId, derivationPath, algorithm, compressed); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -243,8 +1350,14 @@ public CompletableFuture> getPublicKeyInfoNcw( } private HttpRequest.Builder getPublicKeyInfoNcwRequestBuilder( - String walletId, String derivationPath, String algorithm, Boolean compressed) + UUID xEndUserWalletId, + String walletId, + String derivationPath, + String algorithm, + Boolean compressed) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "getPublicKeyInfoNcw", "xEndUserWalletId", xEndUserWalletId.toString()); ValidationUtils.assertParamExistsAndNotEmpty("getPublicKeyInfoNcw", "walletId", walletId); ValidationUtils.assertParamExistsAndNotEmpty( "getPublicKeyInfoNcw", "derivationPath", derivationPath); @@ -253,7 +1366,7 @@ private HttpRequest.Builder getPublicKeyInfoNcwRequestBuilder( HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/ncw/{walletId}/public_key_info" + "/ncw/wallets/{walletId}/public_key_info" .replace("{walletId}", ApiClient.urlEncode(walletId.toString())); List localVarQueryParams = new ArrayList<>(); @@ -278,6 +1391,9 @@ private HttpRequest.Builder getPublicKeyInfoNcwRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } localVarRequestBuilder.header("Accept", "application/json"); localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); @@ -289,4 +1405,92 @@ private HttpRequest.Builder getPublicKeyInfoNcwRequestBuilder( } return localVarRequestBuilder; } + /** + * Refresh asset balance Refresh the balance of an asset in a specific account + * + * @param walletId Wallet Id (required) + * @param accountId The ID of the account (required) + * @param assetId The ID of the asset (required) + * @param idempotencyKey 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) + * @return CompletableFuture<ApiResponse<EmbeddedWalletAssetBalance>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> + refreshEmbeddedWalletAssetBalance( + String walletId, String accountId, String assetId, String idempotencyKey) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + refreshEmbeddedWalletAssetBalanceRequestBuilder( + walletId, accountId, assetId, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException( + "refreshEmbeddedWalletAssetBalance", + localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + EmbeddedWalletAssetBalance>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder refreshEmbeddedWalletAssetBalanceRequestBuilder( + String walletId, String accountId, String assetId, String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty( + "refreshEmbeddedWalletAssetBalance", "walletId", walletId); + ValidationUtils.assertParamExistsAndNotEmpty( + "refreshEmbeddedWalletAssetBalance", "accountId", accountId); + ValidationUtils.assertParamExistsAndNotEmpty( + "refreshEmbeddedWalletAssetBalance", "assetId", assetId); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/ncw/wallets/{walletId}/accounts/{accountId}/assets/{assetId}/balance" + .replace("{walletId}", ApiClient.urlEncode(walletId.toString())) + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) + .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } } diff --git a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java index ebadb714..3996a14c 100644 --- a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java +++ b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java @@ -74,9 +74,9 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Cancel a running job Stop the given job immediately. If the job is in the ‘Active’ state, the - * job will be canceled after completing the current task. Vault accounts and Wallets that are - * already created will not be affected. + * Cancel a running job Stop the given job immediately. If the job is in the 'Active' + * state, the job will be canceled after completing the current task. Vault accounts and Wallets + * that are already created will not be affected. * * @param jobId The requested job id (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -410,7 +410,7 @@ private HttpRequest.Builder getJobsRequestBuilder(Integer fromTime, Integer toTi } /** * Pause a job Pause the given job, after the current task is done. A paused job can later be - * resumed by calling ‘continue’, or canceled. + * resumed by calling 'continue', or canceled. * * @param jobId The requested job id (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple diff --git a/src/main/java/com/fireblocks/sdk/api/NftsApi.java b/src/main/java/com/fireblocks/sdk/api/NftsApi.java index 7b4c30ed..5fe48448 100644 --- a/src/main/java/com/fireblocks/sdk/api/NftsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/NftsApi.java @@ -39,6 +39,7 @@ import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; +import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -677,17 +678,19 @@ private HttpRequest.Builder listOwnedTokensRequestBuilder( * Refresh token metadata Updates the latest token metadata. * * @param id NFT ID (required) + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @param idempotencyKey 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) * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> refreshNFTMetadata(String id, String idempotencyKey) - throws ApiException { + public CompletableFuture> refreshNFTMetadata( + String id, UUID xEndUserWalletId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - refreshNFTMetadataRequestBuilder(id, idempotencyKey); + refreshNFTMetadataRequestBuilder(id, xEndUserWalletId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -711,8 +714,8 @@ public CompletableFuture> refreshNFTMetadata(String id, String } } - private HttpRequest.Builder refreshNFTMetadataRequestBuilder(String id, String idempotencyKey) - throws ApiException { + private HttpRequest.Builder refreshNFTMetadataRequestBuilder( + String id, UUID xEndUserWalletId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty("refreshNFTMetadata", "id", id); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -722,6 +725,9 @@ private HttpRequest.Builder refreshNFTMetadataRequestBuilder(String id, String i localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } @@ -830,6 +836,8 @@ private HttpRequest.Builder updateOwnershipTokensRequestBuilder( * * @param updateTokenOwnershipStatusDto (required) * @param id NFT ID (required) + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @param idempotencyKey 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) @@ -839,12 +847,13 @@ private HttpRequest.Builder updateOwnershipTokensRequestBuilder( public CompletableFuture> updateTokenOwnershipStatus( UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto, String id, + UUID xEndUserWalletId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateTokenOwnershipStatusRequestBuilder( - updateTokenOwnershipStatusDto, id, idempotencyKey); + updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -872,6 +881,7 @@ public CompletableFuture> updateTokenOwnershipStatus( private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto, String id, + UUID xEndUserWalletId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( @@ -888,6 +898,9 @@ private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } @@ -915,6 +928,8 @@ private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( * ownerships, in all tenant vaults. * * @param tokenOwnershipSpamUpdatePayload (required) + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @param idempotencyKey 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) @@ -923,12 +938,13 @@ private HttpRequest.Builder updateTokenOwnershipStatusRequestBuilder( */ public CompletableFuture> updateTokensOwnershipSpam( List tokenOwnershipSpamUpdatePayload, + UUID xEndUserWalletId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateTokensOwnershipSpamRequestBuilder( - tokenOwnershipSpamUpdatePayload, idempotencyKey); + tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -954,6 +970,7 @@ public CompletableFuture> updateTokensOwnershipSpam( private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( List tokenOwnershipSpamUpdatePayload, + UUID xEndUserWalletId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( @@ -967,6 +984,9 @@ private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } @@ -993,6 +1013,8 @@ private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( * Update tokens ownership status Updates tokens status for a tenant, in all tenant vaults. * * @param tokenOwnershipStatusUpdatePayload (required) + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @param idempotencyKey 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) @@ -1001,12 +1023,13 @@ private HttpRequest.Builder updateTokensOwnershipSpamRequestBuilder( */ public CompletableFuture> updateTokensOwnershipStatus( List tokenOwnershipStatusUpdatePayload, + UUID xEndUserWalletId, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateTokensOwnershipStatusRequestBuilder( - tokenOwnershipStatusUpdatePayload, idempotencyKey); + tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -1033,6 +1056,7 @@ public CompletableFuture> updateTokensOwnershipStatus( private HttpRequest.Builder updateTokensOwnershipStatusRequestBuilder( List tokenOwnershipStatusUpdatePayload, + UUID xEndUserWalletId, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( @@ -1046,6 +1070,9 @@ private HttpRequest.Builder updateTokensOwnershipStatusRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } diff --git a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java index 3ceb9c0e..7da170cb 100644 --- a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java @@ -1134,7 +1134,7 @@ private HttpRequest.Builder reIssueTokenMultiChainRequestBuilder( HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/tokenization/multichain/token/{tokenLinkId}" + "/tokenization/multichain/reissue/token/{tokenLinkId}" .replace("{tokenLinkId}", ApiClient.urlEncode(tokenLinkId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); diff --git a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java index 09aca5bc..8e2df173 100644 --- a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java @@ -36,6 +36,7 @@ import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; +import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -86,15 +87,19 @@ private String formatExceptionMessage(String operationId, int statusCode, String * @param idempotencyKey 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) + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @return CompletableFuture<ApiResponse<CreateConnectionResponse>> * @throws ApiException if fails to make API call */ public CompletableFuture> create( - CreateConnectionRequest createConnectionRequest, String idempotencyKey) + CreateConnectionRequest createConnectionRequest, + String idempotencyKey, + UUID xEndUserWalletId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - createRequestBuilder(createConnectionRequest, idempotencyKey); + createRequestBuilder(createConnectionRequest, idempotencyKey, xEndUserWalletId); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -128,7 +133,9 @@ public CompletableFuture> create( } private HttpRequest.Builder createRequestBuilder( - CreateConnectionRequest createConnectionRequest, String idempotencyKey) + CreateConnectionRequest createConnectionRequest, + String idempotencyKey, + UUID xEndUserWalletId) throws ApiException { ValidationUtils.assertParamExists( "create", "createConnectionRequest", createConnectionRequest); @@ -142,6 +149,9 @@ private HttpRequest.Builder createRequestBuilder( if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "application/json"); @@ -164,6 +174,8 @@ private HttpRequest.Builder createRequestBuilder( /** * List all open Web3 connections. Get open Web3 connections. * + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @param order List order; ascending or descending. (optional, default to ASC) * @param filter Parsed filter object (optional) * @param sort Property to sort Web3 connections by. (optional, default to createdAt) @@ -173,11 +185,16 @@ private HttpRequest.Builder createRequestBuilder( * @throws ApiException if fails to make API call */ public CompletableFuture> get( - String order, GetFilterParameter filter, String sort, BigDecimal pageSize, String next) + UUID xEndUserWalletId, + String order, + GetFilterParameter filter, + String sort, + BigDecimal pageSize, + String next) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - getRequestBuilder(order, filter, sort, pageSize, next); + getRequestBuilder(xEndUserWalletId, order, filter, sort, pageSize, next); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -211,7 +228,12 @@ public CompletableFuture> get( } private HttpRequest.Builder getRequestBuilder( - String order, GetFilterParameter filter, String sort, BigDecimal pageSize, String next) + UUID xEndUserWalletId, + String order, + GetFilterParameter filter, + String sort, + BigDecimal pageSize, + String next) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -252,6 +274,9 @@ private HttpRequest.Builder getRequestBuilder( localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } localVarRequestBuilder.header("Accept", "application/json"); localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); @@ -267,12 +292,15 @@ private HttpRequest.Builder getRequestBuilder( * Remove an existing Web3 connection. Remove a Web3 connection * * @param id The ID of the existing Web3 connection to remove. (required) + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> remove(String id) throws ApiException { + public CompletableFuture> remove(String id, UUID xEndUserWalletId) + throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = removeRequestBuilder(id); + HttpRequest.Builder localVarRequestBuilder = removeRequestBuilder(id, xEndUserWalletId); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -295,7 +323,8 @@ public CompletableFuture> remove(String id) throws ApiExceptio } } - private HttpRequest.Builder removeRequestBuilder(String id) throws ApiException { + private HttpRequest.Builder removeRequestBuilder(String id, UUID xEndUserWalletId) + throws ApiException { ValidationUtils.assertParamExistsAndNotEmpty("remove", "id", id); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -305,6 +334,9 @@ private HttpRequest.Builder removeRequestBuilder(String id) throws ApiException localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } localVarRequestBuilder.header("Accept", "application/json"); localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); @@ -327,15 +359,21 @@ private HttpRequest.Builder removeRequestBuilder(String id) throws ApiException * @param idempotencyKey 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) + * @param xEndUserWalletId Unique ID of the End-User wallet to the API request. Required for + * end-user wallet operations. (optional) * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ public CompletableFuture> submit( - RespondToConnectionRequest respondToConnectionRequest, String id, String idempotencyKey) + RespondToConnectionRequest respondToConnectionRequest, + String id, + String idempotencyKey, + UUID xEndUserWalletId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - submitRequestBuilder(respondToConnectionRequest, id, idempotencyKey); + submitRequestBuilder( + respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -359,7 +397,10 @@ public CompletableFuture> submit( } private HttpRequest.Builder submitRequestBuilder( - RespondToConnectionRequest respondToConnectionRequest, String id, String idempotencyKey) + RespondToConnectionRequest respondToConnectionRequest, + String id, + String idempotencyKey, + UUID xEndUserWalletId) throws ApiException { ValidationUtils.assertParamExists( "submit", "respondToConnectionRequest", respondToConnectionRequest); @@ -375,6 +416,9 @@ private HttpRequest.Builder submitRequestBuilder( if (idempotencyKey != null) { localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); } + if (xEndUserWalletId != null) { + localVarRequestBuilder.header("X-End-User-Wallet-Id", xEndUserWalletId.toString()); + } localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "application/json"); diff --git a/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java b/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java index 0b33de76..fbd1bc9a 100644 --- a/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java +++ b/src/main/java/com/fireblocks/sdk/model/AmlRegistrationResultFullPayload.java @@ -22,7 +22,7 @@ import java.util.Objects; import java.util.StringJoiner; -/** AmlRegistrationResultFullPayload */ +/** The results of the AML address registration. */ @JsonPropertyOrder({ AmlRegistrationResultFullPayload.JSON_PROPERTY_PROVIDER, AmlRegistrationResultFullPayload.JSON_PROPERTY_SUCCESS, diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java index 874dbe75..bfdd0b6c 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java @@ -80,6 +80,8 @@ public enum BlockchainDescriptorEnum { MANTLE_TEST("MANTLE_TEST"), + GUN_GUNZILLA("GUN_GUNZILLA"), + GUN_GUNZILLA_TEST("GUN_GUNZILLA_TEST"), ETH_SONEIUM("ETH_SONEIUM"), diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java index 65326628..2c5e3b60 100644 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceResultFullPayload.java @@ -13,11 +13,9 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.util.ArrayList; @@ -36,156 +34,65 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ComplianceResultFullPayload { public static final String JSON_PROPERTY_AML = "aml"; - private List aml; + private ComplianceScreeningResultFullPayload aml; public static final String JSON_PROPERTY_TR = "tr"; - private List tr; + private ComplianceScreeningResultFullPayload tr; public static final String JSON_PROPERTY_AML_LIST = "amlList"; private List amlList; - /** Status of compliance result screening. */ - public enum StatusEnum { - STARTED("Started"), - - NETWORKCONNECTIONADDRESSRESOLVE("NetworkConnectionAddressResolve"), - - SCREENINGPREPARE("ScreeningPrepare"), - - AMLSTARTED("AMLStarted"), - - AMLCOMPLETED("AMLCompleted"), - - AMLFAILED("AMLFailed"), - - AMLINBACKGROUND("AMLInBackground"), - - TRPRECONDITIONCHECKS("TRPreconditionChecks"), - - TRSTARTED("TRStarted"), - - TRCOMPLETED("TRCompleted"), - - TRFAILED("TRFailed"), - - COMPLETED("Completed"), - - INCOMINGSTARTED("IncomingStarted"), - - INCOMINGSCREENINGPREPARE("IncomingScreeningPrepare"), - - INCOMINGWAITFORFIRSTCONFIRMATION("IncomingWaitForFirstConfirmation"), - - AMLINCOMINGSTARTED("AMLIncomingStarted"), - - AMLINCOMINGCOMPLETED("AMLIncomingCompleted"), - - AMLINCOMINGFAILED("AMLIncomingFailed"), - - AMLINCOMINGINBACKGROUND("AMLIncomingInBackground"), - - TRINCOMINGSTARTED("TRIncomingStarted"), - - TRINCOMINGCOMPLETED("TRIncomingCompleted"), - - TRINCOMINGFAILED("TRIncomingFailed"), - - INCOMINGCOMPLETED("IncomingCompleted"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status; + private ComplianceResultStatusesEnum status; public static final String JSON_PROPERTY_AML_REGISTRATION = "amlRegistration"; - private List amlRegistration; + private AmlRegistrationResultFullPayload amlRegistration; public ComplianceResultFullPayload() {} - public ComplianceResultFullPayload aml(List aml) { + public ComplianceResultFullPayload aml(ComplianceScreeningResultFullPayload aml) { this.aml = aml; return this; } - public ComplianceResultFullPayload addAmlItem(ComplianceScreeningResultFullPayload amlItem) { - if (this.aml == null) { - this.aml = new ArrayList<>(); - } - this.aml.add(amlItem); - return this; - } - /** - * The end result of the AML screening. + * Get aml * * @return aml */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AML) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAml() { + public ComplianceScreeningResultFullPayload getAml() { return aml; } @JsonProperty(JSON_PROPERTY_AML) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAml(List aml) { + public void setAml(ComplianceScreeningResultFullPayload aml) { this.aml = aml; } - public ComplianceResultFullPayload tr(List tr) { + public ComplianceResultFullPayload tr(ComplianceScreeningResultFullPayload tr) { this.tr = tr; return this; } - public ComplianceResultFullPayload addTrItem(ComplianceScreeningResultFullPayload trItem) { - if (this.tr == null) { - this.tr = new ArrayList<>(); - } - this.tr.add(trItem); - return this; - } - /** - * The result of the Travel Rule screening. + * Get tr * * @return tr */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTr() { + public ComplianceScreeningResultFullPayload getTr() { return tr; } @JsonProperty(JSON_PROPERTY_TR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTr(List tr) { + public void setTr(ComplianceScreeningResultFullPayload tr) { this.tr = tr; } @@ -221,59 +128,50 @@ public void setAmlList(List amlList) { this.amlList = amlList; } - public ComplianceResultFullPayload status(StatusEnum status) { + public ComplianceResultFullPayload status(ComplianceResultStatusesEnum status) { this.status = status; return this; } /** - * Status of compliance result screening. + * Get status * * @return status */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StatusEnum getStatus() { + public ComplianceResultStatusesEnum getStatus() { return status; } @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(ComplianceResultStatusesEnum status) { this.status = status; } public ComplianceResultFullPayload amlRegistration( - List amlRegistration) { + AmlRegistrationResultFullPayload amlRegistration) { this.amlRegistration = amlRegistration; return this; } - public ComplianceResultFullPayload addAmlRegistrationItem( - AmlRegistrationResultFullPayload amlRegistrationItem) { - if (this.amlRegistration == null) { - this.amlRegistration = new ArrayList<>(); - } - this.amlRegistration.add(amlRegistrationItem); - return this; - } - /** - * The results of the AML address registration. + * Get amlRegistration * * @return amlRegistration */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAmlRegistration() { + public AmlRegistrationResultFullPayload getAmlRegistration() { return amlRegistration; } @JsonProperty(JSON_PROPERTY_AML_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmlRegistration(List amlRegistration) { + public void setAmlRegistration(AmlRegistrationResultFullPayload amlRegistration) { this.amlRegistration = amlRegistration; } @@ -358,46 +256,12 @@ public String toUrlQueryString(String prefix) { // add `aml` to the URL query string if (getAml() != null) { - for (int i = 0; i < getAml().size(); i++) { - if (getAml().get(i) != null) { - joiner.add( - getAml().get(i) - .toUrlQueryString( - String.format( - "%saml%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } + joiner.add(getAml().toUrlQueryString(prefix + "aml" + suffix)); } // add `tr` to the URL query string if (getTr() != null) { - for (int i = 0; i < getTr().size(); i++) { - if (getTr().get(i) != null) { - joiner.add( - getTr().get(i) - .toUrlQueryString( - String.format( - "%str%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } + joiner.add(getTr().toUrlQueryString(prefix + "tr" + suffix)); } // add `amlList` to the URL query string @@ -436,25 +300,7 @@ public String toUrlQueryString(String prefix) { // add `amlRegistration` to the URL query string if (getAmlRegistration() != null) { - for (int i = 0; i < getAmlRegistration().size(); i++) { - if (getAmlRegistration().get(i) != null) { - joiner.add( - getAmlRegistration() - .get(i) - .toUrlQueryString( - String.format( - "%samlRegistration%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } + joiner.add(getAmlRegistration().toUrlQueryString(prefix + "amlRegistration" + suffix)); } return joiner.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java b/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java new file mode 100644 index 00000000..d520683e --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnum.java @@ -0,0 +1,106 @@ +/* + * 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.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Status of compliance result screening. */ +public enum ComplianceResultStatusesEnum { + STARTED("Started"), + + NETWORKCONNECTIONADDRESSRESOLVE("NetworkConnectionAddressResolve"), + + SCREENINGPREPARE("ScreeningPrepare"), + + AMLSTARTED("AMLStarted"), + + AMLCOMPLETED("AMLCompleted"), + + AMLFAILED("AMLFailed"), + + AMLINBACKGROUND("AMLInBackground"), + + TRPRECONDITIONCHECKS("TRPreconditionChecks"), + + TRSTARTED("TRStarted"), + + TRCOMPLETED("TRCompleted"), + + TRFAILED("TRFailed"), + + COMPLETED("Completed"), + + INCOMINGSTARTED("IncomingStarted"), + + INCOMINGSCREENINGPREPARE("IncomingScreeningPrepare"), + + INCOMINGWAITFORFIRSTCONFIRMATION("IncomingWaitForFirstConfirmation"), + + AMLINCOMINGSTARTED("AMLIncomingStarted"), + + AMLINCOMINGCOMPLETED("AMLIncomingCompleted"), + + AMLINCOMINGFAILED("AMLIncomingFailed"), + + AMLINCOMINGINBACKGROUND("AMLIncomingInBackground"), + + TRINCOMINGSTARTED("TRIncomingStarted"), + + TRINCOMINGCOMPLETED("TRIncomingCompleted"), + + TRINCOMINGFAILED("TRIncomingFailed"), + + INCOMINGCOMPLETED("IncomingCompleted"); + + private String value; + + ComplianceResultStatusesEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ComplianceResultStatusesEnum fromValue(String value) { + for (ComplianceResultStatusesEnum b : ComplianceResultStatusesEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + if (prefix == null) { + prefix = ""; + } + + return String.format("%s=%s", prefix, this.toString()); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java b/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java index da863338..477f77d5 100644 --- a/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java +++ b/src/main/java/com/fireblocks/sdk/model/ComplianceScreeningResultFullPayload.java @@ -24,7 +24,7 @@ import java.util.Objects; import java.util.StringJoiner; -/** ComplianceScreeningResultFullPayload */ +/** The result of the Travel Rule screening. */ @JsonPropertyOrder({ ComplianceScreeningResultFullPayload.JSON_PROPERTY_PROVIDER, ComplianceScreeningResultFullPayload.JSON_PROPERTY_PAYLOAD, diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java new file mode 100644 index 00000000..a2d8b3a3 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWallet.java @@ -0,0 +1,178 @@ +/* + * 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; + +/** EmbeddedWallet */ +@JsonPropertyOrder({EmbeddedWallet.JSON_PROPERTY_WALLET_ID, EmbeddedWallet.JSON_PROPERTY_ENABLED}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWallet { + public static final String JSON_PROPERTY_WALLET_ID = "walletId"; + private String walletId; + + public static final String JSON_PROPERTY_ENABLED = "enabled"; + private Boolean enabled; + + public EmbeddedWallet() {} + + public EmbeddedWallet walletId(String walletId) { + this.walletId = walletId; + return this; + } + + /** + * walletId + * + * @return walletId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_WALLET_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getWalletId() { + return walletId; + } + + @JsonProperty(JSON_PROPERTY_WALLET_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setWalletId(String walletId) { + this.walletId = walletId; + } + + public EmbeddedWallet enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * enabled + * + * @return enabled + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getEnabled() { + return enabled; + } + + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + /** Return true if this EmbeddedWallet object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWallet embeddedWallet = (EmbeddedWallet) o; + return Objects.equals(this.walletId, embeddedWallet.walletId) + && Objects.equals(this.enabled, embeddedWallet.enabled); + } + + @Override + public int hashCode() { + return Objects.hash(walletId, enabled); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWallet {\n"); + sb.append(" walletId: ").append(toIndentedString(walletId)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).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 `walletId` to the URL query string + if (getWalletId() != null) { + joiner.add( + String.format( + "%swalletId%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `enabled` to the URL query string + if (getEnabled() != null) { + joiner.add( + String.format( + "%senabled%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java new file mode 100644 index 00000000..6aa686d2 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAccount.java @@ -0,0 +1,182 @@ +/* + * 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; + +/** EmbeddedWalletAccount */ +@JsonPropertyOrder({ + EmbeddedWalletAccount.JSON_PROPERTY_ACCOUNT_ID, + EmbeddedWalletAccount.JSON_PROPERTY_WALLET_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletAccount { + public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; + private String accountId; + + public static final String JSON_PROPERTY_WALLET_ID = "walletId"; + private String walletId; + + public EmbeddedWalletAccount() {} + + public EmbeddedWalletAccount accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * The ID of the account + * + * @return accountId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAccountId() { + return accountId; + } + + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public EmbeddedWalletAccount walletId(String walletId) { + this.walletId = walletId; + return this; + } + + /** + * Unique identifier of the Non-Custodial Wallet (UUID) + * + * @return walletId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_WALLET_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getWalletId() { + return walletId; + } + + @JsonProperty(JSON_PROPERTY_WALLET_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setWalletId(String walletId) { + this.walletId = walletId; + } + + /** Return true if this EmbeddedWalletAccount object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletAccount embeddedWalletAccount = (EmbeddedWalletAccount) o; + return Objects.equals(this.accountId, embeddedWalletAccount.accountId) + && Objects.equals(this.walletId, embeddedWalletAccount.walletId); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, walletId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletAccount {\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" walletId: ").append(toIndentedString(walletId)).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 `accountId` to the URL query string + if (getAccountId() != null) { + joiner.add( + String.format( + "%saccountId%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAccountId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `walletId` to the URL query string + if (getWalletId() != null) { + joiner.add( + String.format( + "%swalletId%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getWalletId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java new file mode 100644 index 00000000..5c8fbe19 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetails.java @@ -0,0 +1,855 @@ +/* + * 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.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletAddressDetails */ +@JsonPropertyOrder({ + EmbeddedWalletAddressDetails.JSON_PROPERTY_ACCOUNT_NAME, + EmbeddedWalletAddressDetails.JSON_PROPERTY_ACCOUNT_ID, + EmbeddedWalletAddressDetails.JSON_PROPERTY_ASSET, + EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS, + EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_TYPE, + EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_DESCRIPTION, + EmbeddedWalletAddressDetails.JSON_PROPERTY_TAG, + EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_INDEX, + EmbeddedWalletAddressDetails.JSON_PROPERTY_CHANGE, + EmbeddedWalletAddressDetails.JSON_PROPERTY_COIN_TYPE, + EmbeddedWalletAddressDetails.JSON_PROPERTY_CUSTOMER_REF_ID, + EmbeddedWalletAddressDetails.JSON_PROPERTY_ADDRESS_FORMAT, + EmbeddedWalletAddressDetails.JSON_PROPERTY_LEGACY_ADDRESS, + EmbeddedWalletAddressDetails.JSON_PROPERTY_PAYMENT_ADDRESS, + EmbeddedWalletAddressDetails.JSON_PROPERTY_USER_DEFINED, + EmbeddedWalletAddressDetails.JSON_PROPERTY_STATE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletAddressDetails { + public static final String JSON_PROPERTY_ACCOUNT_NAME = "accountName"; + private String accountName; + + public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; + private String accountId; + + public static final String JSON_PROPERTY_ASSET = "asset"; + private String asset; + + public static final String JSON_PROPERTY_ADDRESS = "address"; + private String address; + + /** addressType */ + public enum AddressTypeEnum { + PERMANENT("PERMANENT"), + + CHANGE("CHANGE"), + + DEFAULT("DEFAULT"), + + ADDRESS("ADDRESS"); + + private String value; + + AddressTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AddressTypeEnum fromValue(String value) { + for (AddressTypeEnum b : AddressTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_ADDRESS_TYPE = "addressType"; + private AddressTypeEnum addressType; + + public static final String JSON_PROPERTY_ADDRESS_DESCRIPTION = "addressDescription"; + private String addressDescription; + + public static final String JSON_PROPERTY_TAG = "tag"; + private String tag; + + public static final String JSON_PROPERTY_ADDRESS_INDEX = "addressIndex"; + private BigDecimal addressIndex; + + public static final String JSON_PROPERTY_CHANGE = "change"; + private BigDecimal change; + + public static final String JSON_PROPERTY_COIN_TYPE = "coinType"; + private BigDecimal coinType; + + public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId"; + private String customerRefId; + + public static final String JSON_PROPERTY_ADDRESS_FORMAT = "addressFormat"; + private String addressFormat; + + public static final String JSON_PROPERTY_LEGACY_ADDRESS = "legacyAddress"; + private String legacyAddress; + + public static final String JSON_PROPERTY_PAYMENT_ADDRESS = "paymentAddress"; + private String paymentAddress; + + public static final String JSON_PROPERTY_USER_DEFINED = "userDefined"; + private Boolean userDefined; + + /** state */ + public enum StateEnum { + PENDING_ACTIVATION("PENDING_ACTIVATION"), + + ACTIVATION_FAILED("ACTIVATION_FAILED"), + + READY("READY"); + + private String value; + + StateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StateEnum fromValue(String value) { + for (StateEnum b : StateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATE = "state"; + private StateEnum state; + + public EmbeddedWalletAddressDetails() {} + + public EmbeddedWalletAddressDetails accountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * accountName + * + * @return accountName + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAccountName() { + return accountName; + } + + @JsonProperty(JSON_PROPERTY_ACCOUNT_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public EmbeddedWalletAddressDetails accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * accountId + * + * @return accountId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAccountId() { + return accountId; + } + + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public EmbeddedWalletAddressDetails asset(String asset) { + this.asset = asset; + return this; + } + + /** + * asset + * + * @return asset + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ASSET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAsset() { + return asset; + } + + @JsonProperty(JSON_PROPERTY_ASSET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAsset(String asset) { + this.asset = asset; + } + + public EmbeddedWalletAddressDetails address(String address) { + this.address = address; + return this; + } + + /** + * address + * + * @return address + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAddress() { + return address; + } + + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAddress(String address) { + this.address = address; + } + + public EmbeddedWalletAddressDetails addressType(AddressTypeEnum addressType) { + this.addressType = addressType; + return this; + } + + /** + * addressType + * + * @return addressType + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AddressTypeEnum getAddressType() { + return addressType; + } + + @JsonProperty(JSON_PROPERTY_ADDRESS_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAddressType(AddressTypeEnum addressType) { + this.addressType = addressType; + } + + public EmbeddedWalletAddressDetails addressDescription(String addressDescription) { + this.addressDescription = addressDescription; + return this; + } + + /** + * addressDescription + * + * @return addressDescription + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ADDRESS_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAddressDescription() { + return addressDescription; + } + + @JsonProperty(JSON_PROPERTY_ADDRESS_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAddressDescription(String addressDescription) { + this.addressDescription = addressDescription; + } + + public EmbeddedWalletAddressDetails tag(String tag) { + this.tag = tag; + return this; + } + + /** + * tag + * + * @return tag + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TAG) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getTag() { + return tag; + } + + @JsonProperty(JSON_PROPERTY_TAG) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTag(String tag) { + this.tag = tag; + } + + public EmbeddedWalletAddressDetails addressIndex(BigDecimal addressIndex) { + this.addressIndex = addressIndex; + return this; + } + + /** + * addressIndex + * + * @return addressIndex + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADDRESS_INDEX) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAddressIndex() { + return addressIndex; + } + + @JsonProperty(JSON_PROPERTY_ADDRESS_INDEX) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAddressIndex(BigDecimal addressIndex) { + this.addressIndex = addressIndex; + } + + public EmbeddedWalletAddressDetails change(BigDecimal change) { + this.change = change; + return this; + } + + /** + * change + * + * @return change + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CHANGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getChange() { + return change; + } + + @JsonProperty(JSON_PROPERTY_CHANGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setChange(BigDecimal change) { + this.change = change; + } + + public EmbeddedWalletAddressDetails coinType(BigDecimal coinType) { + this.coinType = coinType; + return this; + } + + /** + * Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) + * + * @return coinType + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COIN_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getCoinType() { + return coinType; + } + + @JsonProperty(JSON_PROPERTY_COIN_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCoinType(BigDecimal coinType) { + this.coinType = coinType; + } + + public EmbeddedWalletAddressDetails customerRefId(String customerRefId) { + this.customerRefId = customerRefId; + return this; + } + + /** + * customerRefId + * + * @return customerRefId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCustomerRefId() { + return customerRefId; + } + + @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCustomerRefId(String customerRefId) { + this.customerRefId = customerRefId; + } + + public EmbeddedWalletAddressDetails addressFormat(String addressFormat) { + this.addressFormat = addressFormat; + return this; + } + + /** + * addressFormat + * + * @return addressFormat + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADDRESS_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAddressFormat() { + return addressFormat; + } + + @JsonProperty(JSON_PROPERTY_ADDRESS_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAddressFormat(String addressFormat) { + this.addressFormat = addressFormat; + } + + public EmbeddedWalletAddressDetails legacyAddress(String legacyAddress) { + this.legacyAddress = legacyAddress; + return this; + } + + /** + * legacyAddress + * + * @return legacyAddress + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLegacyAddress() { + return legacyAddress; + } + + @JsonProperty(JSON_PROPERTY_LEGACY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLegacyAddress(String legacyAddress) { + this.legacyAddress = legacyAddress; + } + + public EmbeddedWalletAddressDetails paymentAddress(String paymentAddress) { + this.paymentAddress = paymentAddress; + return this; + } + + /** + * paymentAddress + * + * @return paymentAddress + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PAYMENT_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPaymentAddress() { + return paymentAddress; + } + + @JsonProperty(JSON_PROPERTY_PAYMENT_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentAddress(String paymentAddress) { + this.paymentAddress = paymentAddress; + } + + public EmbeddedWalletAddressDetails userDefined(Boolean userDefined) { + this.userDefined = userDefined; + return this; + } + + /** + * userDefined + * + * @return userDefined + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USER_DEFINED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getUserDefined() { + return userDefined; + } + + @JsonProperty(JSON_PROPERTY_USER_DEFINED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserDefined(Boolean userDefined) { + this.userDefined = userDefined; + } + + public EmbeddedWalletAddressDetails state(StateEnum state) { + this.state = state; + return this; + } + + /** + * state + * + * @return state + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StateEnum getState() { + return state; + } + + @JsonProperty(JSON_PROPERTY_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setState(StateEnum state) { + this.state = state; + } + + /** Return true if this EmbeddedWalletAddressDetails object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletAddressDetails embeddedWalletAddressDetails = + (EmbeddedWalletAddressDetails) o; + return Objects.equals(this.accountName, embeddedWalletAddressDetails.accountName) + && Objects.equals(this.accountId, embeddedWalletAddressDetails.accountId) + && Objects.equals(this.asset, embeddedWalletAddressDetails.asset) + && Objects.equals(this.address, embeddedWalletAddressDetails.address) + && Objects.equals(this.addressType, embeddedWalletAddressDetails.addressType) + && Objects.equals( + this.addressDescription, embeddedWalletAddressDetails.addressDescription) + && Objects.equals(this.tag, embeddedWalletAddressDetails.tag) + && Objects.equals(this.addressIndex, embeddedWalletAddressDetails.addressIndex) + && Objects.equals(this.change, embeddedWalletAddressDetails.change) + && Objects.equals(this.coinType, embeddedWalletAddressDetails.coinType) + && Objects.equals(this.customerRefId, embeddedWalletAddressDetails.customerRefId) + && Objects.equals(this.addressFormat, embeddedWalletAddressDetails.addressFormat) + && Objects.equals(this.legacyAddress, embeddedWalletAddressDetails.legacyAddress) + && Objects.equals(this.paymentAddress, embeddedWalletAddressDetails.paymentAddress) + && Objects.equals(this.userDefined, embeddedWalletAddressDetails.userDefined) + && Objects.equals(this.state, embeddedWalletAddressDetails.state); + } + + @Override + public int hashCode() { + return Objects.hash( + accountName, + accountId, + asset, + address, + addressType, + addressDescription, + tag, + addressIndex, + change, + coinType, + customerRefId, + addressFormat, + legacyAddress, + paymentAddress, + userDefined, + state); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletAddressDetails {\n"); + sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" addressType: ").append(toIndentedString(addressType)).append("\n"); + sb.append(" addressDescription: ") + .append(toIndentedString(addressDescription)) + .append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" addressIndex: ").append(toIndentedString(addressIndex)).append("\n"); + sb.append(" change: ").append(toIndentedString(change)).append("\n"); + sb.append(" coinType: ").append(toIndentedString(coinType)).append("\n"); + sb.append(" customerRefId: ").append(toIndentedString(customerRefId)).append("\n"); + sb.append(" addressFormat: ").append(toIndentedString(addressFormat)).append("\n"); + sb.append(" legacyAddress: ").append(toIndentedString(legacyAddress)).append("\n"); + sb.append(" paymentAddress: ").append(toIndentedString(paymentAddress)).append("\n"); + sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).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 `accountName` to the URL query string + if (getAccountName() != null) { + joiner.add( + String.format( + "%saccountName%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAccountName()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `accountId` to the URL query string + if (getAccountId() != null) { + joiner.add( + String.format( + "%saccountId%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAccountId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `asset` to the URL query string + if (getAsset() != null) { + joiner.add( + String.format( + "%sasset%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getAsset()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `address` to the URL query string + if (getAddress() != null) { + joiner.add( + String.format( + "%saddress%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `addressType` to the URL query string + if (getAddressType() != null) { + joiner.add( + String.format( + "%saddressType%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAddressType()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `addressDescription` to the URL query string + if (getAddressDescription() != null) { + joiner.add( + String.format( + "%saddressDescription%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAddressDescription()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `tag` to the URL query string + if (getTag() != null) { + joiner.add( + String.format( + "%stag%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getTag()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `addressIndex` to the URL query string + if (getAddressIndex() != null) { + joiner.add( + String.format( + "%saddressIndex%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAddressIndex()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `change` to the URL query string + if (getChange() != null) { + joiner.add( + String.format( + "%schange%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getChange()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `coinType` to the URL query string + if (getCoinType() != null) { + joiner.add( + String.format( + "%scoinType%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCoinType()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `customerRefId` to the URL query string + if (getCustomerRefId() != null) { + joiner.add( + String.format( + "%scustomerRefId%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getCustomerRefId()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `addressFormat` to the URL query string + if (getAddressFormat() != null) { + joiner.add( + String.format( + "%saddressFormat%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAddressFormat()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `legacyAddress` to the URL query string + if (getLegacyAddress() != null) { + joiner.add( + String.format( + "%slegacyAddress%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getLegacyAddress()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `paymentAddress` to the URL query string + if (getPaymentAddress() != null) { + joiner.add( + String.format( + "%spaymentAddress%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getPaymentAddress()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `userDefined` to the URL query string + if (getUserDefined() != null) { + joiner.add( + String.format( + "%suserDefined%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getUserDefined()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `state` to the URL query string + if (getState() != null) { + joiner.add( + String.format( + "%sstate%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java new file mode 100644 index 00000000..ef8b1ad2 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritm.java @@ -0,0 +1,175 @@ +/* + * 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.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** algorithm name */ +@JsonPropertyOrder({EmbeddedWalletAlgoritm.JSON_PROPERTY_ALGORITHM}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletAlgoritm { + /** algorithm */ + public enum AlgorithmEnum { + ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"), + + EDDSA_ED25519("MPC_EDDSA_ED25519"); + + private String value; + + AlgorithmEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AlgorithmEnum fromValue(String value) { + for (AlgorithmEnum b : AlgorithmEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; + private AlgorithmEnum algorithm; + + public EmbeddedWalletAlgoritm() {} + + public EmbeddedWalletAlgoritm algorithm(AlgorithmEnum algorithm) { + this.algorithm = algorithm; + return this; + } + + /** + * algorithm + * + * @return algorithm + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ALGORITHM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AlgorithmEnum getAlgorithm() { + return algorithm; + } + + @JsonProperty(JSON_PROPERTY_ALGORITHM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAlgorithm(AlgorithmEnum algorithm) { + this.algorithm = algorithm; + } + + /** Return true if this EmbeddedWalletAlgoritm object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletAlgoritm embeddedWalletAlgoritm = (EmbeddedWalletAlgoritm) o; + return Objects.equals(this.algorithm, embeddedWalletAlgoritm.algorithm); + } + + @Override + public int hashCode() { + return Objects.hash(algorithm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletAlgoritm {\n"); + sb.append(" algorithm: ").append(toIndentedString(algorithm)).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 `algorithm` to the URL query string + if (getAlgorithm() != null) { + joiner.add( + String.format( + "%salgorithm%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java new file mode 100644 index 00000000..9d769158 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalance.java @@ -0,0 +1,470 @@ +/* + * 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; + +/** EmbeddedWalletAssetBalance */ +@JsonPropertyOrder({ + EmbeddedWalletAssetBalance.JSON_PROPERTY_ID, + EmbeddedWalletAssetBalance.JSON_PROPERTY_TOTAL, + EmbeddedWalletAssetBalance.JSON_PROPERTY_AVAILABLE, + EmbeddedWalletAssetBalance.JSON_PROPERTY_PENDING, + EmbeddedWalletAssetBalance.JSON_PROPERTY_FROZEN, + EmbeddedWalletAssetBalance.JSON_PROPERTY_LOCKED_AMOUNT, + EmbeddedWalletAssetBalance.JSON_PROPERTY_BLOCK_HEIGHT, + EmbeddedWalletAssetBalance.JSON_PROPERTY_BLOCK_HASH, + EmbeddedWalletAssetBalance.JSON_PROPERTY_REWARD_INFO +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletAssetBalance { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TOTAL = "total"; + private String total; + + public static final String JSON_PROPERTY_AVAILABLE = "available"; + private String available; + + public static final String JSON_PROPERTY_PENDING = "pending"; + private String pending; + + public static final String JSON_PROPERTY_FROZEN = "frozen"; + private String frozen; + + public static final String JSON_PROPERTY_LOCKED_AMOUNT = "lockedAmount"; + private String lockedAmount; + + public static final String JSON_PROPERTY_BLOCK_HEIGHT = "blockHeight"; + private String blockHeight; + + public static final String JSON_PROPERTY_BLOCK_HASH = "blockHash"; + private String blockHash; + + public static final String JSON_PROPERTY_REWARD_INFO = "rewardInfo"; + private EmbeddedWalletAssetRewardInfo rewardInfo; + + public EmbeddedWalletAssetBalance() {} + + public EmbeddedWalletAssetBalance id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the asset balance entry + * + * @return id + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; + } + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + public EmbeddedWalletAssetBalance total(String total) { + this.total = total; + return this; + } + + /** + * Total balance amount for the asset in the account (including pending, locked, and available) + * + * @return total + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getTotal() { + return total; + } + + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotal(String total) { + this.total = total; + } + + public EmbeddedWalletAssetBalance available(String available) { + this.available = available; + return this; + } + + /** + * The balance available for use or withdrawal + * + * @return available + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AVAILABLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAvailable() { + return available; + } + + @JsonProperty(JSON_PROPERTY_AVAILABLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAvailable(String available) { + this.available = available; + } + + public EmbeddedWalletAssetBalance pending(String pending) { + this.pending = pending; + return this; + } + + /** + * Amount pending confirmation from blockchain (e.g., unconfirmed deposits) + * + * @return pending + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PENDING) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPending() { + return pending; + } + + @JsonProperty(JSON_PROPERTY_PENDING) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPending(String pending) { + this.pending = pending; + } + + public EmbeddedWalletAssetBalance frozen(String frozen) { + this.frozen = frozen; + return this; + } + + /** + * Balance that is frozen due to policy or regulatory lock + * + * @return frozen + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FROZEN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getFrozen() { + return frozen; + } + + @JsonProperty(JSON_PROPERTY_FROZEN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFrozen(String frozen) { + this.frozen = frozen; + } + + public EmbeddedWalletAssetBalance lockedAmount(String lockedAmount) { + this.lockedAmount = lockedAmount; + return this; + } + + /** + * Funds locked for operations such as staking or delegation + * + * @return lockedAmount + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getLockedAmount() { + return lockedAmount; + } + + @JsonProperty(JSON_PROPERTY_LOCKED_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLockedAmount(String lockedAmount) { + this.lockedAmount = lockedAmount; + } + + public EmbeddedWalletAssetBalance blockHeight(String blockHeight) { + this.blockHeight = blockHeight; + return this; + } + + /** + * Latest known blockchain height when balance was fetched + * + * @return blockHeight + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBlockHeight() { + return blockHeight; + } + + @JsonProperty(JSON_PROPERTY_BLOCK_HEIGHT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBlockHeight(String blockHeight) { + this.blockHeight = blockHeight; + } + + public EmbeddedWalletAssetBalance blockHash(String blockHash) { + this.blockHash = blockHash; + return this; + } + + /** + * Hash of the blockchain block associated with the current balance state + * + * @return blockHash + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BLOCK_HASH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBlockHash() { + return blockHash; + } + + @JsonProperty(JSON_PROPERTY_BLOCK_HASH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBlockHash(String blockHash) { + this.blockHash = blockHash; + } + + public EmbeddedWalletAssetBalance rewardInfo(EmbeddedWalletAssetRewardInfo rewardInfo) { + this.rewardInfo = rewardInfo; + return this; + } + + /** + * Get rewardInfo + * + * @return rewardInfo + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REWARD_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EmbeddedWalletAssetRewardInfo getRewardInfo() { + return rewardInfo; + } + + @JsonProperty(JSON_PROPERTY_REWARD_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRewardInfo(EmbeddedWalletAssetRewardInfo rewardInfo) { + this.rewardInfo = rewardInfo; + } + + /** Return true if this EmbeddedWalletAssetBalance object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletAssetBalance embeddedWalletAssetBalance = (EmbeddedWalletAssetBalance) o; + return Objects.equals(this.id, embeddedWalletAssetBalance.id) + && Objects.equals(this.total, embeddedWalletAssetBalance.total) + && Objects.equals(this.available, embeddedWalletAssetBalance.available) + && Objects.equals(this.pending, embeddedWalletAssetBalance.pending) + && Objects.equals(this.frozen, embeddedWalletAssetBalance.frozen) + && Objects.equals(this.lockedAmount, embeddedWalletAssetBalance.lockedAmount) + && Objects.equals(this.blockHeight, embeddedWalletAssetBalance.blockHeight) + && Objects.equals(this.blockHash, embeddedWalletAssetBalance.blockHash) + && Objects.equals(this.rewardInfo, embeddedWalletAssetBalance.rewardInfo); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + total, + available, + pending, + frozen, + lockedAmount, + blockHeight, + blockHash, + rewardInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletAssetBalance {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" available: ").append(toIndentedString(available)).append("\n"); + sb.append(" pending: ").append(toIndentedString(pending)).append("\n"); + sb.append(" frozen: ").append(toIndentedString(frozen)).append("\n"); + sb.append(" lockedAmount: ").append(toIndentedString(lockedAmount)).append("\n"); + sb.append(" blockHeight: ").append(toIndentedString(blockHeight)).append("\n"); + sb.append(" blockHash: ").append(toIndentedString(blockHash)).append("\n"); + sb.append(" rewardInfo: ").append(toIndentedString(rewardInfo)).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 `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"))); + } + + // add `total` to the URL query string + if (getTotal() != null) { + joiner.add( + String.format( + "%stotal%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `available` to the URL query string + if (getAvailable() != null) { + joiner.add( + String.format( + "%savailable%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAvailable()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `pending` to the URL query string + if (getPending() != null) { + joiner.add( + String.format( + "%spending%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getPending()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `frozen` to the URL query string + if (getFrozen() != null) { + joiner.add( + String.format( + "%sfrozen%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getFrozen()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `lockedAmount` to the URL query string + if (getLockedAmount() != null) { + joiner.add( + String.format( + "%slockedAmount%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getLockedAmount()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `blockHeight` to the URL query string + if (getBlockHeight() != null) { + joiner.add( + String.format( + "%sblockHeight%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getBlockHeight()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `blockHash` to the URL query string + if (getBlockHash() != null) { + joiner.add( + String.format( + "%sblockHash%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getBlockHash()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `rewardInfo` to the URL query string + if (getRewardInfo() != null) { + joiner.add(getRewardInfo().toUrlQueryString(prefix + "rewardInfo" + suffix)); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java new file mode 100644 index 00000000..490cb586 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponse.java @@ -0,0 +1,858 @@ +/* + * 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.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletAssetResponse */ +@JsonPropertyOrder({ + EmbeddedWalletAssetResponse.JSON_PROPERTY_ID, + EmbeddedWalletAssetResponse.JSON_PROPERTY_SYMBOL, + EmbeddedWalletAssetResponse.JSON_PROPERTY_NAME, + EmbeddedWalletAssetResponse.JSON_PROPERTY_DECIMALS, + EmbeddedWalletAssetResponse.JSON_PROPERTY_NETWORK_PROTOCOL, + EmbeddedWalletAssetResponse.JSON_PROPERTY_TESTNET, + EmbeddedWalletAssetResponse.JSON_PROPERTY_HAS_FEE, + EmbeddedWalletAssetResponse.JSON_PROPERTY_BASE_ASSET, + EmbeddedWalletAssetResponse.JSON_PROPERTY_ETH_NETWORK, + EmbeddedWalletAssetResponse.JSON_PROPERTY_ETH_CONTRACT_ADDRESS, + EmbeddedWalletAssetResponse.JSON_PROPERTY_ISSUER_ADDRESS, + EmbeddedWalletAssetResponse.JSON_PROPERTY_BLOCKCHAIN_SYMBOL, + EmbeddedWalletAssetResponse.JSON_PROPERTY_DEPRECATED, + EmbeddedWalletAssetResponse.JSON_PROPERTY_COIN_TYPE, + EmbeddedWalletAssetResponse.JSON_PROPERTY_BLOCKCHAIN, + EmbeddedWalletAssetResponse.JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME, + EmbeddedWalletAssetResponse.JSON_PROPERTY_ALGORITHM +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletAssetResponse { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_SYMBOL = "symbol"; + private String symbol; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_DECIMALS = "decimals"; + private BigDecimal decimals; + + public static final String JSON_PROPERTY_NETWORK_PROTOCOL = "networkProtocol"; + private String networkProtocol; + + public static final String JSON_PROPERTY_TESTNET = "testnet"; + private Boolean testnet; + + public static final String JSON_PROPERTY_HAS_FEE = "hasFee"; + private Boolean hasFee; + + public static final String JSON_PROPERTY_BASE_ASSET = "baseAsset"; + private String baseAsset; + + public static final String JSON_PROPERTY_ETH_NETWORK = "ethNetwork"; + private String ethNetwork; + + public static final String JSON_PROPERTY_ETH_CONTRACT_ADDRESS = "ethContractAddress"; + private String ethContractAddress; + + public static final String JSON_PROPERTY_ISSUER_ADDRESS = "issuerAddress"; + private String issuerAddress; + + public static final String JSON_PROPERTY_BLOCKCHAIN_SYMBOL = "blockchainSymbol"; + private String blockchainSymbol; + + public static final String JSON_PROPERTY_DEPRECATED = "deprecated"; + private Boolean deprecated; + + public static final String JSON_PROPERTY_COIN_TYPE = "coinType"; + private BigDecimal coinType; + + public static final String JSON_PROPERTY_BLOCKCHAIN = "blockchain"; + private String blockchain; + + public static final String JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME = "blockchainDisplayName"; + private String blockchainDisplayName; + + /** Gets or Sets algorithm */ + public enum AlgorithmEnum { + ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"), + + EDDSA_ED25519("MPC_EDDSA_ED25519"); + + private String value; + + AlgorithmEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AlgorithmEnum fromValue(String value) { + for (AlgorithmEnum b : AlgorithmEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; + private AlgorithmEnum algorithm; + + public EmbeddedWalletAssetResponse() {} + + public EmbeddedWalletAssetResponse id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * + * @return id + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; + } + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + public EmbeddedWalletAssetResponse symbol(String symbol) { + this.symbol = symbol; + return this; + } + + /** + * The asset symbol + * + * @return symbol + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SYMBOL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getSymbol() { + return symbol; + } + + @JsonProperty(JSON_PROPERTY_SYMBOL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + public EmbeddedWalletAssetResponse name(String name) { + this.name = name; + return this; + } + + /** + * The asset name + * + * @return name + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + public EmbeddedWalletAssetResponse decimals(BigDecimal decimals) { + this.decimals = decimals; + return this; + } + + /** + * Number of decimals + * + * @return decimals + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DECIMALS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDecimals() { + return decimals; + } + + @JsonProperty(JSON_PROPERTY_DECIMALS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDecimals(BigDecimal decimals) { + this.decimals = decimals; + } + + public EmbeddedWalletAssetResponse networkProtocol(String networkProtocol) { + this.networkProtocol = networkProtocol; + return this; + } + + /** + * Netowrk protocol of the blockchain (BTC, ETH) + * + * @return networkProtocol + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getNetworkProtocol() { + return networkProtocol; + } + + @JsonProperty(JSON_PROPERTY_NETWORK_PROTOCOL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNetworkProtocol(String networkProtocol) { + this.networkProtocol = networkProtocol; + } + + public EmbeddedWalletAssetResponse testnet(Boolean testnet) { + this.testnet = testnet; + return this; + } + + /** + * Is in testnet + * + * @return testnet + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TESTNET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getTestnet() { + return testnet; + } + + @JsonProperty(JSON_PROPERTY_TESTNET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTestnet(Boolean testnet) { + this.testnet = testnet; + } + + public EmbeddedWalletAssetResponse hasFee(Boolean hasFee) { + this.hasFee = hasFee; + return this; + } + + /** + * Has fee + * + * @return hasFee + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_HAS_FEE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getHasFee() { + return hasFee; + } + + @JsonProperty(JSON_PROPERTY_HAS_FEE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setHasFee(Boolean hasFee) { + this.hasFee = hasFee; + } + + public EmbeddedWalletAssetResponse baseAsset(String baseAsset) { + this.baseAsset = baseAsset; + return this; + } + + /** + * Base asset symbol BTC_TEST, ETH_TEST5) + * + * @return baseAsset + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_BASE_ASSET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getBaseAsset() { + return baseAsset; + } + + @JsonProperty(JSON_PROPERTY_BASE_ASSET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBaseAsset(String baseAsset) { + this.baseAsset = baseAsset; + } + + public EmbeddedWalletAssetResponse ethNetwork(String ethNetwork) { + this.ethNetwork = ethNetwork; + return this; + } + + /** + * Get ethNetwork + * + * @return ethNetwork + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ETH_NETWORK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEthNetwork() { + return ethNetwork; + } + + @JsonProperty(JSON_PROPERTY_ETH_NETWORK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEthNetwork(String ethNetwork) { + this.ethNetwork = ethNetwork; + } + + public EmbeddedWalletAssetResponse ethContractAddress(String ethContractAddress) { + this.ethContractAddress = ethContractAddress; + return this; + } + + /** + * Get ethContractAddress + * + * @return ethContractAddress + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ETH_CONTRACT_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEthContractAddress() { + return ethContractAddress; + } + + @JsonProperty(JSON_PROPERTY_ETH_CONTRACT_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEthContractAddress(String ethContractAddress) { + this.ethContractAddress = ethContractAddress; + } + + public EmbeddedWalletAssetResponse issuerAddress(String issuerAddress) { + this.issuerAddress = issuerAddress; + return this; + } + + /** + * The address of the issuer of this token. Will be part of the identifier of this token on + * chain. + * + * @return issuerAddress + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ISSUER_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIssuerAddress() { + return issuerAddress; + } + + @JsonProperty(JSON_PROPERTY_ISSUER_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIssuerAddress(String issuerAddress) { + this.issuerAddress = issuerAddress; + } + + public EmbeddedWalletAssetResponse blockchainSymbol(String blockchainSymbol) { + this.blockchainSymbol = blockchainSymbol; + return this; + } + + /** + * Name of blockchain + * + * @return blockchainSymbol + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBlockchainSymbol() { + return blockchainSymbol; + } + + @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBlockchainSymbol(String blockchainSymbol) { + this.blockchainSymbol = blockchainSymbol; + } + + public EmbeddedWalletAssetResponse deprecated(Boolean deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * Is blockchain deprecated + * + * @return deprecated + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DEPRECATED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeprecated() { + return deprecated; + } + + @JsonProperty(JSON_PROPERTY_DEPRECATED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDeprecated(Boolean deprecated) { + this.deprecated = deprecated; + } + + public EmbeddedWalletAssetResponse coinType(BigDecimal coinType) { + this.coinType = coinType; + return this; + } + + /** + * Unique identifier of an asset (0 for BTC, 60 for ETH, etc.) + * + * @return coinType + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COIN_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getCoinType() { + return coinType; + } + + @JsonProperty(JSON_PROPERTY_COIN_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCoinType(BigDecimal coinType) { + this.coinType = coinType; + } + + public EmbeddedWalletAssetResponse blockchain(String blockchain) { + this.blockchain = blockchain; + return this; + } + + /** + * The blockchain native asset id which the token is deployed on + * + * @return blockchain + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_BLOCKCHAIN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getBlockchain() { + return blockchain; + } + + @JsonProperty(JSON_PROPERTY_BLOCKCHAIN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBlockchain(String blockchain) { + this.blockchain = blockchain; + } + + public EmbeddedWalletAssetResponse blockchainDisplayName(String blockchainDisplayName) { + this.blockchainDisplayName = blockchainDisplayName; + return this; + } + + /** + * Name of blockchain + * + * @return blockchainDisplayName + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBlockchainDisplayName() { + return blockchainDisplayName; + } + + @JsonProperty(JSON_PROPERTY_BLOCKCHAIN_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBlockchainDisplayName(String blockchainDisplayName) { + this.blockchainDisplayName = blockchainDisplayName; + } + + public EmbeddedWalletAssetResponse algorithm(AlgorithmEnum algorithm) { + this.algorithm = algorithm; + return this; + } + + /** + * Get algorithm + * + * @return algorithm + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ALGORITHM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AlgorithmEnum getAlgorithm() { + return algorithm; + } + + @JsonProperty(JSON_PROPERTY_ALGORITHM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAlgorithm(AlgorithmEnum algorithm) { + this.algorithm = algorithm; + } + + /** Return true if this EmbeddedWalletAssetResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletAssetResponse embeddedWalletAssetResponse = (EmbeddedWalletAssetResponse) o; + return Objects.equals(this.id, embeddedWalletAssetResponse.id) + && Objects.equals(this.symbol, embeddedWalletAssetResponse.symbol) + && Objects.equals(this.name, embeddedWalletAssetResponse.name) + && Objects.equals(this.decimals, embeddedWalletAssetResponse.decimals) + && Objects.equals(this.networkProtocol, embeddedWalletAssetResponse.networkProtocol) + && Objects.equals(this.testnet, embeddedWalletAssetResponse.testnet) + && Objects.equals(this.hasFee, embeddedWalletAssetResponse.hasFee) + && Objects.equals(this.baseAsset, embeddedWalletAssetResponse.baseAsset) + && Objects.equals(this.ethNetwork, embeddedWalletAssetResponse.ethNetwork) + && Objects.equals( + this.ethContractAddress, embeddedWalletAssetResponse.ethContractAddress) + && Objects.equals(this.issuerAddress, embeddedWalletAssetResponse.issuerAddress) + && Objects.equals( + this.blockchainSymbol, embeddedWalletAssetResponse.blockchainSymbol) + && Objects.equals(this.deprecated, embeddedWalletAssetResponse.deprecated) + && Objects.equals(this.coinType, embeddedWalletAssetResponse.coinType) + && Objects.equals(this.blockchain, embeddedWalletAssetResponse.blockchain) + && Objects.equals( + this.blockchainDisplayName, + embeddedWalletAssetResponse.blockchainDisplayName) + && Objects.equals(this.algorithm, embeddedWalletAssetResponse.algorithm); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + symbol, + name, + decimals, + networkProtocol, + testnet, + hasFee, + baseAsset, + ethNetwork, + ethContractAddress, + issuerAddress, + blockchainSymbol, + deprecated, + coinType, + blockchain, + blockchainDisplayName, + algorithm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletAssetResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" symbol: ").append(toIndentedString(symbol)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" decimals: ").append(toIndentedString(decimals)).append("\n"); + sb.append(" networkProtocol: ").append(toIndentedString(networkProtocol)).append("\n"); + sb.append(" testnet: ").append(toIndentedString(testnet)).append("\n"); + sb.append(" hasFee: ").append(toIndentedString(hasFee)).append("\n"); + sb.append(" baseAsset: ").append(toIndentedString(baseAsset)).append("\n"); + sb.append(" ethNetwork: ").append(toIndentedString(ethNetwork)).append("\n"); + sb.append(" ethContractAddress: ") + .append(toIndentedString(ethContractAddress)) + .append("\n"); + sb.append(" issuerAddress: ").append(toIndentedString(issuerAddress)).append("\n"); + sb.append(" blockchainSymbol: ").append(toIndentedString(blockchainSymbol)).append("\n"); + sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n"); + sb.append(" coinType: ").append(toIndentedString(coinType)).append("\n"); + sb.append(" blockchain: ").append(toIndentedString(blockchain)).append("\n"); + sb.append(" blockchainDisplayName: ") + .append(toIndentedString(blockchainDisplayName)) + .append("\n"); + sb.append(" algorithm: ").append(toIndentedString(algorithm)).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 `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"))); + } + + // add `symbol` to the URL query string + if (getSymbol() != null) { + joiner.add( + String.format( + "%ssymbol%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getSymbol()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `name` to the URL query string + if (getName() != null) { + joiner.add( + String.format( + "%sname%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `decimals` to the URL query string + if (getDecimals() != null) { + joiner.add( + String.format( + "%sdecimals%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDecimals()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `networkProtocol` to the URL query string + if (getNetworkProtocol() != null) { + joiner.add( + String.format( + "%snetworkProtocol%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getNetworkProtocol()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `testnet` to the URL query string + if (getTestnet() != null) { + joiner.add( + String.format( + "%stestnet%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getTestnet()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `hasFee` to the URL query string + if (getHasFee() != null) { + joiner.add( + String.format( + "%shasFee%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getHasFee()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `baseAsset` to the URL query string + if (getBaseAsset() != null) { + joiner.add( + String.format( + "%sbaseAsset%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getBaseAsset()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `ethNetwork` to the URL query string + if (getEthNetwork() != null) { + joiner.add( + String.format( + "%sethNetwork%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getEthNetwork()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `ethContractAddress` to the URL query string + if (getEthContractAddress() != null) { + joiner.add( + String.format( + "%sethContractAddress%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getEthContractAddress()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `issuerAddress` to the URL query string + if (getIssuerAddress() != null) { + joiner.add( + String.format( + "%sissuerAddress%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getIssuerAddress()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `blockchainSymbol` to the URL query string + if (getBlockchainSymbol() != null) { + joiner.add( + String.format( + "%sblockchainSymbol%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getBlockchainSymbol()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `deprecated` to the URL query string + if (getDeprecated() != null) { + joiner.add( + String.format( + "%sdeprecated%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getDeprecated()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `coinType` to the URL query string + if (getCoinType() != null) { + joiner.add( + String.format( + "%scoinType%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCoinType()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `blockchain` to the URL query string + if (getBlockchain() != null) { + joiner.add( + String.format( + "%sblockchain%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getBlockchain()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `blockchainDisplayName` to the URL query string + if (getBlockchainDisplayName() != null) { + joiner.add( + String.format( + "%sblockchainDisplayName%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getBlockchainDisplayName()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `algorithm` to the URL query string + if (getAlgorithm() != null) { + joiner.add( + String.format( + "%salgorithm%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java new file mode 100644 index 00000000..0b123ce3 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfo.java @@ -0,0 +1,142 @@ +/* + * 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; + +/** EmbeddedWalletAssetRewardInfo */ +@JsonPropertyOrder({EmbeddedWalletAssetRewardInfo.JSON_PROPERTY_PENDING_REWARDS}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletAssetRewardInfo { + public static final String JSON_PROPERTY_PENDING_REWARDS = "pendingRewards"; + private String pendingRewards; + + public EmbeddedWalletAssetRewardInfo() {} + + public EmbeddedWalletAssetRewardInfo pendingRewards(String pendingRewards) { + this.pendingRewards = pendingRewards; + return this; + } + + /** + * Amount that is pending for rewards + * + * @return pendingRewards + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PENDING_REWARDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPendingRewards() { + return pendingRewards; + } + + @JsonProperty(JSON_PROPERTY_PENDING_REWARDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPendingRewards(String pendingRewards) { + this.pendingRewards = pendingRewards; + } + + /** Return true if this EmbeddedWalletAssetRewardInfo object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletAssetRewardInfo embeddedWalletAssetRewardInfo = + (EmbeddedWalletAssetRewardInfo) o; + return Objects.equals(this.pendingRewards, embeddedWalletAssetRewardInfo.pendingRewards); + } + + @Override + public int hashCode() { + return Objects.hash(pendingRewards); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletAssetRewardInfo {\n"); + sb.append(" pendingRewards: ").append(toIndentedString(pendingRewards)).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 `pendingRewards` to the URL query string + if (getPendingRewards() != null) { + joiner.add( + String.format( + "%spendingRewards%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getPendingRewards()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java new file mode 100644 index 00000000..399b65bc --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDevice.java @@ -0,0 +1,223 @@ +/* + * 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; + +/** EmbeddedWalletDevice */ +@JsonPropertyOrder({ + EmbeddedWalletDevice.JSON_PROPERTY_DEVICE_ID, + EmbeddedWalletDevice.JSON_PROPERTY_ENABLED, + EmbeddedWalletDevice.JSON_PROPERTY_PHYSICAL_DEVICE_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletDevice { + public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; + private String deviceId; + + public static final String JSON_PROPERTY_ENABLED = "enabled"; + private Boolean enabled; + + public static final String JSON_PROPERTY_PHYSICAL_DEVICE_ID = "physicalDeviceId"; + private String physicalDeviceId; + + public EmbeddedWalletDevice() {} + + public EmbeddedWalletDevice deviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * deviceId + * + * @return deviceId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDeviceId() { + return deviceId; + } + + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public EmbeddedWalletDevice enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * enabled + * + * @return enabled + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getEnabled() { + return enabled; + } + + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public EmbeddedWalletDevice physicalDeviceId(String physicalDeviceId) { + this.physicalDeviceId = physicalDeviceId; + return this; + } + + /** + * physicalDeviceId + * + * @return physicalDeviceId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PHYSICAL_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPhysicalDeviceId() { + return physicalDeviceId; + } + + @JsonProperty(JSON_PROPERTY_PHYSICAL_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPhysicalDeviceId(String physicalDeviceId) { + this.physicalDeviceId = physicalDeviceId; + } + + /** Return true if this EmbeddedWalletDevice object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletDevice embeddedWalletDevice = (EmbeddedWalletDevice) o; + return Objects.equals(this.deviceId, embeddedWalletDevice.deviceId) + && Objects.equals(this.enabled, embeddedWalletDevice.enabled) + && Objects.equals(this.physicalDeviceId, embeddedWalletDevice.physicalDeviceId); + } + + @Override + public int hashCode() { + return Objects.hash(deviceId, enabled, physicalDeviceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletDevice {\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" physicalDeviceId: ").append(toIndentedString(physicalDeviceId)).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 `deviceId` to the URL query string + if (getDeviceId() != null) { + joiner.add( + String.format( + "%sdeviceId%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDeviceId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `enabled` to the URL query string + if (getEnabled() != null) { + joiner.add( + String.format( + "%senabled%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `physicalDeviceId` to the URL query string + if (getPhysicalDeviceId() != null) { + joiner.add( + String.format( + "%sphysicalDeviceId%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getPhysicalDeviceId()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java new file mode 100644 index 00000000..80e016f6 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponse.java @@ -0,0 +1,283 @@ +/* + * 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.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletDeviceKeySetupResponse */ +@JsonPropertyOrder({ + EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_STATUS, + EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_DEVICE_ID, + EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_ENABLED, + EmbeddedWalletDeviceKeySetupResponse.JSON_PROPERTY_SETUP_STATUS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletDeviceKeySetupResponse { + public static final String JSON_PROPERTY_STATUS = "status"; + private EmbeddedWalletSetUpStatus status; + + public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; + private String deviceId; + + public static final String JSON_PROPERTY_ENABLED = "enabled"; + private Boolean enabled; + + public static final String JSON_PROPERTY_SETUP_STATUS = "setupStatus"; + private List setupStatus = + new ArrayList<>(); + + public EmbeddedWalletDeviceKeySetupResponse() {} + + public EmbeddedWalletDeviceKeySetupResponse status(EmbeddedWalletSetUpStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * + * @return status + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EmbeddedWalletSetUpStatus getStatus() { + return status; + } + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(EmbeddedWalletSetUpStatus status) { + this.status = status; + } + + public EmbeddedWalletDeviceKeySetupResponse deviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * deviceId + * + * @return deviceId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDeviceId() { + return deviceId; + } + + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public EmbeddedWalletDeviceKeySetupResponse enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * enabled + * + * @return enabled + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getEnabled() { + return enabled; + } + + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public EmbeddedWalletDeviceKeySetupResponse setupStatus( + List setupStatus) { + this.setupStatus = setupStatus; + return this; + } + + public EmbeddedWalletDeviceKeySetupResponse addSetupStatusItem( + EmbeddedWalletDeviceKeySetupResponseSetupStatusInner setupStatusItem) { + if (this.setupStatus == null) { + this.setupStatus = new ArrayList<>(); + } + this.setupStatus.add(setupStatusItem); + return this; + } + + /** + * setupStatus + * + * @return setupStatus + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SETUP_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getSetupStatus() { + return setupStatus; + } + + @JsonProperty(JSON_PROPERTY_SETUP_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSetupStatus( + List setupStatus) { + this.setupStatus = setupStatus; + } + + /** Return true if this EmbeddedWalletDeviceKeySetupResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletDeviceKeySetupResponse embeddedWalletDeviceKeySetupResponse = + (EmbeddedWalletDeviceKeySetupResponse) o; + return Objects.equals(this.status, embeddedWalletDeviceKeySetupResponse.status) + && Objects.equals(this.deviceId, embeddedWalletDeviceKeySetupResponse.deviceId) + && Objects.equals(this.enabled, embeddedWalletDeviceKeySetupResponse.enabled) + && Objects.equals( + this.setupStatus, embeddedWalletDeviceKeySetupResponse.setupStatus); + } + + @Override + public int hashCode() { + return Objects.hash(status, deviceId, enabled, setupStatus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletDeviceKeySetupResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" setupStatus: ").append(toIndentedString(setupStatus)).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 `status` to the URL query string + if (getStatus() != null) { + joiner.add(getStatus().toUrlQueryString(prefix + "status" + suffix)); + } + + // add `deviceId` to the URL query string + if (getDeviceId() != null) { + joiner.add( + String.format( + "%sdeviceId%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDeviceId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `enabled` to the URL query string + if (getEnabled() != null) { + joiner.add( + String.format( + "%senabled%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `setupStatus` to the URL query string + if (getSetupStatus() != null) { + for (int i = 0; i < getSetupStatus().size(); i++) { + if (getSetupStatus().get(i) != null) { + joiner.add( + getSetupStatus() + .get(i) + .toUrlQueryString( + String.format( + "%ssetupStatus%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java new file mode 100644 index 00000000..e7f51e71 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.java @@ -0,0 +1,228 @@ +/* + * 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; + +/** EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ +@JsonPropertyOrder({ + EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_ALGORITHM_NAME, + EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_CONFIRMED, + EmbeddedWalletDeviceKeySetupResponseSetupStatusInner.JSON_PROPERTY_BACKED_UP +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletDeviceKeySetupResponseSetupStatusInner { + public static final String JSON_PROPERTY_ALGORITHM_NAME = "algorithmName"; + private EmbeddedWalletAlgoritm algorithmName; + + public static final String JSON_PROPERTY_CONFIRMED = "confirmed"; + private Boolean confirmed; + + public static final String JSON_PROPERTY_BACKED_UP = "backedUp"; + private Boolean backedUp; + + public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner() {} + + public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner algorithmName( + EmbeddedWalletAlgoritm algorithmName) { + this.algorithmName = algorithmName; + return this; + } + + /** + * Get algorithmName + * + * @return algorithmName + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ALGORITHM_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EmbeddedWalletAlgoritm getAlgorithmName() { + return algorithmName; + } + + @JsonProperty(JSON_PROPERTY_ALGORITHM_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAlgorithmName(EmbeddedWalletAlgoritm algorithmName) { + this.algorithmName = algorithmName; + } + + public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner confirmed(Boolean confirmed) { + this.confirmed = confirmed; + return this; + } + + /** + * confirmed + * + * @return confirmed + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CONFIRMED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getConfirmed() { + return confirmed; + } + + @JsonProperty(JSON_PROPERTY_CONFIRMED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setConfirmed(Boolean confirmed) { + this.confirmed = confirmed; + } + + public EmbeddedWalletDeviceKeySetupResponseSetupStatusInner backedUp(Boolean backedUp) { + this.backedUp = backedUp; + return this; + } + + /** + * backedUp + * + * @return backedUp + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_BACKED_UP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBackedUp() { + return backedUp; + } + + @JsonProperty(JSON_PROPERTY_BACKED_UP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBackedUp(Boolean backedUp) { + this.backedUp = backedUp; + } + + /** + * Return true if this EmbeddedWalletDeviceKeySetupResponse_setupStatus_inner object is equal to + * o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletDeviceKeySetupResponseSetupStatusInner + embeddedWalletDeviceKeySetupResponseSetupStatusInner = + (EmbeddedWalletDeviceKeySetupResponseSetupStatusInner) o; + return Objects.equals( + this.algorithmName, + embeddedWalletDeviceKeySetupResponseSetupStatusInner.algorithmName) + && Objects.equals( + this.confirmed, + embeddedWalletDeviceKeySetupResponseSetupStatusInner.confirmed) + && Objects.equals( + this.backedUp, + embeddedWalletDeviceKeySetupResponseSetupStatusInner.backedUp); + } + + @Override + public int hashCode() { + return Objects.hash(algorithmName, confirmed, backedUp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletDeviceKeySetupResponseSetupStatusInner {\n"); + sb.append(" algorithmName: ").append(toIndentedString(algorithmName)).append("\n"); + sb.append(" confirmed: ").append(toIndentedString(confirmed)).append("\n"); + sb.append(" backedUp: ").append(toIndentedString(backedUp)).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 `algorithmName` to the URL query string + if (getAlgorithmName() != null) { + joiner.add(getAlgorithmName().toUrlQueryString(prefix + "algorithmName" + suffix)); + } + + // add `confirmed` to the URL query string + if (getConfirmed() != null) { + joiner.add( + String.format( + "%sconfirmed%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getConfirmed()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `backedUp` to the URL query string + if (getBackedUp() != null) { + joiner.add( + String.format( + "%sbackedUp%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getBackedUp()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java new file mode 100644 index 00000000..f2e2a3bd --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKey.java @@ -0,0 +1,301 @@ +/* + * 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.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletLatestBackupKey */ +@JsonPropertyOrder({ + EmbeddedWalletLatestBackupKey.JSON_PROPERTY_DEVICE_ID, + EmbeddedWalletLatestBackupKey.JSON_PROPERTY_PUBLIC_KEY, + EmbeddedWalletLatestBackupKey.JSON_PROPERTY_KEY_ID, + EmbeddedWalletLatestBackupKey.JSON_PROPERTY_ALGORITHM +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletLatestBackupKey { + public static final String JSON_PROPERTY_DEVICE_ID = "deviceId"; + private String deviceId; + + public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey"; + private String publicKey; + + public static final String JSON_PROPERTY_KEY_ID = "keyId"; + private String keyId; + + /** algorithm */ + public enum AlgorithmEnum { + CMP_ECDSA_SECP256K1("MPC_CMP_ECDSA_SECP256K1"), + + CMP_EDDSA_ED25519("MPC_CMP_EDDSA_ED25519"), + + ECDSA_SECP256K1("MPC_ECDSA_SECP256K1"); + + private String value; + + AlgorithmEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AlgorithmEnum fromValue(String value) { + for (AlgorithmEnum b : AlgorithmEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; + private AlgorithmEnum algorithm; + + public EmbeddedWalletLatestBackupKey() {} + + public EmbeddedWalletLatestBackupKey deviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * deviceId + * + * @return deviceId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDeviceId() { + return deviceId; + } + + @JsonProperty(JSON_PROPERTY_DEVICE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public EmbeddedWalletLatestBackupKey publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * publicKey + * + * @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; + } + + public EmbeddedWalletLatestBackupKey keyId(String keyId) { + this.keyId = keyId; + return this; + } + + /** + * keyId + * + * @return keyId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_KEY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getKeyId() { + return keyId; + } + + @JsonProperty(JSON_PROPERTY_KEY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public EmbeddedWalletLatestBackupKey algorithm(AlgorithmEnum algorithm) { + this.algorithm = algorithm; + return this; + } + + /** + * algorithm + * + * @return algorithm + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ALGORITHM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AlgorithmEnum getAlgorithm() { + return algorithm; + } + + @JsonProperty(JSON_PROPERTY_ALGORITHM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAlgorithm(AlgorithmEnum algorithm) { + this.algorithm = algorithm; + } + + /** Return true if this EmbeddedWalletLatestBackupKey object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletLatestBackupKey embeddedWalletLatestBackupKey = + (EmbeddedWalletLatestBackupKey) o; + return Objects.equals(this.deviceId, embeddedWalletLatestBackupKey.deviceId) + && Objects.equals(this.publicKey, embeddedWalletLatestBackupKey.publicKey) + && Objects.equals(this.keyId, embeddedWalletLatestBackupKey.keyId) + && Objects.equals(this.algorithm, embeddedWalletLatestBackupKey.algorithm); + } + + @Override + public int hashCode() { + return Objects.hash(deviceId, publicKey, keyId, algorithm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletLatestBackupKey {\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); + sb.append(" algorithm: ").append(toIndentedString(algorithm)).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 `deviceId` to the URL query string + if (getDeviceId() != null) { + joiner.add( + String.format( + "%sdeviceId%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getDeviceId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // 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"))); + } + + // add `keyId` to the URL query string + if (getKeyId() != null) { + joiner.add( + String.format( + "%skeyId%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getKeyId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `algorithm` to the URL query string + if (getAlgorithm() != null) { + joiner.add( + String.format( + "%salgorithm%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getAlgorithm()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java new file mode 100644 index 00000000..7cfbacc1 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponse.java @@ -0,0 +1,248 @@ +/* + * 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.math.BigDecimal; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletLatestBackupResponse */ +@JsonPropertyOrder({ + EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_PASSPHRASE_ID, + EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_CREATED_AT, + EmbeddedWalletLatestBackupResponse.JSON_PROPERTY_KEYS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletLatestBackupResponse { + public static final String JSON_PROPERTY_PASSPHRASE_ID = "passphraseId"; + private String passphraseId; + + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private BigDecimal createdAt; + + public static final String JSON_PROPERTY_KEYS = "keys"; + private List keys = new ArrayList<>(); + + public EmbeddedWalletLatestBackupResponse() {} + + public EmbeddedWalletLatestBackupResponse passphraseId(String passphraseId) { + this.passphraseId = passphraseId; + return this; + } + + /** + * passphraseId + * + * @return passphraseId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PASSPHRASE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassphraseId() { + return passphraseId; + } + + @JsonProperty(JSON_PROPERTY_PASSPHRASE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPassphraseId(String passphraseId) { + this.passphraseId = passphraseId; + } + + public EmbeddedWalletLatestBackupResponse createdAt(BigDecimal createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * createdAt + * + * @return createdAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getCreatedAt() { + return createdAt; + } + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(BigDecimal createdAt) { + this.createdAt = createdAt; + } + + public EmbeddedWalletLatestBackupResponse keys(List keys) { + this.keys = keys; + return this; + } + + public EmbeddedWalletLatestBackupResponse addKeysItem(EmbeddedWalletLatestBackupKey keysItem) { + if (this.keys == null) { + this.keys = new ArrayList<>(); + } + this.keys.add(keysItem); + return this; + } + + /** + * keys + * + * @return keys + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_KEYS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getKeys() { + return keys; + } + + @JsonProperty(JSON_PROPERTY_KEYS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setKeys(List keys) { + this.keys = keys; + } + + /** Return true if this EmbeddedWalletLatestBackupResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletLatestBackupResponse embeddedWalletLatestBackupResponse = + (EmbeddedWalletLatestBackupResponse) o; + return Objects.equals(this.passphraseId, embeddedWalletLatestBackupResponse.passphraseId) + && Objects.equals(this.createdAt, embeddedWalletLatestBackupResponse.createdAt) + && Objects.equals(this.keys, embeddedWalletLatestBackupResponse.keys); + } + + @Override + public int hashCode() { + return Objects.hash(passphraseId, createdAt, keys); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletLatestBackupResponse {\n"); + sb.append(" passphraseId: ").append(toIndentedString(passphraseId)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" keys: ").append(toIndentedString(keys)).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 `passphraseId` to the URL query string + if (getPassphraseId() != null) { + joiner.add( + String.format( + "%spassphraseId%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getPassphraseId()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `createdAt` to the URL query string + if (getCreatedAt() != null) { + joiner.add( + String.format( + "%screatedAt%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getCreatedAt()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `keys` to the URL query string + if (getKeys() != null) { + for (int i = 0; i < getKeys().size(); i++) { + if (getKeys().get(i) != null) { + joiner.add( + getKeys() + .get(i) + .toUrlQueryString( + String.format( + "%skeys%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java new file mode 100644 index 00000000..cdcc8dee --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponse.java @@ -0,0 +1,205 @@ +/* + * 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.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletPaginatedAddressesResponse */ +@JsonPropertyOrder({ + EmbeddedWalletPaginatedAddressesResponse.JSON_PROPERTY_DATA, + EmbeddedWalletPaginatedAddressesResponse.JSON_PROPERTY_NEXT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletPaginatedAddressesResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public static final String JSON_PROPERTY_NEXT = "next"; + private String next; + + public EmbeddedWalletPaginatedAddressesResponse() {} + + public EmbeddedWalletPaginatedAddressesResponse data(List data) { + this.data = data; + return this; + } + + public EmbeddedWalletPaginatedAddressesResponse addDataItem( + EmbeddedWalletAddressDetails dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * The data of the current page + * + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(List data) { + this.data = data; + } + + public EmbeddedWalletPaginatedAddressesResponse next(String next) { + this.next = next; + return this; + } + + /** + * The ID of the next page + * + * @return next + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNext() { + return next; + } + + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNext(String next) { + this.next = next; + } + + /** Return true if this EmbeddedWalletPaginatedAddressesResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletPaginatedAddressesResponse embeddedWalletPaginatedAddressesResponse = + (EmbeddedWalletPaginatedAddressesResponse) o; + return Objects.equals(this.data, embeddedWalletPaginatedAddressesResponse.data) + && Objects.equals(this.next, embeddedWalletPaginatedAddressesResponse.next); + } + + @Override + public int hashCode() { + return Objects.hash(data, next); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletPaginatedAddressesResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" next: ").append(toIndentedString(next)).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 `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add( + getData() + .get(i) + .toUrlQueryString( + String.format( + "%sdata%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `next` to the URL query string + if (getNext() != null) { + joiner.add( + String.format( + "%snext%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java new file mode 100644 index 00000000..6b872a04 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponse.java @@ -0,0 +1,204 @@ +/* + * 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.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletPaginatedAssetsResponse */ +@JsonPropertyOrder({ + EmbeddedWalletPaginatedAssetsResponse.JSON_PROPERTY_DATA, + EmbeddedWalletPaginatedAssetsResponse.JSON_PROPERTY_NEXT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletPaginatedAssetsResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public static final String JSON_PROPERTY_NEXT = "next"; + private String next; + + public EmbeddedWalletPaginatedAssetsResponse() {} + + public EmbeddedWalletPaginatedAssetsResponse data(List data) { + this.data = data; + return this; + } + + public EmbeddedWalletPaginatedAssetsResponse addDataItem(EmbeddedWalletAssetResponse dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * The data of the current page + * + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(List data) { + this.data = data; + } + + public EmbeddedWalletPaginatedAssetsResponse next(String next) { + this.next = next; + return this; + } + + /** + * The ID of the next page + * + * @return next + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNext() { + return next; + } + + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNext(String next) { + this.next = next; + } + + /** Return true if this EmbeddedWalletPaginatedAssetsResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletPaginatedAssetsResponse embeddedWalletPaginatedAssetsResponse = + (EmbeddedWalletPaginatedAssetsResponse) o; + return Objects.equals(this.data, embeddedWalletPaginatedAssetsResponse.data) + && Objects.equals(this.next, embeddedWalletPaginatedAssetsResponse.next); + } + + @Override + public int hashCode() { + return Objects.hash(data, next); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletPaginatedAssetsResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" next: ").append(toIndentedString(next)).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 `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add( + getData() + .get(i) + .toUrlQueryString( + String.format( + "%sdata%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `next` to the URL query string + if (getNext() != null) { + joiner.add( + String.format( + "%snext%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java new file mode 100644 index 00000000..b1b49931 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponse.java @@ -0,0 +1,204 @@ +/* + * 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.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.StringJoiner; + +/** EmbeddedWalletPaginatedWalletsResponse */ +@JsonPropertyOrder({ + EmbeddedWalletPaginatedWalletsResponse.JSON_PROPERTY_DATA, + EmbeddedWalletPaginatedWalletsResponse.JSON_PROPERTY_NEXT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletPaginatedWalletsResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public static final String JSON_PROPERTY_NEXT = "next"; + private String next; + + public EmbeddedWalletPaginatedWalletsResponse() {} + + public EmbeddedWalletPaginatedWalletsResponse data(List data) { + this.data = data; + return this; + } + + public EmbeddedWalletPaginatedWalletsResponse addDataItem(EmbeddedWallet dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * The data of the current page + * + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(List data) { + this.data = data; + } + + public EmbeddedWalletPaginatedWalletsResponse next(String next) { + this.next = next; + return this; + } + + /** + * The ID of the next page + * + * @return next + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNext() { + return next; + } + + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNext(String next) { + this.next = next; + } + + /** Return true if this EmbeddedWalletPaginatedWalletsResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletPaginatedWalletsResponse embeddedWalletPaginatedWalletsResponse = + (EmbeddedWalletPaginatedWalletsResponse) o; + return Objects.equals(this.data, embeddedWalletPaginatedWalletsResponse.data) + && Objects.equals(this.next, embeddedWalletPaginatedWalletsResponse.next); + } + + @Override + public int hashCode() { + return Objects.hash(data, next); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletPaginatedWalletsResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" next: ").append(toIndentedString(next)).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 `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add( + getData() + .get(i) + .toUrlQueryString( + String.format( + "%sdata%s%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format( + "%s%d%s", + containerPrefix, + i, + containerSuffix)))); + } + } + } + + // add `next` to the URL query string + if (getNext() != null) { + joiner.add( + String.format( + "%snext%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java new file mode 100644 index 00000000..41d0d426 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatus.java @@ -0,0 +1,174 @@ +/* + * 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.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** embedded wallet setup status */ +@JsonPropertyOrder({EmbeddedWalletSetUpStatus.JSON_PROPERTY_STATUS}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EmbeddedWalletSetUpStatus { + /** status */ + public enum StatusEnum { + COMPLETE("COMPLETE"), + + INCOMPLETE("INCOMPLETE"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public EmbeddedWalletSetUpStatus() {} + + public EmbeddedWalletSetUpStatus status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * status + * + * @return status + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public StatusEnum getStatus() { + return status; + } + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + /** Return true if this EmbeddedWalletSetUpStatus object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EmbeddedWalletSetUpStatus embeddedWalletSetUpStatus = (EmbeddedWalletSetUpStatus) o; + return Objects.equals(this.status, embeddedWalletSetUpStatus.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EmbeddedWalletSetUpStatus {\n"); + sb.append(" status: ").append(toIndentedString(status)).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 `status` to the URL query string + if (getStatus() != null) { + joiner.add( + String.format( + "%sstatus%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/StakingProvider.java b/src/main/java/com/fireblocks/sdk/model/StakingProvider.java index d455d400..ad8cb99f 100644 --- a/src/main/java/com/fireblocks/sdk/model/StakingProvider.java +++ b/src/main/java/com/fireblocks/sdk/model/StakingProvider.java @@ -22,7 +22,9 @@ public enum StakingProvider { FIGMENT("figment"), - LIDO("lido"); + LIDO("lido"), + + P2P("p2p"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java index 0d593783..155c7f8b 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java @@ -119,6 +119,8 @@ public enum BlockchainDescriptorEnum { MANTLE_TEST("MANTLE_TEST"), + GUN_GUNZILLA("GUN_GUNZILLA"), + GUN_GUNZILLA_TEST("GUN_GUNZILLA_TEST"), ETH_SONEIUM("ETH_SONEIUM"), diff --git a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java index 174b9e6a..c21a0eaf 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java @@ -99,6 +99,8 @@ public enum BlockchainDescriptorEnum { MANTLE_TEST("MANTLE_TEST"), + GUN_GUNZILLA("GUN_GUNZILLA"), + GUN_GUNZILLA_TEST("GUN_GUNZILLA_TEST"), ETH_SONEIUM("ETH_SONEIUM"), diff --git a/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java b/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java index d5e18f51..57ebc158 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java +++ b/src/main/java/com/fireblocks/sdk/model/TransferPeerPathType.java @@ -42,7 +42,9 @@ public enum TransferPeerPathType { END_USER_WALLET("END_USER_WALLET"), - PROGRAM_CALL("PROGRAM_CALL"); + PROGRAM_CALL("PROGRAM_CALL"), + + MULTI_DESTINATION("MULTI_DESTINATION"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java b/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java index 228324fc..81120c65 100644 --- a/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TravelRulePolicyRuleResponse.java @@ -381,7 +381,7 @@ public TravelRulePolicyRuleResponse networkProtocol(String networkProtocol) { } /** - * Get networkProtocol + * The network protocol of the token * * @return networkProtocol */ diff --git a/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java b/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java index 5af6b7b8..562a9a5e 100644 --- a/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java @@ -15,8 +15,20 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.model.EmbeddedWallet; +import com.fireblocks.sdk.model.EmbeddedWalletAccount; +import com.fireblocks.sdk.model.EmbeddedWalletAddressDetails; +import com.fireblocks.sdk.model.EmbeddedWalletAssetBalance; +import com.fireblocks.sdk.model.EmbeddedWalletAssetResponse; +import com.fireblocks.sdk.model.EmbeddedWalletDevice; +import com.fireblocks.sdk.model.EmbeddedWalletDeviceKeySetupResponse; +import com.fireblocks.sdk.model.EmbeddedWalletLatestBackupResponse; +import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAddressesResponse; +import com.fireblocks.sdk.model.EmbeddedWalletPaginatedAssetsResponse; +import com.fireblocks.sdk.model.EmbeddedWalletPaginatedWalletsResponse; import com.fireblocks.sdk.model.PublicKeyInformation; import java.math.BigDecimal; +import java.util.UUID; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -27,6 +39,180 @@ public class EmbeddedWalletsApiTest { private final EmbeddedWalletsApi api = new EmbeddedWalletsApi(); + /** + * Add asset to account + * + *

Get the addresses of a specific asset, under a specific account, under a specific Non + * Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void addEmbeddedWalletAssetTest() throws ApiException { + String walletId = null; + String accountId = null; + String assetId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.addEmbeddedWalletAsset(walletId, accountId, assetId, idempotencyKey); + } + + /** + * Create a new wallet + * + *

Create new Non Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void createEmbeddedWalletTest() throws ApiException { + String idempotencyKey = null; + CompletableFuture> response = + api.createEmbeddedWallet(idempotencyKey); + } + + /** + * Create a new account + * + *

Create a new account under a specific Non Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void createEmbeddedWalletAccountTest() throws ApiException { + String walletId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.createEmbeddedWalletAccount(walletId, idempotencyKey); + } + + /** + * Get a wallet + * + *

Get a wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletTest() throws ApiException { + String walletId = null; + CompletableFuture> response = api.getEmbeddedWallet(walletId); + } + + /** + * Get a account + * + *

Get a specific account under a specific Non Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletAccountTest() throws ApiException { + String walletId = null; + String accountId = null; + CompletableFuture> response = + api.getEmbeddedWalletAccount(walletId, accountId); + } + + /** + * Retrieve asset addresses + * + *

Get the addresses of a specific asset, under a specific account, under a specific Non + * Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletAddressesTest() throws ApiException { + String walletId = null; + String accountId = null; + String assetId = null; + String pageCursor = null; + BigDecimal pageSize = null; + String sort = null; + String order = null; + Boolean enabled = null; + CompletableFuture> response = + api.getEmbeddedWalletAddresses( + walletId, accountId, assetId, pageCursor, pageSize, sort, order, enabled); + } + + /** + * Retrieve asset + * + *

Get asset under a specific account, under a specific Non Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletAssetTest() throws ApiException { + String walletId = null; + String accountId = null; + String assetId = null; + CompletableFuture> response = + api.getEmbeddedWalletAsset(walletId, accountId, assetId); + } + + /** + * Retrieve asset balance + * + *

Get balance for specific asset, under a specific account + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletAssetBalanceTest() throws ApiException { + String walletId = null; + String accountId = null; + String assetId = null; + CompletableFuture> response = + api.getEmbeddedWalletAssetBalance(walletId, accountId, assetId); + } + + /** + * Get Embedded Wallet Device + * + *

Get specific device for a specific s Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletDeviceTest() throws ApiException { + String walletId = null; + String deviceId = null; + CompletableFuture> response = + api.getEmbeddedWalletDevice(walletId, deviceId); + } + + /** + * Get device key setup state + * + *

Get the state of the specific device setup key under a specific Non Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletDeviceSetupStateTest() throws ApiException { + String walletId = null; + String deviceId = null; + CompletableFuture> response = + api.getEmbeddedWalletDeviceSetupState(walletId, deviceId); + } + + /** + * Get wallet Latest Backup details + * + *

Get wallet Latest Backup details, including the deviceId, and backup time + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletLatestBackupTest() throws ApiException { + String walletId = null; + CompletableFuture> response = + api.getEmbeddedWalletLatestBackup(walletId); + } + /** * Get the public key of an asset * @@ -36,7 +222,8 @@ public class EmbeddedWalletsApiTest { * @throws ApiException if the Api call fails */ @Test - public void getPublicKeyInfoForAddressNcwTest() throws ApiException { + public void getEmbeddedWalletPublicKeyInfoForAddressTest() throws ApiException { + UUID xEndUserWalletId = null; String walletId = null; String accountId = null; String assetId = null; @@ -44,8 +231,48 @@ public void getPublicKeyInfoForAddressNcwTest() throws ApiException { BigDecimal addressIndex = null; Boolean compressed = null; CompletableFuture> response = - api.getPublicKeyInfoForAddressNcw( - walletId, accountId, assetId, change, addressIndex, compressed); + api.getEmbeddedWalletPublicKeyInfoForAddress( + xEndUserWalletId, + walletId, + accountId, + assetId, + change, + addressIndex, + compressed); + } + + /** + * Retrieve supported assets + * + *

Get all the available supported assets for the Non-Custodial Wallet + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletSupportedAssetsTest() throws ApiException { + String pageCursor = null; + BigDecimal pageSize = null; + Boolean onlyBaseAssets = null; + CompletableFuture> response = + api.getEmbeddedWalletSupportedAssets(pageCursor, pageSize, onlyBaseAssets); + } + + /** + * List wallets + * + *

Get all Non Custodial Wallets + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEmbeddedWalletsTest() throws ApiException { + String pageCursor = null; + BigDecimal pageSize = null; + String sort = null; + String order = null; + Boolean enabled = null; + CompletableFuture> response = + api.getEmbeddedWallets(pageCursor, pageSize, sort, order, enabled); } /** @@ -58,11 +285,30 @@ public void getPublicKeyInfoForAddressNcwTest() throws ApiException { */ @Test public void getPublicKeyInfoNcwTest() throws ApiException { + UUID xEndUserWalletId = null; String walletId = null; String derivationPath = null; String algorithm = null; Boolean compressed = null; CompletableFuture> response = - api.getPublicKeyInfoNcw(walletId, derivationPath, algorithm, compressed); + api.getPublicKeyInfoNcw( + xEndUserWalletId, walletId, derivationPath, algorithm, compressed); + } + + /** + * Refresh asset balance + * + *

Refresh the balance of an asset in a specific account + * + * @throws ApiException if the Api call fails + */ + @Test + public void refreshEmbeddedWalletAssetBalanceTest() throws ApiException { + String walletId = null; + String accountId = null; + String assetId = null; + String idempotencyKey = null; + CompletableFuture> response = + api.refreshEmbeddedWalletAssetBalance(walletId, accountId, assetId, idempotencyKey); } } diff --git a/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java b/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java index 703b7524..ee4086f9 100644 --- a/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/JobManagementApiTest.java @@ -31,8 +31,8 @@ public class JobManagementApiTest { /** * Cancel a running job * - *

Stop the given job immediately. If the job is in the ‘Active’ state, the job will be - * canceled after completing the current task. Vault accounts and Wallets that are already + *

Stop the given job immediately. If the job is in the 'Active' state, the job will + * be canceled after completing the current task. Vault accounts and Wallets that are already * created will not be affected. * * @throws ApiException if the Api call fails @@ -105,7 +105,7 @@ public void getJobsTest() throws ApiException { * Pause a job * *

Pause the given job, after the current task is done. A paused job can later be resumed by - * calling ‘continue’, or canceled. + * calling 'continue', or canceled. * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java b/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java index d3a36dd2..1064ed6f 100644 --- a/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/NftsApiTest.java @@ -25,6 +25,7 @@ import com.fireblocks.sdk.model.UpdateTokenOwnershipStatusDto; import java.math.BigDecimal; import java.util.List; +import java.util.UUID; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -162,9 +163,11 @@ public void listOwnedTokensTest() throws ApiException { @Test public void refreshNFTMetadataTest() throws ApiException { String id = null; + UUID xEndUserWalletId = null; String idempotencyKey = null; - CompletableFuture> response = api.refreshNFTMetadata(id, idempotencyKey); + CompletableFuture> response = + api.refreshNFTMetadata(id, xEndUserWalletId, idempotencyKey); } /** @@ -195,10 +198,12 @@ public void updateOwnershipTokensTest() throws ApiException { public void updateTokenOwnershipStatusTest() throws ApiException { UpdateTokenOwnershipStatusDto updateTokenOwnershipStatusDto = null; String id = null; + UUID xEndUserWalletId = null; String idempotencyKey = null; CompletableFuture> response = - api.updateTokenOwnershipStatus(updateTokenOwnershipStatusDto, id, idempotencyKey); + api.updateTokenOwnershipStatus( + updateTokenOwnershipStatusDto, id, xEndUserWalletId, idempotencyKey); } /** @@ -211,10 +216,12 @@ public void updateTokenOwnershipStatusTest() throws ApiException { @Test public void updateTokensOwnershipSpamTest() throws ApiException { List tokenOwnershipSpamUpdatePayload = null; + UUID xEndUserWalletId = null; String idempotencyKey = null; CompletableFuture> response = - api.updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload, idempotencyKey); + api.updateTokensOwnershipSpam( + tokenOwnershipSpamUpdatePayload, xEndUserWalletId, idempotencyKey); } /** @@ -227,9 +234,11 @@ public void updateTokensOwnershipSpamTest() throws ApiException { @Test public void updateTokensOwnershipStatusTest() throws ApiException { List tokenOwnershipStatusUpdatePayload = null; + UUID xEndUserWalletId = null; String idempotencyKey = null; CompletableFuture> response = - api.updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload, idempotencyKey); + api.updateTokensOwnershipStatus( + tokenOwnershipStatusUpdatePayload, xEndUserWalletId, idempotencyKey); } } diff --git a/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java b/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java index 7d5306cc..e71906c4 100644 --- a/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/Web3ConnectionsApiTest.java @@ -21,6 +21,7 @@ import com.fireblocks.sdk.model.GetFilterParameter; import com.fireblocks.sdk.model.RespondToConnectionRequest; import java.math.BigDecimal; +import java.util.UUID; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; import org.junit.Test; @@ -43,8 +44,9 @@ public class Web3ConnectionsApiTest { public void createTest() throws ApiException { CreateConnectionRequest createConnectionRequest = null; String idempotencyKey = null; + UUID xEndUserWalletId = null; CompletableFuture> response = - api.create(createConnectionRequest, idempotencyKey); + api.create(createConnectionRequest, idempotencyKey, xEndUserWalletId); } /** @@ -56,13 +58,14 @@ public void createTest() throws ApiException { */ @Test public void getTest() throws ApiException { + UUID xEndUserWalletId = null; String order = null; GetFilterParameter filter = null; String sort = null; BigDecimal pageSize = null; String next = null; CompletableFuture> response = - api.get(order, filter, sort, pageSize, next); + api.get(xEndUserWalletId, order, filter, sort, pageSize, next); } /** @@ -75,8 +78,9 @@ public void getTest() throws ApiException { @Test public void removeTest() throws ApiException { String id = null; + UUID xEndUserWalletId = null; - CompletableFuture> response = api.remove(id); + CompletableFuture> response = api.remove(id, xEndUserWalletId); } /** @@ -93,8 +97,9 @@ public void submitTest() throws ApiException { RespondToConnectionRequest respondToConnectionRequest = null; String id = null; String idempotencyKey = null; + UUID xEndUserWalletId = null; CompletableFuture> response = - api.submit(respondToConnectionRequest, id, idempotencyKey); + api.submit(respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId); } } diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java new file mode 100644 index 00000000..2eea2930 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/ComplianceResultStatusesEnumTest.java @@ -0,0 +1,25 @@ +/* + * 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 ComplianceResultStatusesEnum */ +public class ComplianceResultStatusesEnumTest { + /** Model tests for ComplianceResultStatusesEnum */ + @Test + public void testComplianceResultStatusesEnum() { + // TODO: test ComplianceResultStatusesEnum + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java new file mode 100644 index 00000000..c6d10999 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAccountTest.java @@ -0,0 +1,39 @@ +/* + * 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 EmbeddedWalletAccount */ +public class EmbeddedWalletAccountTest { + private final EmbeddedWalletAccount model = new EmbeddedWalletAccount(); + + /** Model tests for EmbeddedWalletAccount */ + @Test + public void testEmbeddedWalletAccount() { + // TODO: test EmbeddedWalletAccount + } + + /** Test the property 'accountId' */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** Test the property 'walletId' */ + @Test + public void walletIdTest() { + // TODO: test walletId + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java new file mode 100644 index 00000000..1bda3155 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAddressDetailsTest.java @@ -0,0 +1,123 @@ +/* + * 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 EmbeddedWalletAddressDetails */ +public class EmbeddedWalletAddressDetailsTest { + private final EmbeddedWalletAddressDetails model = new EmbeddedWalletAddressDetails(); + + /** Model tests for EmbeddedWalletAddressDetails */ + @Test + public void testEmbeddedWalletAddressDetails() { + // TODO: test EmbeddedWalletAddressDetails + } + + /** Test the property 'accountName' */ + @Test + public void accountNameTest() { + // TODO: test accountName + } + + /** Test the property 'accountId' */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** Test the property 'asset' */ + @Test + public void assetTest() { + // TODO: test asset + } + + /** Test the property 'address' */ + @Test + public void addressTest() { + // TODO: test address + } + + /** Test the property 'addressType' */ + @Test + public void addressTypeTest() { + // TODO: test addressType + } + + /** Test the property 'addressDescription' */ + @Test + public void addressDescriptionTest() { + // TODO: test addressDescription + } + + /** Test the property 'tag' */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** Test the property 'addressIndex' */ + @Test + public void addressIndexTest() { + // TODO: test addressIndex + } + + /** Test the property 'change' */ + @Test + public void changeTest() { + // TODO: test change + } + + /** Test the property 'coinType' */ + @Test + public void coinTypeTest() { + // TODO: test coinType + } + + /** Test the property 'customerRefId' */ + @Test + public void customerRefIdTest() { + // TODO: test customerRefId + } + + /** Test the property 'addressFormat' */ + @Test + public void addressFormatTest() { + // TODO: test addressFormat + } + + /** Test the property 'legacyAddress' */ + @Test + public void legacyAddressTest() { + // TODO: test legacyAddress + } + + /** Test the property 'paymentAddress' */ + @Test + public void paymentAddressTest() { + // TODO: test paymentAddress + } + + /** Test the property 'userDefined' */ + @Test + public void userDefinedTest() { + // TODO: test userDefined + } + + /** Test the property 'state' */ + @Test + public void stateTest() { + // TODO: test state + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java new file mode 100644 index 00000000..a10cfe50 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAlgoritmTest.java @@ -0,0 +1,33 @@ +/* + * 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 EmbeddedWalletAlgoritm */ +public class EmbeddedWalletAlgoritmTest { + private final EmbeddedWalletAlgoritm model = new EmbeddedWalletAlgoritm(); + + /** Model tests for EmbeddedWalletAlgoritm */ + @Test + public void testEmbeddedWalletAlgoritm() { + // TODO: test EmbeddedWalletAlgoritm + } + + /** Test the property 'algorithm' */ + @Test + public void algorithmTest() { + // TODO: test algorithm + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java new file mode 100644 index 00000000..ebe3340d --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetBalanceTest.java @@ -0,0 +1,81 @@ +/* + * 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 EmbeddedWalletAssetBalance */ +public class EmbeddedWalletAssetBalanceTest { + private final EmbeddedWalletAssetBalance model = new EmbeddedWalletAssetBalance(); + + /** Model tests for EmbeddedWalletAssetBalance */ + @Test + public void testEmbeddedWalletAssetBalance() { + // TODO: test EmbeddedWalletAssetBalance + } + + /** Test the property 'id' */ + @Test + public void idTest() { + // TODO: test id + } + + /** Test the property 'total' */ + @Test + public void totalTest() { + // TODO: test total + } + + /** Test the property 'available' */ + @Test + public void availableTest() { + // TODO: test available + } + + /** Test the property 'pending' */ + @Test + public void pendingTest() { + // TODO: test pending + } + + /** Test the property 'frozen' */ + @Test + public void frozenTest() { + // TODO: test frozen + } + + /** Test the property 'lockedAmount' */ + @Test + public void lockedAmountTest() { + // TODO: test lockedAmount + } + + /** Test the property 'blockHeight' */ + @Test + public void blockHeightTest() { + // TODO: test blockHeight + } + + /** Test the property 'blockHash' */ + @Test + public void blockHashTest() { + // TODO: test blockHash + } + + /** Test the property 'rewardInfo' */ + @Test + public void rewardInfoTest() { + // TODO: test rewardInfo + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java new file mode 100644 index 00000000..70e35e8c --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetResponseTest.java @@ -0,0 +1,129 @@ +/* + * 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 EmbeddedWalletAssetResponse */ +public class EmbeddedWalletAssetResponseTest { + private final EmbeddedWalletAssetResponse model = new EmbeddedWalletAssetResponse(); + + /** Model tests for EmbeddedWalletAssetResponse */ + @Test + public void testEmbeddedWalletAssetResponse() { + // TODO: test EmbeddedWalletAssetResponse + } + + /** Test the property 'id' */ + @Test + public void idTest() { + // TODO: test id + } + + /** Test the property 'symbol' */ + @Test + public void symbolTest() { + // TODO: test symbol + } + + /** Test the property 'name' */ + @Test + public void nameTest() { + // TODO: test name + } + + /** Test the property 'decimals' */ + @Test + public void decimalsTest() { + // TODO: test decimals + } + + /** Test the property 'networkProtocol' */ + @Test + public void networkProtocolTest() { + // TODO: test networkProtocol + } + + /** Test the property 'testnet' */ + @Test + public void testnetTest() { + // TODO: test testnet + } + + /** Test the property 'hasFee' */ + @Test + public void hasFeeTest() { + // TODO: test hasFee + } + + /** Test the property 'baseAsset' */ + @Test + public void baseAssetTest() { + // TODO: test baseAsset + } + + /** Test the property 'ethNetwork' */ + @Test + public void ethNetworkTest() { + // TODO: test ethNetwork + } + + /** Test the property 'ethContractAddress' */ + @Test + public void ethContractAddressTest() { + // TODO: test ethContractAddress + } + + /** Test the property 'issuerAddress' */ + @Test + public void issuerAddressTest() { + // TODO: test issuerAddress + } + + /** Test the property 'blockchainSymbol' */ + @Test + public void blockchainSymbolTest() { + // TODO: test blockchainSymbol + } + + /** Test the property 'deprecated' */ + @Test + public void deprecatedTest() { + // TODO: test deprecated + } + + /** Test the property 'coinType' */ + @Test + public void coinTypeTest() { + // TODO: test coinType + } + + /** Test the property 'blockchain' */ + @Test + public void blockchainTest() { + // TODO: test blockchain + } + + /** Test the property 'blockchainDisplayName' */ + @Test + public void blockchainDisplayNameTest() { + // TODO: test blockchainDisplayName + } + + /** Test the property 'algorithm' */ + @Test + public void algorithmTest() { + // TODO: test algorithm + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java new file mode 100644 index 00000000..6a346a56 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletAssetRewardInfoTest.java @@ -0,0 +1,33 @@ +/* + * 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 EmbeddedWalletAssetRewardInfo */ +public class EmbeddedWalletAssetRewardInfoTest { + private final EmbeddedWalletAssetRewardInfo model = new EmbeddedWalletAssetRewardInfo(); + + /** Model tests for EmbeddedWalletAssetRewardInfo */ + @Test + public void testEmbeddedWalletAssetRewardInfo() { + // TODO: test EmbeddedWalletAssetRewardInfo + } + + /** Test the property 'pendingRewards' */ + @Test + public void pendingRewardsTest() { + // TODO: test pendingRewards + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java new file mode 100644 index 00000000..b250cdc0 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest.java @@ -0,0 +1,46 @@ +/* + * 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 EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ +public class EmbeddedWalletDeviceKeySetupResponseSetupStatusInnerTest { + private final EmbeddedWalletDeviceKeySetupResponseSetupStatusInner model = + new EmbeddedWalletDeviceKeySetupResponseSetupStatusInner(); + + /** Model tests for EmbeddedWalletDeviceKeySetupResponseSetupStatusInner */ + @Test + public void testEmbeddedWalletDeviceKeySetupResponseSetupStatusInner() { + // TODO: test EmbeddedWalletDeviceKeySetupResponseSetupStatusInner + } + + /** Test the property 'algorithmName' */ + @Test + public void algorithmNameTest() { + // TODO: test algorithmName + } + + /** Test the property 'confirmed' */ + @Test + public void confirmedTest() { + // TODO: test confirmed + } + + /** Test the property 'backedUp' */ + @Test + public void backedUpTest() { + // TODO: test backedUp + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java new file mode 100644 index 00000000..07e83f6c --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceKeySetupResponseTest.java @@ -0,0 +1,52 @@ +/* + * 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 EmbeddedWalletDeviceKeySetupResponse */ +public class EmbeddedWalletDeviceKeySetupResponseTest { + private final EmbeddedWalletDeviceKeySetupResponse model = + new EmbeddedWalletDeviceKeySetupResponse(); + + /** Model tests for EmbeddedWalletDeviceKeySetupResponse */ + @Test + public void testEmbeddedWalletDeviceKeySetupResponse() { + // TODO: test EmbeddedWalletDeviceKeySetupResponse + } + + /** Test the property 'status' */ + @Test + public void statusTest() { + // TODO: test status + } + + /** Test the property 'deviceId' */ + @Test + public void deviceIdTest() { + // TODO: test deviceId + } + + /** Test the property 'enabled' */ + @Test + public void enabledTest() { + // TODO: test enabled + } + + /** Test the property 'setupStatus' */ + @Test + public void setupStatusTest() { + // TODO: test setupStatus + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java new file mode 100644 index 00000000..59f510c4 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletDeviceTest.java @@ -0,0 +1,45 @@ +/* + * 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 EmbeddedWalletDevice */ +public class EmbeddedWalletDeviceTest { + private final EmbeddedWalletDevice model = new EmbeddedWalletDevice(); + + /** Model tests for EmbeddedWalletDevice */ + @Test + public void testEmbeddedWalletDevice() { + // TODO: test EmbeddedWalletDevice + } + + /** Test the property 'deviceId' */ + @Test + public void deviceIdTest() { + // TODO: test deviceId + } + + /** Test the property 'enabled' */ + @Test + public void enabledTest() { + // TODO: test enabled + } + + /** Test the property 'physicalDeviceId' */ + @Test + public void physicalDeviceIdTest() { + // TODO: test physicalDeviceId + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java new file mode 100644 index 00000000..01a902f2 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupKeyTest.java @@ -0,0 +1,51 @@ +/* + * 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 EmbeddedWalletLatestBackupKey */ +public class EmbeddedWalletLatestBackupKeyTest { + private final EmbeddedWalletLatestBackupKey model = new EmbeddedWalletLatestBackupKey(); + + /** Model tests for EmbeddedWalletLatestBackupKey */ + @Test + public void testEmbeddedWalletLatestBackupKey() { + // TODO: test EmbeddedWalletLatestBackupKey + } + + /** Test the property 'deviceId' */ + @Test + public void deviceIdTest() { + // TODO: test deviceId + } + + /** Test the property 'publicKey' */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + + /** Test the property 'keyId' */ + @Test + public void keyIdTest() { + // TODO: test keyId + } + + /** Test the property 'algorithm' */ + @Test + public void algorithmTest() { + // TODO: test algorithm + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java new file mode 100644 index 00000000..88f0377b --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletLatestBackupResponseTest.java @@ -0,0 +1,46 @@ +/* + * 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 EmbeddedWalletLatestBackupResponse */ +public class EmbeddedWalletLatestBackupResponseTest { + private final EmbeddedWalletLatestBackupResponse model = + new EmbeddedWalletLatestBackupResponse(); + + /** Model tests for EmbeddedWalletLatestBackupResponse */ + @Test + public void testEmbeddedWalletLatestBackupResponse() { + // TODO: test EmbeddedWalletLatestBackupResponse + } + + /** Test the property 'passphraseId' */ + @Test + public void passphraseIdTest() { + // TODO: test passphraseId + } + + /** Test the property 'createdAt' */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** Test the property 'keys' */ + @Test + public void keysTest() { + // TODO: test keys + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java new file mode 100644 index 00000000..33ab6422 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAddressesResponseTest.java @@ -0,0 +1,40 @@ +/* + * 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 EmbeddedWalletPaginatedAddressesResponse */ +public class EmbeddedWalletPaginatedAddressesResponseTest { + private final EmbeddedWalletPaginatedAddressesResponse model = + new EmbeddedWalletPaginatedAddressesResponse(); + + /** Model tests for EmbeddedWalletPaginatedAddressesResponse */ + @Test + public void testEmbeddedWalletPaginatedAddressesResponse() { + // TODO: test EmbeddedWalletPaginatedAddressesResponse + } + + /** Test the property 'data' */ + @Test + public void dataTest() { + // TODO: test data + } + + /** Test the property 'next' */ + @Test + public void nextTest() { + // TODO: test next + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java new file mode 100644 index 00000000..dc388802 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedAssetsResponseTest.java @@ -0,0 +1,40 @@ +/* + * 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 EmbeddedWalletPaginatedAssetsResponse */ +public class EmbeddedWalletPaginatedAssetsResponseTest { + private final EmbeddedWalletPaginatedAssetsResponse model = + new EmbeddedWalletPaginatedAssetsResponse(); + + /** Model tests for EmbeddedWalletPaginatedAssetsResponse */ + @Test + public void testEmbeddedWalletPaginatedAssetsResponse() { + // TODO: test EmbeddedWalletPaginatedAssetsResponse + } + + /** Test the property 'data' */ + @Test + public void dataTest() { + // TODO: test data + } + + /** Test the property 'next' */ + @Test + public void nextTest() { + // TODO: test next + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java new file mode 100644 index 00000000..b9453e57 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletPaginatedWalletsResponseTest.java @@ -0,0 +1,40 @@ +/* + * 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 EmbeddedWalletPaginatedWalletsResponse */ +public class EmbeddedWalletPaginatedWalletsResponseTest { + private final EmbeddedWalletPaginatedWalletsResponse model = + new EmbeddedWalletPaginatedWalletsResponse(); + + /** Model tests for EmbeddedWalletPaginatedWalletsResponse */ + @Test + public void testEmbeddedWalletPaginatedWalletsResponse() { + // TODO: test EmbeddedWalletPaginatedWalletsResponse + } + + /** Test the property 'data' */ + @Test + public void dataTest() { + // TODO: test data + } + + /** Test the property 'next' */ + @Test + public void nextTest() { + // TODO: test next + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java new file mode 100644 index 00000000..0dec8a36 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletSetUpStatusTest.java @@ -0,0 +1,33 @@ +/* + * 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 EmbeddedWalletSetUpStatus */ +public class EmbeddedWalletSetUpStatusTest { + private final EmbeddedWalletSetUpStatus model = new EmbeddedWalletSetUpStatus(); + + /** Model tests for EmbeddedWalletSetUpStatus */ + @Test + public void testEmbeddedWalletSetUpStatus() { + // TODO: test EmbeddedWalletSetUpStatus + } + + /** Test the property 'status' */ + @Test + public void statusTest() { + // TODO: test status + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java new file mode 100644 index 00000000..adccd0b7 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/EmbeddedWalletTest.java @@ -0,0 +1,39 @@ +/* + * 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 EmbeddedWallet */ +public class EmbeddedWalletTest { + private final EmbeddedWallet model = new EmbeddedWallet(); + + /** Model tests for EmbeddedWallet */ + @Test + public void testEmbeddedWallet() { + // TODO: test EmbeddedWallet + } + + /** Test the property 'walletId' */ + @Test + public void walletIdTest() { + // TODO: test walletId + } + + /** Test the property 'enabled' */ + @Test + public void enabledTest() { + // TODO: test enabled + } +}