From c46a153cff0ab78c380d24df52947f900fcd111b Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Thu, 26 Feb 2026 12:07:59 +0000 Subject: [PATCH] Generated SDK #3859 --- .auto-changelog | 2 +- .github/workflows/draft-release-from-pr.yml | 10 +- .github/workflows/publish-maven.yml | 1 + .openapi-generator/FILES | 6 + README.md | 15 +- api/openapi.yaml | 236 +++++++++++++++--- docs/BlockchainsAssetsApi.md | 83 ++++++ docs/CollectionOwnershipResponse.md | 2 + docs/CreateQuote.md | 4 +- docs/CreateTokenRequestDto.md | 2 + docs/NetworkConnectionsApi.md | 18 +- docs/NftsApi.md | 2 +- docs/PersonalIdentification.md | 4 + docs/PersonalIdentificationType.md | 45 ++++ docs/QuoteFailure.md | 15 ++ docs/QuotesResponse.md | 3 +- docs/TokenOwnershipResponse.md | 2 + docs/TokenResponse.md | 2 + docs/TrLinkApi.md | 14 +- docs/TransactionRequest.md | 2 +- docs/TransactionRequestDestination.md | 2 +- docs/TransactionResponse.md | 2 +- docs/TransactionResponseDestination.md | 2 +- docs/UnmanagedWallet.md | 1 + docs/VaultsApi.md | 6 +- docs/WalletAsset.md | 2 +- .../sdk/api/BlockchainsAssetsApi.java | 52 ++++ .../sdk/api/NetworkConnectionsApi.java | 10 +- .../com/fireblocks/sdk/api/TrLinkApi.java | 24 +- .../com/fireblocks/sdk/api/VaultsApi.java | 8 +- .../model/CollectionOwnershipResponse.java | 6 +- .../com/fireblocks/sdk/model/CreateQuote.java | 4 +- .../sdk/model/CreateTokenRequestDto.java | 88 ++++++- .../sdk/model/PersonalIdentification.java | 175 ++++++++++++- .../sdk/model/PersonalIdentificationType.java | 114 +++++++++ .../fireblocks/sdk/model/QuoteFailure.java | 223 +++++++++++++++++ .../fireblocks/sdk/model/QuotesResponse.java | 92 ++++++- .../java/com/fireblocks/sdk/model/Side.java | 2 +- .../sdk/model/TokenOwnershipResponse.java | 6 +- .../fireblocks/sdk/model/TokenResponse.java | 6 +- .../sdk/model/TransactionRequest.java | 4 +- .../model/TransactionRequestDestination.java | 4 +- .../sdk/model/TransactionResponse.java | 4 +- .../model/TransactionResponseDestination.java | 4 +- .../fireblocks/sdk/model/UnmanagedWallet.java | 49 +++- .../com/fireblocks/sdk/model/WalletAsset.java | 8 +- .../sdk/api/BlockchainsAssetsApiTest.java | 14 ++ .../sdk/api/NetworkConnectionsApiTest.java | 10 +- .../com/fireblocks/sdk/api/TrLinkApiTest.java | 28 ++- .../sdk/model/CreateTokenRequestDtoTest.java | 12 + .../sdk/model/IdentificationTest.java | 24 ++ .../sdk/model/PersonalIdentificationTest.java | 24 ++ .../model/PersonalIdentificationTypeTest.java | 25 ++ .../sdk/model/QuoteFailureTest.java | 45 ++++ .../sdk/model/QuotesResponseTest.java | 6 + .../sdk/model/UnmanagedWalletTest.java | 6 + 56 files changed, 1410 insertions(+), 150 deletions(-) create mode 100644 docs/PersonalIdentificationType.md create mode 100644 docs/QuoteFailure.md create mode 100644 src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java create mode 100644 src/main/java/com/fireblocks/sdk/model/QuoteFailure.java create mode 100644 src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java diff --git a/.auto-changelog b/.auto-changelog index 8fb54f02..05dc0059 100644 --- a/.auto-changelog +++ b/.auto-changelog @@ -6,6 +6,6 @@ "backfillLimit": 3, "hideCredit": true, "replaceText": { - "\\[([^\\]]+)\\]\\(https://github.com/[^/]+/[^/]+/compare/[^)]+\\)": "[$1](https://github.com/fireblocks/ts-sdk/releases/tag/$1)" + "\\[([^\\]]+)\\]\\(https://github.com/[^/]+/([^/]+)/compare/[^)]+\\)": "[$1](https://github.com/fireblocks/$2/releases/tag/$1)" } } \ No newline at end of file diff --git a/.github/workflows/draft-release-from-pr.yml b/.github/workflows/draft-release-from-pr.yml index f547cbcf..63de49d3 100644 --- a/.github/workflows/draft-release-from-pr.yml +++ b/.github/workflows/draft-release-from-pr.yml @@ -39,13 +39,13 @@ jobs: LAST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName') if [[ -z "$LAST_TAG" || "$LAST_TAG" == "null" ]]; then - echo "No existing release found, starting from v0.1.0" - echo "LAST_TAG=v0.1.0" >> $GITHUB_ENV - else - echo "Found latest release: $LAST_TAG" - echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV + echo "No existing release found. A release tag is required to calculate the next version." + exit 1 fi + echo "Found latest release: $LAST_TAG" + echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV + - name: Calculate next version from labels run: | V="${LAST_TAG#v}" diff --git a/.github/workflows/publish-maven.yml b/.github/workflows/publish-maven.yml index a68ef7e5..17bbcb91 100644 --- a/.github/workflows/publish-maven.yml +++ b/.github/workflows/publish-maven.yml @@ -42,6 +42,7 @@ jobs: echo "finished configuration" bump-my-version bump --config-file .bump_version.toml --current-version 0.0.0 --new-version $tag echo "bumpversion finished" + auto-changelog git add . git commit -m "release $tag" git push diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fad4ea45..d735cc7a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -567,6 +567,7 @@ docs/PeerType.md docs/PersonalEntityTypeEnum.md docs/PersonalIdentification.md docs/PersonalIdentificationFullName.md +docs/PersonalIdentificationType.md docs/PixAddress.md docs/PixDestination.md docs/PixPaymentInfo.md @@ -606,6 +607,7 @@ docs/QuoteExecutionStep.md docs/QuoteExecutionTypeDetails.md docs/QuoteExecutionWithRequoteRequestDetails.md docs/QuoteExecutionWithRequoteResponseDetails.md +docs/QuoteFailure.md docs/QuotePropertiesDetails.md docs/QuoteTypeEnum.md docs/QuotesResponse.md @@ -1633,6 +1635,7 @@ src/main/java/com/fireblocks/sdk/model/PeerType.java src/main/java/com/fireblocks/sdk/model/PersonalEntityTypeEnum.java src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java src/main/java/com/fireblocks/sdk/model/PersonalIdentificationFullName.java +src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java src/main/java/com/fireblocks/sdk/model/PixAddress.java src/main/java/com/fireblocks/sdk/model/PixDestination.java src/main/java/com/fireblocks/sdk/model/PixPaymentInfo.java @@ -1670,6 +1673,7 @@ src/main/java/com/fireblocks/sdk/model/QuoteExecutionStep.java src/main/java/com/fireblocks/sdk/model/QuoteExecutionTypeDetails.java src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetails.java src/main/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetails.java +src/main/java/com/fireblocks/sdk/model/QuoteFailure.java src/main/java/com/fireblocks/sdk/model/QuotePropertiesDetails.java src/main/java/com/fireblocks/sdk/model/QuoteTypeEnum.java src/main/java/com/fireblocks/sdk/model/QuotesResponse.java @@ -2658,6 +2662,7 @@ src/test/java/com/fireblocks/sdk/model/PeerTypeTest.java src/test/java/com/fireblocks/sdk/model/PersonalEntityTypeEnumTest.java src/test/java/com/fireblocks/sdk/model/PersonalIdentificationFullNameTest.java src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java +src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java src/test/java/com/fireblocks/sdk/model/PixAddressTest.java src/test/java/com/fireblocks/sdk/model/PixDestinationTest.java src/test/java/com/fireblocks/sdk/model/PixPaymentInfoTest.java @@ -2694,6 +2699,7 @@ src/test/java/com/fireblocks/sdk/model/QuoteExecutionStepTest.java src/test/java/com/fireblocks/sdk/model/QuoteExecutionTypeDetailsTest.java src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteRequestDetailsTest.java src/test/java/com/fireblocks/sdk/model/QuoteExecutionWithRequoteResponseDetailsTest.java +src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java src/test/java/com/fireblocks/sdk/model/QuotePropertiesDetailsTest.java src/test/java/com/fireblocks/sdk/model/QuoteTest.java src/test/java/com/fireblocks/sdk/model/QuoteTypeEnumTest.java diff --git a/README.md b/README.md index de1507c6..599e3e3c 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,7 @@ Class | Method | HTTP request | Description *ApiUserApi* | [**createApiUser**](docs/ApiUserApi.md#createApiUser) | **POST** /management/api_users | Create API Key *ApiUserApi* | [**getApiUsers**](docs/ApiUserApi.md#getApiUsers) | **GET** /management/api_users | Get API Keys *AuditLogsApi* | [**getAuditLogs**](docs/AuditLogsApi.md#getAuditLogs) | **GET** /management/audit_logs | Get audit logs +*BlockchainsAssetsApi* | [**deleteAsset**](docs/BlockchainsAssetsApi.md#deleteAsset) | **DELETE** /assets/{id} | Delete Asset by id *BlockchainsAssetsApi* | [**getAsset**](docs/BlockchainsAssetsApi.md#getAsset) | **GET** /assets/{id} | Get an asset *BlockchainsAssetsApi* | [**getBlockchain**](docs/BlockchainsAssetsApi.md#getBlockchain) | **GET** /blockchains/{id} | Get a Blockchain by ID *BlockchainsAssetsApi* | [**getSupportedAssets**](docs/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List assets (Legacy) @@ -277,13 +278,13 @@ Class | Method | HTTP request | Description *NetworkConnectionsApi* | [**checkThirdPartyRouting**](docs/NetworkConnectionsApi.md#checkThirdPartyRouting) | **GET** /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation *NetworkConnectionsApi* | [**createNetworkConnection**](docs/NetworkConnectionsApi.md#createNetworkConnection) | **POST** /network_connections | Create a new network connection *NetworkConnectionsApi* | [**createNetworkId**](docs/NetworkConnectionsApi.md#createNetworkId) | **POST** /network_ids | Creates a new Network ID -*NetworkConnectionsApi* | [**deleteNetworkConnection**](docs/NetworkConnectionsApi.md#deleteNetworkConnection) | **DELETE** /network_connections/{connectionId} | Deletes a network connection by ID -*NetworkConnectionsApi* | [**deleteNetworkId**](docs/NetworkConnectionsApi.md#deleteNetworkId) | **DELETE** /network_ids/{networkId} | Deletes specific network ID. +*NetworkConnectionsApi* | [**deleteNetworkConnection**](docs/NetworkConnectionsApi.md#deleteNetworkConnection) | **DELETE** /network_connections/{connectionId} | Delete a network connection by ID +*NetworkConnectionsApi* | [**deleteNetworkId**](docs/NetworkConnectionsApi.md#deleteNetworkId) | **DELETE** /network_ids/{networkId} | Delete specific network ID. *NetworkConnectionsApi* | [**getNetwork**](docs/NetworkConnectionsApi.md#getNetwork) | **GET** /network_connections/{connectionId} | Get a network connection *NetworkConnectionsApi* | [**getNetworkConnections**](docs/NetworkConnectionsApi.md#getNetworkConnections) | **GET** /network_connections | List network connections -*NetworkConnectionsApi* | [**getNetworkId**](docs/NetworkConnectionsApi.md#getNetworkId) | **GET** /network_ids/{networkId} | Returns specific network ID. +*NetworkConnectionsApi* | [**getNetworkId**](docs/NetworkConnectionsApi.md#getNetworkId) | **GET** /network_ids/{networkId} | Return specific network ID. *NetworkConnectionsApi* | [**getNetworkIds**](docs/NetworkConnectionsApi.md#getNetworkIds) | **GET** /network_ids | Get all network IDs -*NetworkConnectionsApi* | [**getRoutingPolicyAssetGroups**](docs/NetworkConnectionsApi.md#getRoutingPolicyAssetGroups) | **GET** /network_ids/routing_policy_asset_groups | Returns all enabled routing policy asset groups +*NetworkConnectionsApi* | [**getRoutingPolicyAssetGroups**](docs/NetworkConnectionsApi.md#getRoutingPolicyAssetGroups) | **GET** /network_ids/routing_policy_asset_groups | Return all enabled routing policy asset groups *NetworkConnectionsApi* | [**searchNetworkIds**](docs/NetworkConnectionsApi.md#searchNetworkIds) | **GET** /network_ids/search | Get both local IDs and discoverable remote IDs *NetworkConnectionsApi* | [**setNetworkIdDiscoverability**](docs/NetworkConnectionsApi.md#setNetworkIdDiscoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. *NetworkConnectionsApi* | [**setNetworkIdName**](docs/NetworkConnectionsApi.md#setNetworkIdName) | **PATCH** /network_ids/{networkId}/set_name | Update network ID's name. @@ -404,7 +405,7 @@ Class | Method | HTTP request | Description *TrLinkApi* | [**getTRLinkCustomerIntegrations**](docs/TrLinkApi.md#getTRLinkCustomerIntegrations) | **GET** /screening/trlink/customers/{customerId}/integrations | Get customer integrations *TrLinkApi* | [**getTRLinkCustomers**](docs/TrLinkApi.md#getTRLinkCustomers) | **GET** /screening/trlink/customers | Get all customers *TrLinkApi* | [**getTRLinkIntegrationPublicKey**](docs/TrLinkApi.md#getTRLinkIntegrationPublicKey) | **GET** /screening/trlink/customers/integration/{customerIntegrationId}/public_key | Get public key for PII encryption -*TrLinkApi* | [**getTRLinkPartners**](docs/TrLinkApi.md#getTRLinkPartners) | **GET** /screening/trlink/partners | List available TRLink partners +*TrLinkApi* | [**getTRLinkPartners**](docs/TrLinkApi.md#getTRLinkPartners) | **GET** /screening/trlink/partners | List available TRSupport partners *TrLinkApi* | [**getTRLinkPolicy**](docs/TrLinkApi.md#getTRLinkPolicy) | **GET** /screening/trlink/policy | Get TRLink policy *TrLinkApi* | [**getTRLinkSupportedAsset**](docs/TrLinkApi.md#getTRLinkSupportedAsset) | **GET** /screening/trlink/customers/integration/{customerIntegrationId}/assets/{assetId} | Get supported asset by ID *TrLinkApi* | [**getTRLinkTrmById**](docs/TrLinkApi.md#getTRLinkTrmById) | **GET** /screening/trlink/customers/integration/{customerIntegrationId}/trm/{trmId} | Get TRM by ID @@ -459,7 +460,7 @@ Class | Method | HTTP request | Description *VaultsApi* | [**getAssetWallets**](docs/VaultsApi.md#getAssetWallets) | **GET** /vault/asset_wallets | Get vault wallets (Paginated) *VaultsApi* | [**getCreateMultipleDepositAddressesJobStatus**](docs/VaultsApi.md#getCreateMultipleDepositAddressesJobStatus) | **GET** /vault/accounts/addresses/bulk/{jobId} | Get the job status of the bulk deposit address creation *VaultsApi* | [**getCreateMultipleVaultAccountsJobStatus**](docs/VaultsApi.md#getCreateMultipleVaultAccountsJobStatus) | **GET** /vault/accounts/bulk/{jobId} | Get job status of bulk creation of new vault accounts -*VaultsApi* | [**getMaxBipIndexUsed**](docs/VaultsApi.md#getMaxBipIndexUsed) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_bip_index_used | Get maximum BIP44 index used +*VaultsApi* | [**getMaxBipIndexUsed**](docs/VaultsApi.md#getMaxBipIndexUsed) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used | Get maximum BIP44 index used *VaultsApi* | [**getMaxSpendableAmount**](docs/VaultsApi.md#getMaxSpendableAmount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get max spendable amount in a transaction *VaultsApi* | [**getPagedVaultAccounts**](docs/VaultsApi.md#getPagedVaultAccounts) | **GET** /vault/accounts_paged | Get vault accounts (Paginated) *VaultsApi* | [**getPublicKeyInfo**](docs/VaultsApi.md#getPublicKeyInfo) | **GET** /vault/public_key_info | Get the public key for a derivation path @@ -1037,6 +1038,7 @@ Class | Method | HTTP request | Description - [PersonalEntityTypeEnum](docs/PersonalEntityTypeEnum.md) - [PersonalIdentification](docs/PersonalIdentification.md) - [PersonalIdentificationFullName](docs/PersonalIdentificationFullName.md) + - [PersonalIdentificationType](docs/PersonalIdentificationType.md) - [PixAddress](docs/PixAddress.md) - [PixDestination](docs/PixDestination.md) - [PixPaymentInfo](docs/PixPaymentInfo.md) @@ -1074,6 +1076,7 @@ Class | Method | HTTP request | Description - [QuoteExecutionTypeDetails](docs/QuoteExecutionTypeDetails.md) - [QuoteExecutionWithRequoteRequestDetails](docs/QuoteExecutionWithRequoteRequestDetails.md) - [QuoteExecutionWithRequoteResponseDetails](docs/QuoteExecutionWithRequoteResponseDetails.md) + - [QuoteFailure](docs/QuoteFailure.md) - [QuotePropertiesDetails](docs/QuotePropertiesDetails.md) - [QuoteTypeEnum](docs/QuoteTypeEnum.md) - [QuotesResponse](docs/QuotesResponse.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 6602e19e..463d661f 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -174,9 +174,10 @@ paths: schema: type: string style: form - - description: "Specifying minAmountThreshold will filter accounts with balances\ - \ greater than this value, otherwise, it will return all accounts. The amount\ - \ set in this parameter is the native asset amount and not its USD value." + - description: "Specifying minAmountThreshold will filter accounts whose total\ + \ balance is greater than this value; otherwise, it returns all accounts.\ + \ The amount set in this parameter represents the native asset amount, not\ + \ its USD value." explode: true in: query name: minAmountThreshold @@ -1591,7 +1592,7 @@ paths: \ asset_id, manual_signging);" x-accepts: - application/json - /vault/accounts/{vaultAccountId}/{assetId}/max_bip_index_used: + /vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used: get: description: Retrieves the maximum BIP44 address index and change address index used for a specific asset in a vault account (BIP44 standard). @@ -6203,7 +6204,7 @@ paths: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Deletes a network connection by ID + summary: Delete a network connection by ID tags: - Network connections x-rate-limit-category: write @@ -6333,7 +6334,7 @@ paths: x-accepts: - application/json post: - description: Creates a new Network ID. + description: Create a new Network ID. operationId: createNetworkId parameters: - description: "A unique identifier for the request. If the request is sent\ @@ -6411,7 +6412,7 @@ paths: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Returns all enabled routing policy asset groups + summary: Return all enabled routing policy asset groups tags: - Network connections x-rate-limit-category: query @@ -6561,7 +6562,7 @@ paths: description: Network ID default: $ref: "#/components/responses/Error" - summary: Deletes specific network ID. + summary: Delete specific network ID. tags: - Network connections x-rate-limit-category: write @@ -6613,7 +6614,7 @@ paths: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Returns specific network ID. + summary: Return specific network ID. tags: - Network connections x-rate-limit-category: query @@ -9472,6 +9473,51 @@ paths: x-accepts: - application/json /assets/{id}: + delete: + description: | + Delete Asset by id + operationId: deleteAsset + parameters: + - description: The ID of the asset to delete + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: OK + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Delete Asset by id + tags: + - Blockchains & assets + x-rate-limit-category: read + x-readme: + code-samples: + - language: typescript + code: "const response: Promise> = fireblocks.blockchainsAssets.deleteAsset(blockchainsAssetsApiDeleteAssetRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: CompletableFuture> response = fireblocks.blockchainsAssets().deleteAsset(id); + name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.blockchains_&_assets.delete_asset(id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.blockchainsAssets.deleteAsset(blockchainsAssetsApiDeleteAssetRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.blockchainsAssets().deleteAsset(id); + - lang: Python + source: response = fireblocks.blockchains_&_assets.delete_asset(id); + x-accepts: + - application/json get: description: | Returns an asset by ID or legacyID.
@@ -20265,6 +20311,8 @@ paths: - KLAY_KAIA_TEST - APECHAIN - APECHAIN_TEST + - CRONOS + - CRONOS_TEST type: string style: form - description: A comma separated list of Vault Account IDs. Up to 100 are allowed @@ -22923,7 +22971,7 @@ paths: - application/json /screening/trlink/partners: get: - description: "Retrieves a list of all available Travel Rule Link integration\ + description: "Retrieves a list of all available Travel Rule Support integration\ \ partners. Partners provide Travel Rule compliance services such as VASP\ \ discovery, TRM exchange, and PII encryption." operationId: getTRLinkPartners @@ -22936,7 +22984,7 @@ paths: description: List of partners retrieved successfully default: $ref: "#/components/responses/Error" - summary: List available TRLink partners + summary: List available TRSupport partners tags: - TRLink x-rate-limit-category: query @@ -23007,9 +23055,9 @@ paths: x-accepts: - application/json post: - description: Creates a new customer (legal entity/VASP) for TRLink Travel Rule - compliance operations. The customer represents your organization in the Travel - Rule network and contains IVMS101-compliant identity information. + description: Creates a new customer (legal entity/VASP) for TRSupport Travel + Rule compliance operations. The customer represents your organization in the + Travel Rule network and contains IVMS101-compliant identity information. operationId: createTRLinkCustomer parameters: - description: "A unique identifier for the request. If the request is sent\ @@ -23244,7 +23292,7 @@ paths: - application/json /screening/trlink/customers/{customerId}/integrations: get: - description: Retrieves all TRLink integrations for a specific customer. Returns + description: Retrieves all TRSupport integrations for a specific customer. Returns a list of partner integrations configured for Travel Rule compliance. operationId: getTRLinkCustomerIntegrations parameters: @@ -23363,7 +23411,7 @@ paths: - application/json /screening/trlink/customers/integration: post: - description: Creates a new TRLink integration for a customer. This establishes + description: Creates a new TRSupport integration for a customer. This establishes a connection placeholder between a customer and a Travel Rule partner. Use the connect endpoint to provide credentials after creation. operationId: createTRLinkIntegration @@ -24323,11 +24371,11 @@ paths: - application/json /screening/trlink/policy: get: - description: "Retrieves the complete TRLink policy for the authenticated tenant,\ - \ including pre-screening rules, post-screening rules, and missing TRM rules.\ - \ Pre-screening rules determine whether transactions should be screened. Post-screening\ - \ rules determine actions based on screening results. Missing TRM rules handle\ - \ cases when screening data is unavailable." + description: "Retrieves the complete TRSupport policy for the authenticated\ + \ tenant, including pre-screening rules, post-screening rules, and missing\ + \ TRM rules. Pre-screening rules determine whether transactions should be\ + \ screened. Post-screening rules determine actions based on screening results.\ + \ Missing TRM rules handle cases when screening data is unavailable." operationId: getTRLinkPolicy responses: "200": @@ -32272,7 +32320,7 @@ components: address: address balance: balance id: id - tag: true + tag: tag activationTime: activationTime status: WAITING_FOR_APPROVAL properties: @@ -32287,25 +32335,26 @@ components: address: type: string tag: - type: boolean + type: string activationTime: type: string type: object UnmanagedWallet: example: + test2: true assets: - lockedAmount: lockedAmount address: address balance: balance id: id - tag: true + tag: tag activationTime: activationTime status: WAITING_FOR_APPROVAL - lockedAmount: lockedAmount address: address balance: balance id: id - tag: true + tag: tag activationTime: activationTime status: WAITING_FOR_APPROVAL test: true @@ -32325,11 +32374,14 @@ components: type: array test: type: boolean + test2: + type: boolean required: - assets - id - name - test + - test2 type: object GetInternalWalletsResponse: items: @@ -32352,19 +32404,20 @@ components: next: next total: 0.8008281904610115 data: + test2: true assets: - lockedAmount: lockedAmount address: address balance: balance id: id - tag: true + tag: tag activationTime: activationTime status: WAITING_FOR_APPROVAL - lockedAmount: lockedAmount address: address balance: balance id: id - tag: true + tag: tag activationTime: activationTime status: WAITING_FOR_APPROVAL test: true @@ -34726,7 +34779,7 @@ components: type: string travelRuleMessageId: description: The ID of the travel rule message from any travel rule provider. - Used for travel rule linking functionality to associate transactions + Used for travel rule supporting functionality to associate transactions with existing travel rule messages. example: trm_12345678-1234-1234-1234-123456789012 type: string @@ -37872,7 +37925,7 @@ components: type: string travelRuleMessageId: description: The ID of the travel rule message from any travel rule provider. - Used for travel rule linking functionality to associate transactions + Used for travel rule supporting functionality to associate transactions with existing travel rule messages. example: trm_12345678-1234-1234-1234-123456789012 type: string @@ -38155,8 +38208,8 @@ components: $ref: "#/components/schemas/DestinationTransferPeerPath" travelRuleMessageId: description: The ID of the travel rule message from any travel rule provider. - Used for travel rule linking functionality to associate transactions with - existing travel rule messages. + Used for travel rule supporting functionality to associate transactions + with existing travel rule messages. example: trm_12345678-1234-1234-1234-123456789012 type: string customerRefId: @@ -41955,8 +42008,8 @@ components: $ref: "#/components/schemas/TravelRuleCreateTransactionRequest" travelRuleMessageId: description: The ID of the travel rule message from any travel rule provider. - Used for travel rule linking functionality to associate transactions with - existing travel rule messages. + Used for travel rule supporting functionality to associate transactions + with existing travel rule messages. example: trm_12345678-1234-1234-1234-123456789012 type: string autoStaking: @@ -48534,11 +48587,13 @@ components: type: object CreateTokenRequestDto: example: + txNote: Token creation transaction for new stablecoin assetId: ETH_TEST5 displayName: displayName useGasless: false fee: "2000" vaultAccountId: "0" + externalId: 0192e4f5-924e-7bb9-8e5b-c748270feb38 feeLevel: MEDIUM blockchainId: B7QG017M createParams: @@ -48604,6 +48659,18 @@ components: - HIGH example: MEDIUM type: string + txNote: + description: Custom note that describes the transaction at your Fireblocks + workspace. This note will be visible in the Fireblocks UI and in the transaction + details and not on the blockchain. + example: Token creation transaction for new stablecoin + type: string + externalId: + description: External id that can be used to identify the transaction in + your system. The unique identifier of the transaction outside of Fireblocks + with max length of 255 characters + example: 0192e4f5-924e-7bb9-8e5b-c748270feb38 + type: string required: - createParams - vaultAccountId @@ -52482,7 +52549,7 @@ components: - type type: object Side: - description: Side of the order + description: "BUY: receive base / pay quote; SELL: give base / receive quote." enum: - BUY - SELL @@ -52513,8 +52580,10 @@ components: $ref: "#/components/schemas/CreateQuote_scope_inner" type: array baseAssetId: + description: The asset you receive on BUY / give on SELL. type: string quoteAssetId: + description: The counter asset used to pay/receive. type: string baseAmount: description: The amount to convert from @@ -52763,6 +52832,23 @@ components: oneOf: - $ref: "#/components/schemas/CommittedQuoteType" - $ref: "#/components/schemas/IndicativeQuoteType" + QuoteFailure: + properties: + providerId: + description: Identifier of the provider for which the quote request failed. + example: BRIDGE + type: string + accountId: + description: Identifier of the account for which the quote request failed + (optional). + example: acc_9f4e2d8b1c6a5e73 + type: string + error: + $ref: "#/components/schemas/TradingErrorSchema" + required: + - error + - providerId + type: object QuotesResponse: example: quotes: @@ -52791,11 +52877,32 @@ components: assetId: USDC amountType: FIXED amount: "2.50" + quoteFailures: + - providerId: BRIDGE + accountId: acc_9f4e2d8b1c6a5e73 + error: + code: 3107 + message: This trading pair is not supported by the provider. + - providerId: UNISWAP + error: + code: 3101 + message: Provider not found. + descriptor: + providerId: UNISWAP properties: quotes: items: $ref: "#/components/schemas/Quote" type: array + quoteFailures: + description: List of partial failures encountered while requesting quotes. + Empty when all quote attempts succeed. + items: + $ref: "#/components/schemas/QuoteFailure" + type: array + required: + - quoteFailures + - quotes type: object OrderStatus: enum: @@ -53139,6 +53246,45 @@ components: - streetName - subdivision type: object + PersonalIdentificationType: + description: "Type of identification document. Acceptable values are: - 'NIN_SLIP_CARD':\ + \ National Identification Number (NIN) Slip Card - temporary identification\ + \ card issued in Nigeria - 'BVN': Bank Verification Number - unique identity\ + \ number for bank account holders in Nigeria - 'ID_CARD': General national\ + \ identity card - 'ID_BOOK': Identity book or booklet format identification\ + \ document - 'NATIONAL_ID': National identity document issued by government\ + \ authorities - 'ALIEN_CARD': Alien registration card for foreign nationals\ + \ - 'PASSPORT': International travel document and proof of identity - 'ECOWAS_CARD':\ + \ Economic Community of West African States identification card - 'RWANDA_CARD':\ + \ Rwandan national identification card - 'DRIVERS_LICENSE': Driver's license\ + \ or driving permit - 'RESIDENT_CARD': Resident permit or permanent resident\ + \ card - 'VOTER_ID': Voter identification card used for electoral registration\ + \ - 'HEALTH_INSURANCE_ID': Health insurance identification card - 'GHANA_CARD':\ + \ Ghana Card - national identification card issued in Ghana - 'REFUGEE_ID':\ + \ Refugee identification document - 'SSNIT': Social Security and National\ + \ Insurance Trust ID - social security number in Ghana - 'NON_CITIZEN_ID':\ + \ Identification document for non-citizens or foreign residents - 'NATIONAL_REGISTRATION_CARD':\ + \ National registration card issued by national registration authority" + enum: + - NIN_SLIP_CARD + - BVN + - ID_CARD + - ID_BOOK + - NATIONAL_ID + - ALIEN_CARD + - PASSPORT + - ECOWAS_CARD + - RWANDA_CARD + - DRIVERS_LICENSE + - RESIDENT_CARD + - VOTER_ID + - HEALTH_INSURANCE_ID + - GHANA_CARD + - REFUGEE_ID + - SSNIT + - NON_CITIZEN_ID + - NATIONAL_REGISTRATION_CARD + type: string PersonalIdentification: example: externalReferenceId: person_ref_7f3e2d1c4b8a5e9f @@ -53158,6 +53304,10 @@ components: country: US email: alexander.johnson@example.com phone: "+14155551234" + idNumber: "12345678901" + idType: PASSPORT + additionalIdNumber: BVN987654321 + additionalIdType: BVN properties: externalReferenceId: type: string @@ -53180,6 +53330,18 @@ components: example: "+14155551234" pattern: "^\\+[1-9]\\d{1,14}$" type: string + idNumber: + description: The identification number corresponding to the primary identification + document type specified in idType + type: string + idType: + $ref: "#/components/schemas/PersonalIdentificationType" + additionalIdNumber: + description: The identification number corresponding to the additional identification + document type specified in additionalIdType + type: string + additionalIdType: + $ref: "#/components/schemas/PersonalIdentificationType" required: - dateOfBirth - entityType @@ -54473,6 +54635,8 @@ components: - KLAY_KAIA_TEST - APECHAIN - APECHAIN_TEST + - CRONOS + - CRONOS_TEST type: string description: type: string @@ -54638,6 +54802,8 @@ components: - KLAY_KAIA_TEST - APECHAIN - APECHAIN_TEST + - CRONOS + - CRONOS_TEST type: string description: type: string @@ -54741,6 +54907,8 @@ components: - KLAY_KAIA_TEST - APECHAIN - APECHAIN_TEST + - CRONOS + - CRONOS_TEST type: string contractAddress: description: Collection contract standard diff --git a/docs/BlockchainsAssetsApi.md b/docs/BlockchainsAssetsApi.md index 78d261a2..963fad73 100644 --- a/docs/BlockchainsAssetsApi.md +++ b/docs/BlockchainsAssetsApi.md @@ -4,6 +4,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| +| [**deleteAsset**](BlockchainsAssetsApi.md#deleteAsset) | **DELETE** /assets/{id} | Delete Asset by id | | [**getAsset**](BlockchainsAssetsApi.md#getAsset) | **GET** /assets/{id} | Get an asset | | [**getBlockchain**](BlockchainsAssetsApi.md#getBlockchain) | **GET** /blockchains/{id} | Get a Blockchain by ID | | [**getSupportedAssets**](BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List assets (Legacy) | @@ -15,6 +16,88 @@ All URIs are relative to https://developers.fireblocks.com/reference/ +## deleteAsset + +> CompletableFuture> deleteAsset deleteAsset(id) + +Delete Asset by id + +Delete Asset by id + +### 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.BlockchainsAssetsApi; +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 id = "id_example"; // String | The ID of the asset to delete + try { + CompletableFuture> response = fireblocks.blockchainsAssets().deleteAsset(id); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling BlockchainsAssetsApi#deleteAsset"); + 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 BlockchainsAssetsApi#deleteAsset"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **id** | **String**| The ID of the asset to delete | | + +### 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 | +|-------------|-------------|------------------| +| **204** | OK | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getAsset > CompletableFuture> getAsset getAsset(id, idempotencyKey) diff --git a/docs/CollectionOwnershipResponse.md b/docs/CollectionOwnershipResponse.md index f956974c..74a05b84 100644 --- a/docs/CollectionOwnershipResponse.md +++ b/docs/CollectionOwnershipResponse.md @@ -45,6 +45,8 @@ | KLAY_KAIA_TEST | "KLAY_KAIA_TEST" | | APECHAIN | "APECHAIN" | | APECHAIN_TEST | "APECHAIN_TEST" | +| CRONOS | "CRONOS" | +| CRONOS_TEST | "CRONOS_TEST" | diff --git a/docs/CreateQuote.md b/docs/CreateQuote.md index 093addb2..5213f2d0 100644 --- a/docs/CreateQuote.md +++ b/docs/CreateQuote.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**scope** | [**List<CreateQuoteScopeInner>**](CreateQuoteScopeInner.md) | | | -|**baseAssetId** | **String** | | | -|**quoteAssetId** | **String** | | | +|**baseAssetId** | **String** | The asset you receive on BUY / give on SELL. | | +|**quoteAssetId** | **String** | The counter asset used to pay/receive. | | |**baseAmount** | **String** | The amount to convert from | | |**slippageBps** | **BigDecimal** | Slippage tolerance in basis points (bps) for defi quotes - 1 is 0.01% and 10000 is 100% | [optional] | |**settlement** | [**DVPSettlement**](DVPSettlement.md) | | [optional] | diff --git a/docs/CreateTokenRequestDto.md b/docs/CreateTokenRequestDto.md index c32627fd..0fca08d5 100644 --- a/docs/CreateTokenRequestDto.md +++ b/docs/CreateTokenRequestDto.md @@ -15,6 +15,8 @@ |**useGasless** | **Boolean** | Indicates whether the token should be created in a gasless manner, utilizing the ERC-2771 standard. When set to true, the transaction will be relayed by a designated relayer. The workspace must be configured to use Fireblocks gasless relay. | [optional] | |**fee** | **String** | Max fee amount for the write function transaction. interchangeable with the 'feeLevel' field | [optional] | |**feeLevel** | [**FeeLevelEnum**](#FeeLevelEnum) | Fee level for the write function transaction. interchangeable with the 'fee' field | [optional] | +|**txNote** | **String** | Custom note that describes the transaction at your Fireblocks workspace. This note will be visible in the Fireblocks UI and in the transaction details and not on the blockchain. | [optional] | +|**externalId** | **String** | External id that can be used to identify the transaction in your system. The unique identifier of the transaction outside of Fireblocks with max length of 255 characters | [optional] | diff --git a/docs/NetworkConnectionsApi.md b/docs/NetworkConnectionsApi.md index 92062399..8d0db942 100644 --- a/docs/NetworkConnectionsApi.md +++ b/docs/NetworkConnectionsApi.md @@ -7,13 +7,13 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**checkThirdPartyRouting**](NetworkConnectionsApi.md#checkThirdPartyRouting) | **GET** /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation | | [**createNetworkConnection**](NetworkConnectionsApi.md#createNetworkConnection) | **POST** /network_connections | Create a new network connection | | [**createNetworkId**](NetworkConnectionsApi.md#createNetworkId) | **POST** /network_ids | Creates a new Network ID | -| [**deleteNetworkConnection**](NetworkConnectionsApi.md#deleteNetworkConnection) | **DELETE** /network_connections/{connectionId} | Deletes a network connection by ID | -| [**deleteNetworkId**](NetworkConnectionsApi.md#deleteNetworkId) | **DELETE** /network_ids/{networkId} | Deletes specific network ID. | +| [**deleteNetworkConnection**](NetworkConnectionsApi.md#deleteNetworkConnection) | **DELETE** /network_connections/{connectionId} | Delete a network connection by ID | +| [**deleteNetworkId**](NetworkConnectionsApi.md#deleteNetworkId) | **DELETE** /network_ids/{networkId} | Delete specific network ID. | | [**getNetwork**](NetworkConnectionsApi.md#getNetwork) | **GET** /network_connections/{connectionId} | Get a network connection | | [**getNetworkConnections**](NetworkConnectionsApi.md#getNetworkConnections) | **GET** /network_connections | List network connections | -| [**getNetworkId**](NetworkConnectionsApi.md#getNetworkId) | **GET** /network_ids/{networkId} | Returns specific network ID. | +| [**getNetworkId**](NetworkConnectionsApi.md#getNetworkId) | **GET** /network_ids/{networkId} | Return specific network ID. | | [**getNetworkIds**](NetworkConnectionsApi.md#getNetworkIds) | **GET** /network_ids | Get all network IDs | -| [**getRoutingPolicyAssetGroups**](NetworkConnectionsApi.md#getRoutingPolicyAssetGroups) | **GET** /network_ids/routing_policy_asset_groups | Returns all enabled routing policy asset groups | +| [**getRoutingPolicyAssetGroups**](NetworkConnectionsApi.md#getRoutingPolicyAssetGroups) | **GET** /network_ids/routing_policy_asset_groups | Return all enabled routing policy asset groups | | [**searchNetworkIds**](NetworkConnectionsApi.md#searchNetworkIds) | **GET** /network_ids/search | Get both local IDs and discoverable remote IDs | | [**setNetworkIdDiscoverability**](NetworkConnectionsApi.md#setNetworkIdDiscoverability) | **PATCH** /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. | | [**setNetworkIdName**](NetworkConnectionsApi.md#setNetworkIdName) | **PATCH** /network_ids/{networkId}/set_name | Update network ID's name. | @@ -198,7 +198,7 @@ No authorization required Creates a new Network ID -Creates a new Network ID. +Create a new Network ID. ### Example @@ -281,7 +281,7 @@ No authorization required > CompletableFuture> deleteNetworkConnection deleteNetworkConnection(connectionId) -Deletes a network connection by ID +Delete a network connection by ID Deletes an existing network connection specified by its connection ID. @@ -364,7 +364,7 @@ No authorization required > CompletableFuture> deleteNetworkId deleteNetworkId(networkId) -Deletes specific network ID. +Delete specific network ID. Deletes a network by its ID. @@ -609,7 +609,7 @@ No authorization required > CompletableFuture> getNetworkId getNetworkId(networkId) -Returns specific network ID. +Return specific network ID. Returns specific network ID. @@ -771,7 +771,7 @@ No authorization required > CompletableFuture>> getRoutingPolicyAssetGroups getRoutingPolicyAssetGroups() -Returns all enabled routing policy asset groups +Return all enabled routing policy asset groups Returns all enabled routing policy asset groups diff --git a/docs/NftsApi.md b/docs/NftsApi.md index ada9cdcd..33c17dd4 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, 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, CRONOS, CRONOS_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] | diff --git a/docs/PersonalIdentification.md b/docs/PersonalIdentification.md index 1785cdf8..98c0cb77 100644 --- a/docs/PersonalIdentification.md +++ b/docs/PersonalIdentification.md @@ -15,6 +15,10 @@ |**postalAddress** | [**PostalAddress**](PostalAddress.md) | | | |**email** | **String** | | [optional] | |**phone** | **String** | Mobile phone number in E.164 format | [optional] | +|**idNumber** | **String** | The identification number corresponding to the primary identification document type specified in idType | [optional] | +|**idType** | **PersonalIdentificationType** | | [optional] | +|**additionalIdNumber** | **String** | The identification number corresponding to the additional identification document type specified in additionalIdType | [optional] | +|**additionalIdType** | **PersonalIdentificationType** | | [optional] | diff --git a/docs/PersonalIdentificationType.md b/docs/PersonalIdentificationType.md new file mode 100644 index 00000000..ea3e9db5 --- /dev/null +++ b/docs/PersonalIdentificationType.md @@ -0,0 +1,45 @@ + + +# PersonalIdentificationType + +## Enum + + +* `NIN_SLIP_CARD` (value: `"NIN_SLIP_CARD"`) + +* `BVN` (value: `"BVN"`) + +* `ID_CARD` (value: `"ID_CARD"`) + +* `ID_BOOK` (value: `"ID_BOOK"`) + +* `NATIONAL_ID` (value: `"NATIONAL_ID"`) + +* `ALIEN_CARD` (value: `"ALIEN_CARD"`) + +* `PASSPORT` (value: `"PASSPORT"`) + +* `ECOWAS_CARD` (value: `"ECOWAS_CARD"`) + +* `RWANDA_CARD` (value: `"RWANDA_CARD"`) + +* `DRIVERS_LICENSE` (value: `"DRIVERS_LICENSE"`) + +* `RESIDENT_CARD` (value: `"RESIDENT_CARD"`) + +* `VOTER_ID` (value: `"VOTER_ID"`) + +* `HEALTH_INSURANCE_ID` (value: `"HEALTH_INSURANCE_ID"`) + +* `GHANA_CARD` (value: `"GHANA_CARD"`) + +* `REFUGEE_ID` (value: `"REFUGEE_ID"`) + +* `SSNIT` (value: `"SSNIT"`) + +* `NON_CITIZEN_ID` (value: `"NON_CITIZEN_ID"`) + +* `NATIONAL_REGISTRATION_CARD` (value: `"NATIONAL_REGISTRATION_CARD"`) + + + diff --git a/docs/QuoteFailure.md b/docs/QuoteFailure.md new file mode 100644 index 00000000..4aaf0bda --- /dev/null +++ b/docs/QuoteFailure.md @@ -0,0 +1,15 @@ + + +# QuoteFailure + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**providerId** | **String** | Identifier of the provider for which the quote request failed. | | +|**accountId** | **String** | Identifier of the account for which the quote request failed (optional). | [optional] | +|**error** | [**TradingErrorSchema**](TradingErrorSchema.md) | | | + + + diff --git a/docs/QuotesResponse.md b/docs/QuotesResponse.md index cec1d2c8..0e9711fb 100644 --- a/docs/QuotesResponse.md +++ b/docs/QuotesResponse.md @@ -7,7 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**quotes** | [**List<Quote>**](Quote.md) | | [optional] | +|**quotes** | [**List<Quote>**](Quote.md) | | | +|**quoteFailures** | [**List<QuoteFailure>**](QuoteFailure.md) | List of partial failures encountered while requesting quotes. Empty when all quote attempts succeed. | | diff --git a/docs/TokenOwnershipResponse.md b/docs/TokenOwnershipResponse.md index c5e2f081..b38e4229 100644 --- a/docs/TokenOwnershipResponse.md +++ b/docs/TokenOwnershipResponse.md @@ -57,6 +57,8 @@ | KLAY_KAIA_TEST | "KLAY_KAIA_TEST" | | APECHAIN | "APECHAIN" | | APECHAIN_TEST | "APECHAIN_TEST" | +| CRONOS | "CRONOS" | +| CRONOS_TEST | "CRONOS_TEST" | diff --git a/docs/TokenResponse.md b/docs/TokenResponse.md index e90e4189..38bc49b2 100644 --- a/docs/TokenResponse.md +++ b/docs/TokenResponse.md @@ -50,6 +50,8 @@ | KLAY_KAIA_TEST | "KLAY_KAIA_TEST" | | APECHAIN | "APECHAIN" | | APECHAIN_TEST | "APECHAIN_TEST" | +| CRONOS | "CRONOS" | +| CRONOS_TEST | "CRONOS_TEST" | diff --git a/docs/TrLinkApi.md b/docs/TrLinkApi.md index 22e8d9d6..e5b79e32 100644 --- a/docs/TrLinkApi.md +++ b/docs/TrLinkApi.md @@ -17,7 +17,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getTRLinkCustomerIntegrations**](TrLinkApi.md#getTRLinkCustomerIntegrations) | **GET** /screening/trlink/customers/{customerId}/integrations | Get customer integrations | | [**getTRLinkCustomers**](TrLinkApi.md#getTRLinkCustomers) | **GET** /screening/trlink/customers | Get all customers | | [**getTRLinkIntegrationPublicKey**](TrLinkApi.md#getTRLinkIntegrationPublicKey) | **GET** /screening/trlink/customers/integration/{customerIntegrationId}/public_key | Get public key for PII encryption | -| [**getTRLinkPartners**](TrLinkApi.md#getTRLinkPartners) | **GET** /screening/trlink/partners | List available TRLink partners | +| [**getTRLinkPartners**](TrLinkApi.md#getTRLinkPartners) | **GET** /screening/trlink/partners | List available TRSupport partners | | [**getTRLinkPolicy**](TrLinkApi.md#getTRLinkPolicy) | **GET** /screening/trlink/policy | Get TRLink policy | | [**getTRLinkSupportedAsset**](TrLinkApi.md#getTRLinkSupportedAsset) | **GET** /screening/trlink/customers/integration/{customerIntegrationId}/assets/{assetId} | Get supported asset by ID | | [**getTRLinkTrmById**](TrLinkApi.md#getTRLinkTrmById) | **GET** /screening/trlink/customers/integration/{customerIntegrationId}/trm/{trmId} | Get TRM by ID | @@ -301,7 +301,7 @@ No authorization required Create customer -Creates a new customer (legal entity/VASP) for TRLink Travel Rule compliance operations. The customer represents your organization in the Travel Rule network and contains IVMS101-compliant identity information. +Creates a new customer (legal entity/VASP) for TRSupport Travel Rule compliance operations. The customer represents your organization in the Travel Rule network and contains IVMS101-compliant identity information. ### Example @@ -386,7 +386,7 @@ No authorization required Create customer integration -Creates a new TRLink integration for a customer. This establishes a connection placeholder between a customer and a Travel Rule partner. Use the connect endpoint to provide credentials after creation. +Creates a new TRSupport integration for a customer. This establishes a connection placeholder between a customer and a Travel Rule partner. Use the connect endpoint to provide credentials after creation. ### Example @@ -890,7 +890,7 @@ No authorization required Get customer integrations -Retrieves all TRLink integrations for a specific customer. Returns a list of partner integrations configured for Travel Rule compliance. +Retrieves all TRSupport integrations for a specific customer. Returns a list of partner integrations configured for Travel Rule compliance. ### Example @@ -1133,9 +1133,9 @@ No authorization required > CompletableFuture>> getTRLinkPartners getTRLinkPartners() -List available TRLink partners +List available TRSupport partners -Retrieves a list of all available Travel Rule Link integration partners. Partners provide Travel Rule compliance services such as VASP discovery, TRM exchange, and PII encryption. +Retrieves a list of all available Travel Rule Support integration partners. Partners provide Travel Rule compliance services such as VASP discovery, TRM exchange, and PII encryption. ### Example @@ -1214,7 +1214,7 @@ No authorization required Get TRLink policy -Retrieves the complete TRLink policy for the authenticated tenant, including pre-screening rules, post-screening rules, and missing TRM rules. Pre-screening rules determine whether transactions should be screened. Post-screening rules determine actions based on screening results. Missing TRM rules handle cases when screening data is unavailable. +Retrieves the complete TRSupport policy for the authenticated tenant, including pre-screening rules, post-screening rules, and missing TRM rules. Pre-screening rules determine whether transactions should be screened. Post-screening rules determine actions based on screening results. Missing TRM rules handle cases when screening data is unavailable. ### Example diff --git a/docs/TransactionRequest.md b/docs/TransactionRequest.md index 00bc703d..9ea03b92 100644 --- a/docs/TransactionRequest.md +++ b/docs/TransactionRequest.md @@ -30,7 +30,7 @@ |**extraParameters** | **Object** | Additional protocol / operation specific key-value parameters: For UTXO-based blockchain input selection, add the key `inputsSelection` with the value set the [input selection structure.](https://developers.fireblocks.com/reference/transaction-objects#inputsselection) The inputs can be retrieved from the [Retrieve Unspent Inputs endpoint.](https://developers.fireblocks.com/reference/get_vault-accounts-vaultaccountid-assetid-unspent-inputs) For `RAW` operations, add the key `rawMessageData` with the value set to the [raw message data structure.](https://developers.fireblocks.com/reference/raw-signing-objects#rawmessagedata) For `CONTRACT_CALL` operations, add the key `contractCallData` with the value set to the Ethereum smart contract Application Binary Interface (ABI) payload. The Fireblocks [development libraries](https://developers.fireblocks.com/docs/ethereum-development#convenience-libraries) are recommended for building contract call transactions. For **exchange compliance (e.g., Binance) and Travel Rule purposes**, include the key `piiData` containing a **custom JSON structure** with Personally Identifiable Information (PII) relevant to the transaction. This data must be fully **encrypted by the sender** before being submitted to the Fireblocks API. The recommended encryption method is **hybrid encryption** using AES-256-GCM for the payload and RSA-OAEP for key exchange, with the recipient exchange’s public key. [development libraries](https://developers.fireblocks.com/docs/a-developers-guide-to-constructing-encrypted-pii-messages-for-binance-via-fireblocks) | [optional] | |**customerRefId** | **String** | The ID for AML providers to associate the owner of funds with transactions. | [optional] | |**travelRuleMessage** | [**TravelRuleCreateTransactionRequest**](TravelRuleCreateTransactionRequest.md) | | [optional] | -|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule linking functionality to associate transactions with existing travel rule messages. | [optional] | +|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule supporting functionality to associate transactions with existing travel rule messages. | [optional] | |**autoStaking** | **Boolean** | This feature is no longer supported. | [optional] | |**networkStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] | |**cpuStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] | diff --git a/docs/TransactionRequestDestination.md b/docs/TransactionRequestDestination.md index ff5488cf..3694fc2f 100644 --- a/docs/TransactionRequestDestination.md +++ b/docs/TransactionRequestDestination.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**amount** | **String** | | [optional] | |**destination** | [**DestinationTransferPeerPath**](DestinationTransferPeerPath.md) | | [optional] | -|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule linking functionality to associate transactions with existing travel rule messages. | [optional] | +|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule supporting functionality to associate transactions with existing travel rule messages. | [optional] | |**customerRefId** | **String** | The ID for AML providers to associate the owner of funds with transactions. | [optional] | diff --git a/docs/TransactionResponse.md b/docs/TransactionResponse.md index ddf67343..6a782760 100644 --- a/docs/TransactionResponse.md +++ b/docs/TransactionResponse.md @@ -38,7 +38,7 @@ |**authorizationInfo** | [**AuthorizationInfo**](AuthorizationInfo.md) | | [optional] | |**exchangeTxId** | **String** | If the transaction originated from an exchange, this is the ID of this transaction at the exchange. | [optional] | |**customerRefId** | **String** | The ID for AML providers to associate the owner of funds with transactions. | [optional] | -|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule linking functionality to associate transactions with existing travel rule messages. | [optional] | +|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule supporting functionality to associate transactions with existing travel rule messages. | [optional] | |**amlScreeningResult** | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] | |**complianceResults** | [**ComplianceResults**](ComplianceResults.md) | | [optional] | |**notBroadcastByFireblocks** | **Boolean** | Indicates the transaction was not broadcast by Fireblocks | [optional] | diff --git a/docs/TransactionResponseDestination.md b/docs/TransactionResponseDestination.md index 4f507d84..53c19a80 100644 --- a/docs/TransactionResponseDestination.md +++ b/docs/TransactionResponseDestination.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**amount** | **String** | The amount to be sent to this destination. | [optional] | |**amountUSD** | **String** | The USD value of the requested amount. | [optional] | -|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule linking functionality to associate transactions with existing travel rule messages. | [optional] | +|**travelRuleMessageId** | **String** | The ID of the travel rule message from any travel rule provider. Used for travel rule supporting functionality to associate transactions with existing travel rule messages. | [optional] | |**amlScreeningResult** | [**AmlScreeningResult**](AmlScreeningResult.md) | | [optional] | |**destination** | [**DestinationTransferPeerPathResponse**](DestinationTransferPeerPathResponse.md) | | [optional] | |**authorizationInfo** | [**AuthorizationInfo**](AuthorizationInfo.md) | | [optional] | diff --git a/docs/UnmanagedWallet.md b/docs/UnmanagedWallet.md index 4f7fb9f6..9798a6f3 100644 --- a/docs/UnmanagedWallet.md +++ b/docs/UnmanagedWallet.md @@ -12,6 +12,7 @@ |**customerRefId** | **String** | | [optional] | |**assets** | [**List<WalletAsset>**](WalletAsset.md) | | | |**test** | **Boolean** | | | +|**test2** | **Boolean** | | | diff --git a/docs/VaultsApi.md b/docs/VaultsApi.md index 367f4d2e..9ec9984d 100644 --- a/docs/VaultsApi.md +++ b/docs/VaultsApi.md @@ -15,7 +15,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | [**getAssetWallets**](VaultsApi.md#getAssetWallets) | **GET** /vault/asset_wallets | Get vault wallets (Paginated) | | [**getCreateMultipleDepositAddressesJobStatus**](VaultsApi.md#getCreateMultipleDepositAddressesJobStatus) | **GET** /vault/accounts/addresses/bulk/{jobId} | Get the job status of the bulk deposit address creation | | [**getCreateMultipleVaultAccountsJobStatus**](VaultsApi.md#getCreateMultipleVaultAccountsJobStatus) | **GET** /vault/accounts/bulk/{jobId} | Get job status of bulk creation of new vault accounts | -| [**getMaxBipIndexUsed**](VaultsApi.md#getMaxBipIndexUsed) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_bip_index_used | Get maximum BIP44 index used | +| [**getMaxBipIndexUsed**](VaultsApi.md#getMaxBipIndexUsed) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used | Get maximum BIP44 index used | | [**getMaxSpendableAmount**](VaultsApi.md#getMaxSpendableAmount) | **GET** /vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount | Get max spendable amount in a transaction | | [**getPagedVaultAccounts**](VaultsApi.md#getPagedVaultAccounts) | **GET** /vault/accounts_paged | Get vault accounts (Paginated) | | [**getPublicKeyInfo**](VaultsApi.md#getPublicKeyInfo) | **GET** /vault/public_key_info | Get the public key for a derivation path | @@ -1195,7 +1195,7 @@ public class Example { String namePrefix = "namePrefix_example"; // String | String nameSuffix = "nameSuffix_example"; // String | - BigDecimal minAmountThreshold = new BigDecimal("10"); // BigDecimal | Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts. The amount set in this parameter is the native asset amount and not its USD value. + BigDecimal minAmountThreshold = new BigDecimal("10"); // BigDecimal | Specifying minAmountThreshold will filter accounts whose total balance is greater than this value; otherwise, it returns all accounts. The amount set in this parameter represents the native asset amount, not its USD value. String assetId = "assetId_example"; // String | String orderBy = "ASC"; // String | String before = "before_example"; // String | @@ -1234,7 +1234,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **namePrefix** | **String**| | [optional] | | **nameSuffix** | **String**| | [optional] | -| **minAmountThreshold** | **BigDecimal**| Specifying minAmountThreshold will filter accounts with balances greater than this value, otherwise, it will return all accounts. The amount set in this parameter is the native asset amount and not its USD value. | [optional] | +| **minAmountThreshold** | **BigDecimal**| Specifying minAmountThreshold will filter accounts whose total balance is greater than this value; otherwise, it returns all accounts. The amount set in this parameter represents the native asset amount, not its USD value. | [optional] | | **assetId** | **String**| | [optional] | | **orderBy** | **String**| | [optional] [default to DESC] [enum: ASC, DESC] | | **before** | **String**| | [optional] | diff --git a/docs/WalletAsset.md b/docs/WalletAsset.md index 00510d2e..3495bda4 100644 --- a/docs/WalletAsset.md +++ b/docs/WalletAsset.md @@ -12,7 +12,7 @@ |**lockedAmount** | **String** | | [optional] | |**status** | **ConfigChangeRequestStatus** | | [optional] | |**address** | **String** | | [optional] | -|**tag** | **Boolean** | | [optional] | +|**tag** | **String** | | [optional] | |**activationTime** | **String** | | [optional] | diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java index 8facc8ac..e66a4284 100644 --- a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java @@ -86,6 +86,58 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } + /** + * Delete Asset by id Delete Asset by id + * + * @param id The ID of the asset to delete (required) + * @return CompletableFuture<ApiResponse<Void>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> deleteAsset(String id) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = deleteAssetRequestBuilder(id); + 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("deleteAsset", localVarResponse)); + } + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + null)); + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder deleteAssetRequestBuilder(String id) throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty("deleteAsset", "id", id); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/assets/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Get an asset Returns an asset by ID or legacyID.</br> **Note**: - We will continue * displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully diff --git a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java index 9f5eb767..44db1677 100644 --- a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java @@ -256,7 +256,7 @@ private HttpRequest.Builder createNetworkConnectionRequestBuilder( return localVarRequestBuilder; } /** - * Creates a new Network ID Creates a new Network ID. + * Creates a new Network ID Create a new Network ID. * * @param createNetworkIdRequest (optional) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -336,7 +336,7 @@ private HttpRequest.Builder createNetworkIdRequestBuilder( return localVarRequestBuilder; } /** - * Deletes a network connection by ID Deletes an existing network connection specified by its + * Delete a network connection by ID Deletes an existing network connection specified by its * connection ID. * * @param connectionId The ID of the network connection to delete (required) @@ -406,7 +406,7 @@ private HttpRequest.Builder deleteNetworkConnectionRequestBuilder(String connect return localVarRequestBuilder; } /** - * Deletes specific network ID. Deletes a network by its ID. + * Delete specific network ID. Deletes a network by its ID. * * @param networkId The ID of the network (required) * @return CompletableFuture<ApiResponse<DeleteNetworkIdResponse>> @@ -609,7 +609,7 @@ private HttpRequest.Builder getNetworkConnectionsRequestBuilder() throws ApiExce return localVarRequestBuilder; } /** - * Returns specific network ID. Returns specific network ID. + * Return specific network ID. Returns specific network ID. * * @param networkId The ID of the network (required) * @return CompletableFuture<ApiResponse<NetworkIdResponse>> @@ -738,7 +738,7 @@ private HttpRequest.Builder getNetworkIdsRequestBuilder() throws ApiException { return localVarRequestBuilder; } /** - * Returns all enabled routing policy asset groups Returns all enabled routing policy asset + * Return all enabled routing policy asset groups Returns all enabled routing policy asset * groups * * @return CompletableFuture<ApiResponse<List<String>>> diff --git a/src/main/java/com/fireblocks/sdk/api/TrLinkApi.java b/src/main/java/com/fireblocks/sdk/api/TrLinkApi.java index ecc566de..bab6cd8d 100644 --- a/src/main/java/com/fireblocks/sdk/api/TrLinkApi.java +++ b/src/main/java/com/fireblocks/sdk/api/TrLinkApi.java @@ -403,9 +403,9 @@ private HttpRequest.Builder connectTRLinkIntegrationRequestBuilder( return localVarRequestBuilder; } /** - * Create customer Creates a new customer (legal entity/VASP) for TRLink Travel Rule compliance - * operations. The customer represents your organization in the Travel Rule network and contains - * IVMS101-compliant identity information. + * Create customer Creates a new customer (legal entity/VASP) for TRSupport Travel Rule + * compliance operations. The customer represents your organization in the Travel Rule network + * and contains IVMS101-compliant identity information. * * @param trLinkCreateCustomerRequest (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -488,9 +488,9 @@ private HttpRequest.Builder createTRLinkCustomerRequestBuilder( return localVarRequestBuilder; } /** - * Create customer integration Creates a new TRLink integration for a customer. This establishes - * a connection placeholder between a customer and a Travel Rule partner. Use the connect - * endpoint to provide credentials after creation. + * Create customer integration Creates a new TRSupport integration for a customer. This + * establishes a connection placeholder between a customer and a Travel Rule partner. Use the + * connect endpoint to provide credentials after creation. * * @param trLinkCreateIntegrationRequest (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -949,8 +949,8 @@ private HttpRequest.Builder getTRLinkCustomerIntegrationByIdRequestBuilder( return localVarRequestBuilder; } /** - * Get customer integrations Retrieves all TRLink integrations for a specific customer. Returns - * a list of partner integrations configured for Travel Rule compliance. + * Get customer integrations Retrieves all TRSupport integrations for a specific customer. + * Returns a list of partner integrations configured for Travel Rule compliance. * * @param customerId Customer unique identifier (required) * @return @@ -1163,9 +1163,9 @@ private HttpRequest.Builder getTRLinkIntegrationPublicKeyRequestBuilder( return localVarRequestBuilder; } /** - * List available TRLink partners Retrieves a list of all available Travel Rule Link integration - * partners. Partners provide Travel Rule compliance services such as VASP discovery, TRM - * exchange, and PII encryption. + * List available TRSupport partners Retrieves a list of all available Travel Rule Support + * integration partners. Partners provide Travel Rule compliance services such as VASP + * discovery, TRM exchange, and PII encryption. * * @return CompletableFuture<ApiResponse<List<TRLinkPartnerResponse>>> * @throws ApiException if fails to make API call @@ -1227,7 +1227,7 @@ private HttpRequest.Builder getTRLinkPartnersRequestBuilder() throws ApiExceptio return localVarRequestBuilder; } /** - * Get TRLink policy Retrieves the complete TRLink policy for the authenticated tenant, + * Get TRLink policy Retrieves the complete TRSupport policy for the authenticated tenant, * including pre-screening rules, post-screening rules, and missing TRM rules. Pre-screening * rules determine whether transactions should be screened. Post-screening rules determine * actions based on screening results. Missing TRM rules handle cases when screening data is diff --git a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java index 85bb65cb..c25b42e6 100644 --- a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java @@ -1154,7 +1154,7 @@ private HttpRequest.Builder getMaxBipIndexUsedRequestBuilder( HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = - "/vault/accounts/{vaultAccountId}/{assetId}/max_bip_index_used" + "/vault/accounts/{vaultAccountId}/{assetId}/max_bip44_index_used" .replace("{vaultAccountId}", ApiClient.urlEncode(vaultAccountId.toString())) .replace("{assetId}", ApiClient.urlEncode(assetId.toString())); @@ -1273,9 +1273,9 @@ private HttpRequest.Builder getMaxSpendableAmountRequestBuilder( * * @param namePrefix (optional) * @param nameSuffix (optional) - * @param minAmountThreshold Specifying minAmountThreshold will filter accounts with balances - * greater than this value, otherwise, it will return all accounts. The amount set in this - * parameter is the native asset amount and not its USD value. (optional) + * @param minAmountThreshold Specifying minAmountThreshold will filter accounts whose total + * balance is greater than this value; otherwise, it returns all accounts. The amount set in + * this parameter represents the native asset amount, not its USD value. (optional) * @param assetId (optional) * @param orderBy (optional, default to DESC) * @param before (optional) diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java index f3f0e3e7..a9a48419 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java @@ -97,7 +97,11 @@ public enum BlockchainDescriptorEnum { APECHAIN(String.valueOf("APECHAIN")), - APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); + APECHAIN_TEST(String.valueOf("APECHAIN_TEST")), + + CRONOS(String.valueOf("CRONOS")), + + CRONOS_TEST(String.valueOf("CRONOS_TEST")); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/CreateQuote.java b/src/main/java/com/fireblocks/sdk/model/CreateQuote.java index 7f59d729..60cc68ec 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateQuote.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateQuote.java @@ -114,7 +114,7 @@ public CreateQuote baseAssetId(@jakarta.annotation.Nonnull String baseAssetId) { } /** - * Get baseAssetId + * The asset you receive on BUY / give on SELL. * * @return baseAssetId */ @@ -137,7 +137,7 @@ public CreateQuote quoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) } /** - * Get quoteAssetId + * The counter asset used to pay/receive. * * @return quoteAssetId */ diff --git a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java index b51b015c..aa3ba31d 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java +++ b/src/main/java/com/fireblocks/sdk/model/CreateTokenRequestDto.java @@ -31,7 +31,9 @@ CreateTokenRequestDto.JSON_PROPERTY_DISPLAY_NAME, CreateTokenRequestDto.JSON_PROPERTY_USE_GASLESS, CreateTokenRequestDto.JSON_PROPERTY_FEE, - CreateTokenRequestDto.JSON_PROPERTY_FEE_LEVEL + CreateTokenRequestDto.JSON_PROPERTY_FEE_LEVEL, + CreateTokenRequestDto.JSON_PROPERTY_TX_NOTE, + CreateTokenRequestDto.JSON_PROPERTY_EXTERNAL_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -98,6 +100,12 @@ public static FeeLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel"; @jakarta.annotation.Nullable private FeeLevelEnum feeLevel; + public static final String JSON_PROPERTY_TX_NOTE = "txNote"; + @jakarta.annotation.Nullable private String txNote; + + public static final String JSON_PROPERTY_EXTERNAL_ID = "externalId"; + @jakarta.annotation.Nullable private String externalId; + public CreateTokenRequestDto() {} @JsonCreator @@ -299,6 +307,54 @@ public void setFeeLevel(@jakarta.annotation.Nullable FeeLevelEnum feeLevel) { this.feeLevel = feeLevel; } + public CreateTokenRequestDto txNote(@jakarta.annotation.Nullable String txNote) { + this.txNote = txNote; + return this; + } + + /** + * Custom note that describes the transaction at your Fireblocks workspace. This note will be + * visible in the Fireblocks UI and in the transaction details and not on the blockchain. + * + * @return txNote + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TX_NOTE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTxNote() { + return txNote; + } + + @JsonProperty(JSON_PROPERTY_TX_NOTE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTxNote(@jakarta.annotation.Nullable String txNote) { + this.txNote = txNote; + } + + public CreateTokenRequestDto externalId(@jakarta.annotation.Nullable String externalId) { + this.externalId = externalId; + return this; + } + + /** + * External id that can be used to identify the transaction in your system. The unique + * identifier of the transaction outside of Fireblocks with max length of 255 characters + * + * @return externalId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getExternalId() { + return externalId; + } + + @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExternalId(@jakarta.annotation.Nullable String externalId) { + this.externalId = externalId; + } + /** Return true if this CreateTokenRequestDto object is equal to o. */ @Override public boolean equals(Object o) { @@ -316,7 +372,9 @@ public boolean equals(Object o) { && Objects.equals(this.displayName, createTokenRequestDto.displayName) && Objects.equals(this.useGasless, createTokenRequestDto.useGasless) && Objects.equals(this.fee, createTokenRequestDto.fee) - && Objects.equals(this.feeLevel, createTokenRequestDto.feeLevel); + && Objects.equals(this.feeLevel, createTokenRequestDto.feeLevel) + && Objects.equals(this.txNote, createTokenRequestDto.txNote) + && Objects.equals(this.externalId, createTokenRequestDto.externalId); } @Override @@ -329,7 +387,9 @@ public int hashCode() { displayName, useGasless, fee, - feeLevel); + feeLevel, + txNote, + externalId); } @Override @@ -344,6 +404,8 @@ public String toString() { sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); sb.append(" fee: ").append(toIndentedString(fee)).append("\n"); sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n"); + sb.append(" txNote: ").append(toIndentedString(txNote)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -466,6 +528,26 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getFeeLevel())))); } + // add `txNote` to the URL query string + if (getTxNote() != null) { + joiner.add( + String.format( + "%stxNote%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getTxNote())))); + } + + // add `externalId` to the URL query string + if (getExternalId() != null) { + joiner.add( + String.format( + "%sexternalId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getExternalId())))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java b/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java index 5dce923d..9ca4a324 100644 --- a/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java +++ b/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java @@ -31,7 +31,11 @@ PersonalIdentification.JSON_PROPERTY_DATE_OF_BIRTH, PersonalIdentification.JSON_PROPERTY_POSTAL_ADDRESS, PersonalIdentification.JSON_PROPERTY_EMAIL, - PersonalIdentification.JSON_PROPERTY_PHONE + PersonalIdentification.JSON_PROPERTY_PHONE, + PersonalIdentification.JSON_PROPERTY_ID_NUMBER, + PersonalIdentification.JSON_PROPERTY_ID_TYPE, + PersonalIdentification.JSON_PROPERTY_ADDITIONAL_ID_NUMBER, + PersonalIdentification.JSON_PROPERTY_ADDITIONAL_ID_TYPE }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -62,6 +66,18 @@ public class PersonalIdentification { public static final String JSON_PROPERTY_PHONE = "phone"; @jakarta.annotation.Nullable private String phone; + public static final String JSON_PROPERTY_ID_NUMBER = "idNumber"; + @jakarta.annotation.Nullable private String idNumber; + + public static final String JSON_PROPERTY_ID_TYPE = "idType"; + @jakarta.annotation.Nullable private PersonalIdentificationType idType; + + public static final String JSON_PROPERTY_ADDITIONAL_ID_NUMBER = "additionalIdNumber"; + @jakarta.annotation.Nullable private String additionalIdNumber; + + public static final String JSON_PROPERTY_ADDITIONAL_ID_TYPE = "additionalIdType"; + @jakarta.annotation.Nullable private PersonalIdentificationType additionalIdType; + public PersonalIdentification() {} @JsonCreator @@ -276,6 +292,104 @@ public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } + public PersonalIdentification idNumber(@jakarta.annotation.Nullable String idNumber) { + this.idNumber = idNumber; + return this; + } + + /** + * The identification number corresponding to the primary identification document type specified + * in idType + * + * @return idNumber + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIdNumber() { + return idNumber; + } + + @JsonProperty(JSON_PROPERTY_ID_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdNumber(@jakarta.annotation.Nullable String idNumber) { + this.idNumber = idNumber; + } + + public PersonalIdentification idType( + @jakarta.annotation.Nullable PersonalIdentificationType idType) { + this.idType = idType; + return this; + } + + /** + * Get idType + * + * @return idType + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PersonalIdentificationType getIdType() { + return idType; + } + + @JsonProperty(JSON_PROPERTY_ID_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdType(@jakarta.annotation.Nullable PersonalIdentificationType idType) { + this.idType = idType; + } + + public PersonalIdentification additionalIdNumber( + @jakarta.annotation.Nullable String additionalIdNumber) { + this.additionalIdNumber = additionalIdNumber; + return this; + } + + /** + * The identification number corresponding to the additional identification document type + * specified in additionalIdType + * + * @return additionalIdNumber + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAdditionalIdNumber() { + return additionalIdNumber; + } + + @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAdditionalIdNumber(@jakarta.annotation.Nullable String additionalIdNumber) { + this.additionalIdNumber = additionalIdNumber; + } + + public PersonalIdentification additionalIdType( + @jakarta.annotation.Nullable PersonalIdentificationType additionalIdType) { + this.additionalIdType = additionalIdType; + return this; + } + + /** + * Get additionalIdType + * + * @return additionalIdType + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PersonalIdentificationType getAdditionalIdType() { + return additionalIdType; + } + + @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAdditionalIdType( + @jakarta.annotation.Nullable PersonalIdentificationType additionalIdType) { + this.additionalIdType = additionalIdType; + } + /** Return true if this PersonalIdentification object is equal to o. */ @Override public boolean equals(Object o) { @@ -295,7 +409,12 @@ public boolean equals(Object o) { && Objects.equals(this.dateOfBirth, personalIdentification.dateOfBirth) && Objects.equals(this.postalAddress, personalIdentification.postalAddress) && Objects.equals(this.email, personalIdentification.email) - && Objects.equals(this.phone, personalIdentification.phone); + && Objects.equals(this.phone, personalIdentification.phone) + && Objects.equals(this.idNumber, personalIdentification.idNumber) + && Objects.equals(this.idType, personalIdentification.idType) + && Objects.equals( + this.additionalIdNumber, personalIdentification.additionalIdNumber) + && Objects.equals(this.additionalIdType, personalIdentification.additionalIdType); } @Override @@ -308,7 +427,11 @@ public int hashCode() { dateOfBirth, postalAddress, email, - phone); + phone, + idNumber, + idType, + additionalIdNumber, + additionalIdType); } @Override @@ -327,6 +450,12 @@ public String toString() { sb.append(" postalAddress: ").append(toIndentedString(postalAddress)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append(" idNumber: ").append(toIndentedString(idNumber)).append("\n"); + sb.append(" idType: ").append(toIndentedString(idType)).append("\n"); + sb.append(" additionalIdNumber: ") + .append(toIndentedString(additionalIdNumber)) + .append("\n"); + sb.append(" additionalIdType: ").append(toIndentedString(additionalIdType)).append("\n"); sb.append("}"); return sb.toString(); } @@ -446,6 +575,46 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getPhone())))); } + // add `idNumber` to the URL query string + if (getIdNumber() != null) { + joiner.add( + String.format( + "%sidNumber%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getIdNumber())))); + } + + // add `idType` to the URL query string + if (getIdType() != null) { + joiner.add( + String.format( + "%sidType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getIdType())))); + } + + // add `additionalIdNumber` to the URL query string + if (getAdditionalIdNumber() != null) { + joiner.add( + String.format( + "%sadditionalIdNumber%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAdditionalIdNumber())))); + } + + // add `additionalIdType` to the URL query string + if (getAdditionalIdType() != null) { + joiner.add( + String.format( + "%sadditionalIdType%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAdditionalIdType())))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java b/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java new file mode 100644 index 00000000..290c31fe --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java @@ -0,0 +1,114 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@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; + +/** + * Type of identification document. Acceptable values are: - 'NIN_SLIP_CARD': National + * Identification Number (NIN) Slip Card - temporary identification card issued in Nigeria - + * 'BVN': Bank Verification Number - unique identity number for bank account holders in + * Nigeria - 'ID_CARD': General national identity card - 'ID_BOOK': Identity book or + * booklet format identification document - 'NATIONAL_ID': National identity document issued + * by government authorities - 'ALIEN_CARD': Alien registration card for foreign nationals - + * 'PASSPORT': International travel document and proof of identity - 'ECOWAS_CARD': + * Economic Community of West African States identification card - 'RWANDA_CARD': Rwandan + * national identification card - 'DRIVERS_LICENSE': Driver's license or driving permit + * - 'RESIDENT_CARD': Resident permit or permanent resident card - 'VOTER_ID': Voter + * identification card used for electoral registration - 'HEALTH_INSURANCE_ID': Health + * insurance identification card - 'GHANA_CARD': Ghana Card - national identification card + * issued in Ghana - 'REFUGEE_ID': Refugee identification document - 'SSNIT': Social + * Security and National Insurance Trust ID - social security number in Ghana - + * 'NON_CITIZEN_ID': Identification document for non-citizens or foreign residents - + * 'NATIONAL_REGISTRATION_CARD': National registration card issued by national registration + * authority + */ +public enum PersonalIdentificationType { + NIN_SLIP_CARD("NIN_SLIP_CARD"), + + BVN("BVN"), + + ID_CARD("ID_CARD"), + + ID_BOOK("ID_BOOK"), + + NATIONAL_ID("NATIONAL_ID"), + + ALIEN_CARD("ALIEN_CARD"), + + PASSPORT("PASSPORT"), + + ECOWAS_CARD("ECOWAS_CARD"), + + RWANDA_CARD("RWANDA_CARD"), + + DRIVERS_LICENSE("DRIVERS_LICENSE"), + + RESIDENT_CARD("RESIDENT_CARD"), + + VOTER_ID("VOTER_ID"), + + HEALTH_INSURANCE_ID("HEALTH_INSURANCE_ID"), + + GHANA_CARD("GHANA_CARD"), + + REFUGEE_ID("REFUGEE_ID"), + + SSNIT("SSNIT"), + + NON_CITIZEN_ID("NON_CITIZEN_ID"), + + NATIONAL_REGISTRATION_CARD("NATIONAL_REGISTRATION_CARD"); + + private String value; + + PersonalIdentificationType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PersonalIdentificationType fromValue(String value) { + for (PersonalIdentificationType b : PersonalIdentificationType.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/QuoteFailure.java b/src/main/java/com/fireblocks/sdk/model/QuoteFailure.java new file mode 100644 index 00000000..b4d2e64f --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/QuoteFailure.java @@ -0,0 +1,223 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@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.fireblocks.sdk.ApiClient; +import java.util.Objects; +import java.util.StringJoiner; + +/** QuoteFailure */ +@JsonPropertyOrder({ + QuoteFailure.JSON_PROPERTY_PROVIDER_ID, + QuoteFailure.JSON_PROPERTY_ACCOUNT_ID, + QuoteFailure.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class QuoteFailure { + public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; + @jakarta.annotation.Nonnull private String providerId; + + public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; + @jakarta.annotation.Nullable private String accountId; + + public static final String JSON_PROPERTY_ERROR = "error"; + @jakarta.annotation.Nonnull private TradingErrorSchema error; + + public QuoteFailure() {} + + @JsonCreator + public QuoteFailure( + @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId, + @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) TradingErrorSchema error) { + this.providerId = providerId; + this.error = error; + } + + public QuoteFailure providerId(@jakarta.annotation.Nonnull String providerId) { + this.providerId = providerId; + return this; + } + + /** + * Identifier of the provider for which the quote request failed. + * + * @return providerId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PROVIDER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getProviderId() { + return providerId; + } + + @JsonProperty(JSON_PROPERTY_PROVIDER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setProviderId(@jakarta.annotation.Nonnull String providerId) { + this.providerId = providerId; + } + + public QuoteFailure accountId(@jakarta.annotation.Nullable String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Identifier of the account for which the quote request failed (optional). + * + * @return accountId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAccountId() { + return accountId; + } + + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccountId(@jakarta.annotation.Nullable String accountId) { + this.accountId = accountId; + } + + public QuoteFailure error(@jakarta.annotation.Nonnull TradingErrorSchema error) { + this.error = error; + return this; + } + + /** + * Get error + * + * @return error + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TradingErrorSchema getError() { + return error; + } + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setError(@jakarta.annotation.Nonnull TradingErrorSchema error) { + this.error = error; + } + + /** Return true if this QuoteFailure object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QuoteFailure quoteFailure = (QuoteFailure) o; + return Objects.equals(this.providerId, quoteFailure.providerId) + && Objects.equals(this.accountId, quoteFailure.accountId) + && Objects.equals(this.error, quoteFailure.error); + } + + @Override + public int hashCode() { + return Objects.hash(providerId, accountId, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QuoteFailure {\n"); + sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).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 `providerId` to the URL query string + if (getProviderId() != null) { + joiner.add( + String.format( + "%sproviderId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getProviderId())))); + } + + // add `accountId` to the URL query string + if (getAccountId() != null) { + joiner.add( + String.format( + "%saccountId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getAccountId())))); + } + + // add `error` to the URL query string + if (getError() != null) { + joiner.add(getError().toUrlQueryString(prefix + "error" + suffix)); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java b/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java index 5fe2ff2a..77b986a2 100644 --- a/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java @@ -13,6 +13,7 @@ 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; @@ -22,17 +23,32 @@ import java.util.StringJoiner; /** QuotesResponse */ -@JsonPropertyOrder({QuotesResponse.JSON_PROPERTY_QUOTES}) +@JsonPropertyOrder({ + QuotesResponse.JSON_PROPERTY_QUOTES, + QuotesResponse.JSON_PROPERTY_QUOTE_FAILURES +}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class QuotesResponse { public static final String JSON_PROPERTY_QUOTES = "quotes"; - @jakarta.annotation.Nullable private List quotes; + @jakarta.annotation.Nonnull private List quotes; + + public static final String JSON_PROPERTY_QUOTE_FAILURES = "quoteFailures"; + @jakarta.annotation.Nonnull private List quoteFailures; public QuotesResponse() {} - public QuotesResponse quotes(@jakarta.annotation.Nullable List quotes) { + @JsonCreator + public QuotesResponse( + @JsonProperty(value = JSON_PROPERTY_QUOTES, required = true) List quotes, + @JsonProperty(value = JSON_PROPERTY_QUOTE_FAILURES, required = true) + List quoteFailures) { + this.quotes = quotes; + this.quoteFailures = quoteFailures; + } + + public QuotesResponse quotes(@jakarta.annotation.Nonnull List quotes) { this.quotes = quotes; return this; } @@ -50,19 +66,52 @@ public QuotesResponse addQuotesItem(Quote quotesItem) { * * @return quotes */ - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_QUOTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getQuotes() { return quotes; } @JsonProperty(JSON_PROPERTY_QUOTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuotes(@jakarta.annotation.Nullable List quotes) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setQuotes(@jakarta.annotation.Nonnull List quotes) { this.quotes = quotes; } + public QuotesResponse quoteFailures( + @jakarta.annotation.Nonnull List quoteFailures) { + this.quoteFailures = quoteFailures; + return this; + } + + public QuotesResponse addQuoteFailuresItem(QuoteFailure quoteFailuresItem) { + if (this.quoteFailures == null) { + this.quoteFailures = new ArrayList<>(); + } + this.quoteFailures.add(quoteFailuresItem); + return this; + } + + /** + * List of partial failures encountered while requesting quotes. Empty when all quote attempts + * succeed. + * + * @return quoteFailures + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_QUOTE_FAILURES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getQuoteFailures() { + return quoteFailures; + } + + @JsonProperty(JSON_PROPERTY_QUOTE_FAILURES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setQuoteFailures(@jakarta.annotation.Nonnull List quoteFailures) { + this.quoteFailures = quoteFailures; + } + /** Return true if this QuotesResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -73,12 +122,13 @@ public boolean equals(Object o) { return false; } QuotesResponse quotesResponse = (QuotesResponse) o; - return Objects.equals(this.quotes, quotesResponse.quotes); + return Objects.equals(this.quotes, quotesResponse.quotes) + && Objects.equals(this.quoteFailures, quotesResponse.quoteFailures); } @Override public int hashCode() { - return Objects.hash(quotes); + return Objects.hash(quotes, quoteFailures); } @Override @@ -86,6 +136,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class QuotesResponse {\n"); sb.append(" quotes: ").append(toIndentedString(quotes)).append("\n"); + sb.append(" quoteFailures: ").append(toIndentedString(quoteFailures)).append("\n"); sb.append("}"); return sb.toString(); } @@ -156,6 +207,29 @@ public String toUrlQueryString(String prefix) { } } + // add `quoteFailures` to the URL query string + if (getQuoteFailures() != null) { + for (int i = 0; i < getQuoteFailures().size(); i++) { + if (getQuoteFailures().get(i) != null) { + joiner.add( + getQuoteFailures() + .get(i) + .toUrlQueryString( + String.format( + "%squoteFailures%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/Side.java b/src/main/java/com/fireblocks/sdk/model/Side.java index 911a2d00..fcf65157 100644 --- a/src/main/java/com/fireblocks/sdk/model/Side.java +++ b/src/main/java/com/fireblocks/sdk/model/Side.java @@ -16,7 +16,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Side of the order */ +/** BUY: receive base / pay quote; SELL: give base / receive quote. */ public enum Side { BUY("BUY"), diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java index ed53abd8..9bdadf62 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java @@ -136,7 +136,11 @@ public enum BlockchainDescriptorEnum { APECHAIN(String.valueOf("APECHAIN")), - APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); + APECHAIN_TEST(String.valueOf("APECHAIN_TEST")), + + CRONOS(String.valueOf("CRONOS")), + + CRONOS_TEST(String.valueOf("CRONOS_TEST")); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java index 8d63f92b..aa00e988 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java @@ -116,7 +116,11 @@ public enum BlockchainDescriptorEnum { APECHAIN(String.valueOf("APECHAIN")), - APECHAIN_TEST(String.valueOf("APECHAIN_TEST")); + APECHAIN_TEST(String.valueOf("APECHAIN_TEST")), + + CRONOS(String.valueOf("CRONOS")), + + CRONOS_TEST(String.valueOf("CRONOS_TEST")); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java index dff01867..8001b701 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java @@ -789,8 +789,8 @@ public TransactionRequest travelRuleMessageId( } /** - * The ID of the travel rule message from any travel rule provider. Used for travel rule linking - * functionality to associate transactions with existing travel rule messages. + * The ID of the travel rule message from any travel rule provider. Used for travel rule + * supporting functionality to associate transactions with existing travel rule messages. * * @return travelRuleMessageId */ diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java index 81eb20cf..deeff4f9 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java @@ -100,8 +100,8 @@ public TransactionRequestDestination travelRuleMessageId( } /** - * The ID of the travel rule message from any travel rule provider. Used for travel rule linking - * functionality to associate transactions with existing travel rule messages. + * The ID of the travel rule message from any travel rule provider. Used for travel rule + * supporting functionality to associate transactions with existing travel rule messages. * * @return travelRuleMessageId */ diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java index d4363b86..28dc3d0d 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java @@ -1112,8 +1112,8 @@ public TransactionResponse travelRuleMessageId( } /** - * The ID of the travel rule message from any travel rule provider. Used for travel rule linking - * functionality to associate transactions with existing travel rule messages. + * The ID of the travel rule message from any travel rule provider. Used for travel rule + * supporting functionality to associate transactions with existing travel rule messages. * * @return travelRuleMessageId */ diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java index 92f32be1..cfef454e 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java @@ -106,8 +106,8 @@ public TransactionResponseDestination travelRuleMessageId( } /** - * The ID of the travel rule message from any travel rule provider. Used for travel rule linking - * functionality to associate transactions with existing travel rule messages. + * The ID of the travel rule message from any travel rule provider. Used for travel rule + * supporting functionality to associate transactions with existing travel rule messages. * * @return travelRuleMessageId */ diff --git a/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java b/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java index 904e4153..35e47c8f 100644 --- a/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java +++ b/src/main/java/com/fireblocks/sdk/model/UnmanagedWallet.java @@ -29,7 +29,8 @@ UnmanagedWallet.JSON_PROPERTY_NAME, UnmanagedWallet.JSON_PROPERTY_CUSTOMER_REF_ID, UnmanagedWallet.JSON_PROPERTY_ASSETS, - UnmanagedWallet.JSON_PROPERTY_TEST + UnmanagedWallet.JSON_PROPERTY_TEST, + UnmanagedWallet.JSON_PROPERTY_TEST2 }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -50,6 +51,9 @@ public class UnmanagedWallet { public static final String JSON_PROPERTY_TEST = "test"; @jakarta.annotation.Nonnull private Boolean test; + public static final String JSON_PROPERTY_TEST2 = "test2"; + @jakarta.annotation.Nonnull private Boolean test2; + public UnmanagedWallet() {} @JsonCreator @@ -57,11 +61,13 @@ public UnmanagedWallet( @JsonProperty(value = JSON_PROPERTY_ID, required = true) String id, @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, @JsonProperty(value = JSON_PROPERTY_ASSETS, required = true) List assets, - @JsonProperty(value = JSON_PROPERTY_TEST, required = true) Boolean test) { + @JsonProperty(value = JSON_PROPERTY_TEST, required = true) Boolean test, + @JsonProperty(value = JSON_PROPERTY_TEST2, required = true) Boolean test2) { this.id = id; this.name = name; this.assets = assets; this.test = test; + this.test2 = test2; } public UnmanagedWallet id(@jakarta.annotation.Nonnull String id) { @@ -187,6 +193,29 @@ public void setTest(@jakarta.annotation.Nonnull Boolean test) { this.test = test; } + public UnmanagedWallet test2(@jakarta.annotation.Nonnull Boolean test2) { + this.test2 = test2; + return this; + } + + /** + * Get test2 + * + * @return test2 + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TEST2) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getTest2() { + return test2; + } + + @JsonProperty(JSON_PROPERTY_TEST2) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTest2(@jakarta.annotation.Nonnull Boolean test2) { + this.test2 = test2; + } + /** Return true if this UnmanagedWallet object is equal to o. */ @Override public boolean equals(Object o) { @@ -201,12 +230,13 @@ public boolean equals(Object o) { && Objects.equals(this.name, unmanagedWallet.name) && Objects.equals(this.customerRefId, unmanagedWallet.customerRefId) && Objects.equals(this.assets, unmanagedWallet.assets) - && Objects.equals(this.test, unmanagedWallet.test); + && Objects.equals(this.test, unmanagedWallet.test) + && Objects.equals(this.test2, unmanagedWallet.test2); } @Override public int hashCode() { - return Objects.hash(id, name, customerRefId, assets, test); + return Objects.hash(id, name, customerRefId, assets, test, test2); } @Override @@ -218,6 +248,7 @@ public String toString() { sb.append(" customerRefId: ").append(toIndentedString(customerRefId)).append("\n"); sb.append(" assets: ").append(toIndentedString(assets)).append("\n"); sb.append(" test: ").append(toIndentedString(test)).append("\n"); + sb.append(" test2: ").append(toIndentedString(test2)).append("\n"); sb.append("}"); return sb.toString(); } @@ -326,6 +357,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getTest())))); } + // add `test2` to the URL query string + if (getTest2() != null) { + joiner.add( + String.format( + "%stest2%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getTest2())))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/WalletAsset.java b/src/main/java/com/fireblocks/sdk/model/WalletAsset.java index d0f3680d..94a834db 100644 --- a/src/main/java/com/fireblocks/sdk/model/WalletAsset.java +++ b/src/main/java/com/fireblocks/sdk/model/WalletAsset.java @@ -50,7 +50,7 @@ public class WalletAsset { @jakarta.annotation.Nullable private String address; public static final String JSON_PROPERTY_TAG = "tag"; - @jakarta.annotation.Nullable private Boolean tag; + @jakarta.annotation.Nullable private String tag; public static final String JSON_PROPERTY_ACTIVATION_TIME = "activationTime"; @jakarta.annotation.Nullable private String activationTime; @@ -172,7 +172,7 @@ public void setAddress(@jakarta.annotation.Nullable String address) { this.address = address; } - public WalletAsset tag(@jakarta.annotation.Nullable Boolean tag) { + public WalletAsset tag(@jakarta.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -185,13 +185,13 @@ public WalletAsset tag(@jakarta.annotation.Nullable Boolean tag) { @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getTag() { + public String getTag() { return tag; } @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(@jakarta.annotation.Nullable Boolean tag) { + public void setTag(@jakarta.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java index ff3f14d8..822a0cdc 100644 --- a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java @@ -39,6 +39,20 @@ public class BlockchainsAssetsApiTest { private final BlockchainsAssetsApi api = new BlockchainsAssetsApi(); + /** + * Delete Asset by id + * + *

Delete Asset by id + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteAssetTest() throws ApiException { + String id = null; + + CompletableFuture> response = api.deleteAsset(id); + } + /** * Get an asset * diff --git a/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java b/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java index 370f5409..cd381d0e 100644 --- a/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java @@ -88,7 +88,7 @@ public void createNetworkConnectionTest() throws ApiException { /** * Creates a new Network ID * - *

Creates a new Network ID. + *

Create a new Network ID. * * @throws ApiException if the Api call fails */ @@ -101,7 +101,7 @@ public void createNetworkIdTest() throws ApiException { } /** - * Deletes a network connection by ID + * Delete a network connection by ID * *

Deletes an existing network connection specified by its connection ID. * @@ -115,7 +115,7 @@ public void deleteNetworkConnectionTest() throws ApiException { } /** - * Deletes specific network ID. + * Delete specific network ID. * *

Deletes a network by its ID. * @@ -165,7 +165,7 @@ public void getNetworkConnectionsTest() throws ApiException { } /** - * Returns specific network ID. + * Return specific network ID. * *

Returns specific network ID. * @@ -190,7 +190,7 @@ public void getNetworkIdsTest() throws ApiException { } /** - * Returns all enabled routing policy asset groups + * Return all enabled routing policy asset groups * *

Returns all enabled routing policy asset groups * diff --git a/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java b/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java index 1dca7008..c1be4e05 100644 --- a/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java @@ -110,8 +110,8 @@ public void connectTRLinkIntegrationTest() throws ApiException { /** * Create customer * - *

Creates a new customer (legal entity/VASP) for TRLink Travel Rule compliance operations. - * The customer represents your organization in the Travel Rule network and contains + *

Creates a new customer (legal entity/VASP) for TRSupport Travel Rule compliance + * operations. The customer represents your organization in the Travel Rule network and contains * IVMS101-compliant identity information. * * @throws ApiException if the Api call fails @@ -127,9 +127,9 @@ public void createTRLinkCustomerTest() throws ApiException { /** * Create customer integration * - *

Creates a new TRLink integration for a customer. This establishes a connection placeholder - * between a customer and a Travel Rule partner. Use the connect endpoint to provide credentials - * after creation. + *

Creates a new TRSupport integration for a customer. This establishes a connection + * placeholder between a customer and a Travel Rule partner. Use the connect endpoint to provide + * credentials after creation. * * @throws ApiException if the Api call fails */ @@ -220,7 +220,7 @@ public void getTRLinkCustomerIntegrationByIdTest() throws ApiException { /** * Get customer integrations * - *

Retrieves all TRLink integrations for a specific customer. Returns a list of partner + *

Retrieves all TRSupport integrations for a specific customer. Returns a list of partner * integrations configured for Travel Rule compliance. * * @throws ApiException if the Api call fails @@ -263,10 +263,11 @@ public void getTRLinkIntegrationPublicKeyTest() throws ApiException { } /** - * List available TRLink partners + * List available TRSupport partners * - *

Retrieves a list of all available Travel Rule Link integration partners. Partners provide - * Travel Rule compliance services such as VASP discovery, TRM exchange, and PII encryption. + *

Retrieves a list of all available Travel Rule Support integration partners. Partners + * provide Travel Rule compliance services such as VASP discovery, TRM exchange, and PII + * encryption. * * @throws ApiException if the Api call fails */ @@ -279,10 +280,11 @@ public void getTRLinkPartnersTest() throws ApiException { /** * Get TRLink policy * - *

Retrieves the complete TRLink policy for the authenticated tenant, including pre-screening - * rules, post-screening rules, and missing TRM rules. Pre-screening rules determine whether - * transactions should be screened. Post-screening rules determine actions based on screening - * results. Missing TRM rules handle cases when screening data is unavailable. + *

Retrieves the complete TRSupport policy for the authenticated tenant, including + * pre-screening rules, post-screening rules, and missing TRM rules. Pre-screening rules + * determine whether transactions should be screened. Post-screening rules determine actions + * based on screening results. Missing TRM rules handle cases when screening data is + * unavailable. * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java index 644895fc..e9335987 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java +++ b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java @@ -72,4 +72,16 @@ void feeTest() { void feeLevelTest() { // TODO: test feeLevel } + + /** Test the property 'txNote' */ + @Test + void txNoteTest() { + // TODO: test txNote + } + + /** Test the property 'externalId' */ + @Test + void externalIdTest() { + // TODO: test externalId + } } diff --git a/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java index 9bfe44fd..bf24b3c0 100644 --- a/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java @@ -73,6 +73,30 @@ void phoneTest() { // TODO: test phone } + /** Test the property 'idNumber' */ + @Test + void idNumberTest() { + // TODO: test idNumber + } + + /** Test the property 'idType' */ + @Test + void idTypeTest() { + // TODO: test idType + } + + /** Test the property 'additionalIdNumber' */ + @Test + void additionalIdNumberTest() { + // TODO: test additionalIdNumber + } + + /** Test the property 'additionalIdType' */ + @Test + void additionalIdTypeTest() { + // TODO: test additionalIdType + } + /** Test the property 'businessName' */ @Test void businessNameTest() { diff --git a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java index c1eaeba8..cb960e3f 100644 --- a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java +++ b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java @@ -72,4 +72,28 @@ void emailTest() { void phoneTest() { // TODO: test phone } + + /** Test the property 'idNumber' */ + @Test + void idNumberTest() { + // TODO: test idNumber + } + + /** Test the property 'idType' */ + @Test + void idTypeTest() { + // TODO: test idType + } + + /** Test the property 'additionalIdNumber' */ + @Test + void additionalIdNumberTest() { + // TODO: test additionalIdNumber + } + + /** Test the property 'additionalIdType' */ + @Test + void additionalIdTypeTest() { + // TODO: test additionalIdType + } } diff --git a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java new file mode 100644 index 00000000..80bffb52 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java @@ -0,0 +1,25 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@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.jupiter.api.Test; + +/** Model tests for PersonalIdentificationType */ +class PersonalIdentificationTypeTest { + /** Model tests for PersonalIdentificationType */ + @Test + void testPersonalIdentificationType() { + // TODO: test PersonalIdentificationType + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java b/src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java new file mode 100644 index 00000000..7b280bb6 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java @@ -0,0 +1,45 @@ +/* + * Fireblocks API + * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: developers@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.jupiter.api.Test; + +/** Model tests for QuoteFailure */ +class QuoteFailureTest { + private final QuoteFailure model = new QuoteFailure(); + + /** Model tests for QuoteFailure */ + @Test + void testQuoteFailure() { + // TODO: test QuoteFailure + } + + /** Test the property 'providerId' */ + @Test + void providerIdTest() { + // TODO: test providerId + } + + /** Test the property 'accountId' */ + @Test + void accountIdTest() { + // TODO: test accountId + } + + /** Test the property 'error' */ + @Test + void errorTest() { + // TODO: test error + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java index dde09c90..0a319c8c 100644 --- a/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java @@ -30,4 +30,10 @@ void testQuotesResponse() { void quotesTest() { // TODO: test quotes } + + /** Test the property 'quoteFailures' */ + @Test + void quoteFailuresTest() { + // TODO: test quoteFailures + } } diff --git a/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java b/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java index 056d5637..49349059 100644 --- a/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java +++ b/src/test/java/com/fireblocks/sdk/model/UnmanagedWalletTest.java @@ -54,4 +54,10 @@ void assetsTest() { void testTest() { // TODO: test test } + + /** Test the property 'test2' */ + @Test + void test2Test() { + // TODO: test test2 + } }