diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fad4ea45..1194cdb4 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -45,6 +45,8 @@ docs/AdditionalInfoRequestAdditionalInfo.md docs/AddressBalanceItemDto.md docs/AddressBalancePagedResponse.md docs/AddressNotAvailableError.md +docs/AddressRegistryError.md +docs/AddressRegistryLegalEntity.md docs/AlertExposureTypeEnum.md docs/AlertLevelEnum.md docs/AmlAlert.md @@ -372,8 +374,6 @@ docs/Failure.md docs/FailureReason.md docs/Fee.md docs/FeeBreakdown.md -docs/FeeBreakdownOneOf.md -docs/FeeBreakdownOneOf1.md docs/FeeInfo.md docs/FeeLevel.md docs/FeePayerInfo.md @@ -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 @@ -1137,6 +1139,8 @@ src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java src/main/java/com/fireblocks/sdk/model/AddressBalanceItemDto.java src/main/java/com/fireblocks/sdk/model/AddressBalancePagedResponse.java src/main/java/com/fireblocks/sdk/model/AddressNotAvailableError.java +src/main/java/com/fireblocks/sdk/model/AddressRegistryError.java +src/main/java/com/fireblocks/sdk/model/AddressRegistryLegalEntity.java src/main/java/com/fireblocks/sdk/model/AlertExposureTypeEnum.java src/main/java/com/fireblocks/sdk/model/AlertLevelEnum.java src/main/java/com/fireblocks/sdk/model/AmlAlert.java @@ -1449,8 +1453,6 @@ src/main/java/com/fireblocks/sdk/model/Failure.java src/main/java/com/fireblocks/sdk/model/FailureReason.java src/main/java/com/fireblocks/sdk/model/Fee.java src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java -src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java -src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java src/main/java/com/fireblocks/sdk/model/FeeInfo.java src/main/java/com/fireblocks/sdk/model/FeeLevel.java src/main/java/com/fireblocks/sdk/model/FeePayerInfo.java @@ -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 @@ -2162,6 +2166,8 @@ src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java src/test/java/com/fireblocks/sdk/model/AddressBalanceItemDtoTest.java src/test/java/com/fireblocks/sdk/model/AddressBalancePagedResponseTest.java src/test/java/com/fireblocks/sdk/model/AddressNotAvailableErrorTest.java +src/test/java/com/fireblocks/sdk/model/AddressRegistryErrorTest.java +src/test/java/com/fireblocks/sdk/model/AddressRegistryLegalEntityTest.java src/test/java/com/fireblocks/sdk/model/AlertExposureTypeEnumTest.java src/test/java/com/fireblocks/sdk/model/AlertLevelEnumTest.java src/test/java/com/fireblocks/sdk/model/AmlAlertTest.java @@ -2472,8 +2478,6 @@ src/test/java/com/fireblocks/sdk/model/ExternalAccountTypeTest.java src/test/java/com/fireblocks/sdk/model/ExternalWalletAssetTest.java src/test/java/com/fireblocks/sdk/model/FailureReasonTest.java src/test/java/com/fireblocks/sdk/model/FailureTest.java -src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java -src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java src/test/java/com/fireblocks/sdk/model/FeeLevelTest.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 a135a91d..e8d33b84 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 14.0.0 + 0.0.0 compile ``` @@ -42,7 +42,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.fireblocks.sdk:fireblocks-sdk:14.0.0" +compile "com.fireblocks.sdk:fireblocks-sdk:0.0.0" ``` ### Others @@ -55,7 +55,7 @@ mvn clean package Then manually install the following JARs: -- `target/fireblocks-sdk-14.0.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` @@ -154,6 +154,7 @@ Class | Method | HTTP request | Description *BlockchainsAssetsApi* | [**updateAssetUserMetadata**](docs/BlockchainsAssetsApi.md#updateAssetUserMetadata) | **PATCH** /assets/{id} | Update the user’s metadata for an asset *ComplianceApi* | [**getAmlPostScreeningPolicy**](docs/ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy *ComplianceApi* | [**getAmlScreeningPolicy**](docs/ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy +*ComplianceApi* | [**getLegalEntityByAddress**](docs/ComplianceApi.md#getLegalEntityByAddress) | **GET** /address_registry/legal_entity | Look up legal entity by address and asset *ComplianceApi* | [**getPostScreeningPolicy**](docs/ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy *ComplianceApi* | [**getScreeningFullDetails**](docs/ComplianceApi.md#getScreeningFullDetails) | **GET** /screening/transaction/{txId} | Provides all the compliance details for the given screened transaction. *ComplianceApi* | [**getScreeningPolicy**](docs/ComplianceApi.md#getScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy @@ -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 @@ -540,6 +541,8 @@ Class | Method | HTTP request | Description - [AddressBalanceItemDto](docs/AddressBalanceItemDto.md) - [AddressBalancePagedResponse](docs/AddressBalancePagedResponse.md) - [AddressNotAvailableError](docs/AddressNotAvailableError.md) + - [AddressRegistryError](docs/AddressRegistryError.md) + - [AddressRegistryLegalEntity](docs/AddressRegistryLegalEntity.md) - [AlertExposureTypeEnum](docs/AlertExposureTypeEnum.md) - [AlertLevelEnum](docs/AlertLevelEnum.md) - [AmlAlert](docs/AmlAlert.md) @@ -852,8 +855,6 @@ Class | Method | HTTP request | Description - [FailureReason](docs/FailureReason.md) - [Fee](docs/Fee.md) - [FeeBreakdown](docs/FeeBreakdown.md) - - [FeeBreakdownOneOf](docs/FeeBreakdownOneOf.md) - - [FeeBreakdownOneOf1](docs/FeeBreakdownOneOf1.md) - [FeeInfo](docs/FeeInfo.md) - [FeeLevel](docs/FeeLevel.md) - [FeePayerInfo](docs/FeePayerInfo.md) @@ -1036,6 +1037,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) @@ -1073,6 +1075,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 d4759e09..0ef4873b 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 @@ -20208,6 +20209,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 @@ -21602,6 +21605,101 @@ paths: x-content-type: application/json x-accepts: - application/json + /address_registry/legal_entity: + get: + description: "Returns the legal entity (company name, jurisdiction, companyId)\ + \ for the given blockchain address and optional asset. Both the requester\ + \ and the owner of the address must be opted in to the address registry." + operationId: getLegalEntityByAddress + parameters: + - description: Blockchain address to look up + explode: true + in: query + name: address + required: true + schema: + example: 0x742d35cc6634c0532925a3b844bc9e7595f0beb0 + type: string + style: form + - description: "Asset ID (e.g. ETH, BTC). Optional." + explode: true + in: query + name: asset + required: false + schema: + example: ETH + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AddressRegistryLegalEntity" + description: Legal entity found + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/AddressRegistryError" + description: Bad request – missing or invalid address or asset + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/AddressRegistryError" + description: "Forbidden – requester or address owner not opted in to the\ + \ address registry (error codes 2140, 2141)" + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/AddressRegistryError" + description: Address not resolved or entity not found (error code 2142) + headers: + X-Request-ID: + $ref: "#/components/headers/X-Request-ID" + default: + $ref: "#/components/responses/Error" + summary: Look up legal entity by address and asset + tags: + - Compliance + x-rate-limit-category: read + x-readme: + code-samples: + - language: typescript + code: "const response: Promise>\ + \ = fireblocks.compliance.getLegalEntityByAddress(complianceApiGetLegalEntityByAddressRequest);" + name: Fireblocks SDK TypeScript example + - language: java + code: "CompletableFuture> response\ + \ = fireblocks.compliance().getLegalEntityByAddress(address, asset);" + name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.compliance.get_legal_entity_by_address(address,\ + \ asset);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.getLegalEntityByAddress(complianceApiGetLegalEntityByAddressRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.compliance().getLegalEntityByAddress(address, asset);" + - lang: Python + source: "response = fireblocks.compliance.get_legal_entity_by_address(address,\ + \ asset);" + x-accepts: + - application/json /screening/travel_rule/transaction/validate: post: description: |- @@ -22866,7 +22964,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 @@ -22879,7 +22977,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 @@ -22950,9 +23048,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\ @@ -23187,7 +23285,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: @@ -23306,7 +23404,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 @@ -24266,11 +24364,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": @@ -34664,7 +34762,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 @@ -37810,7 +37908,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 @@ -38093,8 +38191,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: @@ -41893,8 +41991,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: @@ -41964,19 +42062,44 @@ components: type: string type: object FeeBreakdown: - oneOf: - - $ref: "#/components/schemas/FeeBreakdown_oneOf" - - $ref: "#/components/schemas/FeeBreakdown_oneOf_1" + description: Fee breakdown details for a transaction estimate + example: + totalFee: totalFee + priorityFee: priorityFee + baseFee: baseFee + rent: rent + properties: + baseFee: + description: Base fee component + type: string + priorityFee: + description: Priority fee component + type: string + rent: + description: "Rent fee for account creation/storage (Solana-specific, optional)" + type: string + totalFee: + description: Total fee amount + type: string + type: object EstimatedFeeDetails: description: Optional detailed fee breakdown for high/medium/low estimates example: - high: null + high: + totalFee: totalFee + priorityFee: priorityFee + baseFee: baseFee + rent: rent low: totalFee: totalFee priorityFee: priorityFee baseFee: baseFee rent: rent - medium: null + medium: + totalFee: totalFee + priorityFee: priorityFee + baseFee: baseFee + rent: rent properties: low: $ref: "#/components/schemas/FeeBreakdown" @@ -42006,13 +42129,21 @@ components: gasPrice: 0.8008281904610115 maxFeePerGasDelta: maxFeePerGasDelta feeDetails: - high: null + high: + totalFee: totalFee + priorityFee: priorityFee + baseFee: baseFee + rent: rent low: totalFee: totalFee priorityFee: priorityFee baseFee: baseFee rent: rent - medium: null + medium: + totalFee: totalFee + priorityFee: priorityFee + baseFee: baseFee + rent: rent medium: gasLimit: gasLimit feePerByte: feePerByte @@ -48472,11 +48603,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: @@ -48542,6 +48675,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 @@ -52420,7 +52565,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 @@ -52451,8 +52596,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 @@ -52701,6 +52848,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: @@ -52729,11 +52893,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: @@ -53077,6 +53262,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 @@ -53096,6 +53320,10 @@ components: country: US email: alexander.johnson@example.com phone: "+14155551234" + idNumber: "12345678901" + idType: PASSPORT + additionalIdNumber: BVN987654321 + additionalIdType: BVN properties: externalReferenceId: type: string @@ -53118,6 +53346,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 @@ -54411,6 +54651,8 @@ components: - KLAY_KAIA_TEST - APECHAIN - APECHAIN_TEST + - CRONOS + - CRONOS_TEST type: string description: type: string @@ -54576,6 +54818,8 @@ components: - KLAY_KAIA_TEST - APECHAIN - APECHAIN_TEST + - CRONOS + - CRONOS_TEST type: string description: type: string @@ -54679,6 +54923,8 @@ components: - KLAY_KAIA_TEST - APECHAIN - APECHAIN_TEST + - CRONOS + - CRONOS_TEST type: string contractAddress: description: Collection contract standard @@ -55045,6 +55291,46 @@ components: required: - approve type: object + AddressRegistryLegalEntity: + description: Legal entity resolved for an address-registry lookup + example: + companyId: 550e8400-e29b-41d4-a716-446655440000 + countryCode: US + companyName: ACME Corporation + properties: + companyName: + description: Legal entity / company display name + example: ACME Corporation + type: string + countryCode: + description: Jurisdiction country code (e.g. ISO 3166-1 alpha-2) + example: US + type: string + companyId: + description: Company identifier for the resolved legal entity (UUID) + example: 550e8400-e29b-41d4-a716-446655440000 + format: uuid + type: string + required: + - companyId + - companyName + - countryCode + type: object + AddressRegistryError: + description: Error body for address-registry 4xx and 5xx. + example: + code: 0 + message: message + properties: + code: + description: "Numeric error code (2140–2143) for 403, 404 and 5xx responses." + type: integer + message: + description: Human-readable error message + type: string + required: + - message + type: object TravelRuleNotationEnum: items: enum: @@ -70526,40 +70812,6 @@ components: type: string - description: Number (deprecated) type: number - FeeBreakdown_oneOf: - description: Solana-specific fee breakdown - example: - totalFee: totalFee - priorityFee: priorityFee - baseFee: baseFee - rent: rent - properties: - baseFee: - description: Base fee for Solana transaction - type: string - priorityFee: - description: Priority fee for Solana transaction - type: string - rent: - description: Rent fee for Solana account creation/storage - type: string - totalFee: - description: Total fee amount - type: string - type: object - FeeBreakdown_oneOf_1: - description: Generic fee breakdown for other blockchains - properties: - baseFee: - description: Base fee component - type: string - priorityFee: - description: Priority fee component - type: string - totalFee: - description: Total fee amount - type: string - type: object ErrorResponse_error: example: type: INTERNAL diff --git a/build.gradle b/build.gradle index 63b8a60c..62baedca 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '14.0.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/AddressRegistryError.md b/docs/AddressRegistryError.md new file mode 100644 index 00000000..b4237b4d --- /dev/null +++ b/docs/AddressRegistryError.md @@ -0,0 +1,15 @@ + + +# AddressRegistryError + +Error body for address-registry 4xx and 5xx. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Integer** | Numeric error code (2140–2143) for 403, 404 and 5xx responses. | [optional] | +|**message** | **String** | Human-readable error message | | + + + diff --git a/docs/AddressRegistryLegalEntity.md b/docs/AddressRegistryLegalEntity.md new file mode 100644 index 00000000..1be29916 --- /dev/null +++ b/docs/AddressRegistryLegalEntity.md @@ -0,0 +1,16 @@ + + +# AddressRegistryLegalEntity + +Legal entity resolved for an address-registry lookup + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**companyName** | **String** | Legal entity / company display name | | +|**countryCode** | **String** | Jurisdiction country code (e.g. ISO 3166-1 alpha-2) | | +|**companyId** | **UUID** | Company identifier for the resolved legal entity (UUID) | | + + + 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/ComplianceApi.md b/docs/ComplianceApi.md index 88b74211..6923a8af 100644 --- a/docs/ComplianceApi.md +++ b/docs/ComplianceApi.md @@ -6,6 +6,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ |------------- | ------------- | -------------| | [**getAmlPostScreeningPolicy**](ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy | | [**getAmlScreeningPolicy**](ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy | +| [**getLegalEntityByAddress**](ComplianceApi.md#getLegalEntityByAddress) | **GET** /address_registry/legal_entity | Look up legal entity by address and asset | | [**getPostScreeningPolicy**](ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy | | [**getScreeningFullDetails**](ComplianceApi.md#getScreeningFullDetails) | **GET** /screening/transaction/{txId} | Provides all the compliance details for the given screened transaction. | | [**getScreeningPolicy**](ComplianceApi.md#getScreeningPolicy) | **GET** /screening/travel_rule/screening_policy | Travel Rule - View Screening Policy | @@ -173,6 +174,94 @@ No authorization required | **200** | Screening policy retrieved successfully. | - | +## getLegalEntityByAddress + +> CompletableFuture> getLegalEntityByAddress getLegalEntityByAddress(address, asset) + +Look up legal entity by address and asset + +Returns the legal entity (company name, jurisdiction, companyId) for the given blockchain address and optional asset. Both the requester and the owner of the address must be opted in to the address registry. + +### 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.ComplianceApi; +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 address = "0x742d35cc6634c0532925a3b844bc9e7595f0beb0"; // String | Blockchain address to look up + String asset = "ETH"; // String | Asset ID (e.g. ETH, BTC). Optional. + try { + CompletableFuture> response = fireblocks.compliance().getLegalEntityByAddress(address, asset); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling ComplianceApi#getLegalEntityByAddress"); + 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 ComplianceApi#getLegalEntityByAddress"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **address** | **String**| Blockchain address to look up | | +| **asset** | **String**| Asset ID (e.g. ETH, BTC). Optional. | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Legal entity found | * X-Request-ID -
| +| **400** | Bad request – missing or invalid address or asset | * X-Request-ID -
| +| **403** | Forbidden – requester or address owner not opted in to the address registry (error codes 2140, 2141) | * X-Request-ID -
| +| **404** | Address not resolved or entity not found (error code 2142) | * X-Request-ID -
| +| **0** | Error Response | * X-Request-ID -
| + + ## getPostScreeningPolicy > CompletableFuture> getPostScreeningPolicy getPostScreeningPolicy() 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/FeeBreakdown.md b/docs/FeeBreakdown.md index 58bc06b3..9a4c0a0d 100644 --- a/docs/FeeBreakdown.md +++ b/docs/FeeBreakdown.md @@ -2,36 +2,16 @@ # FeeBreakdown -## oneOf schemas -* [FeeBreakdownOneOf](FeeBreakdownOneOf.md) -* [FeeBreakdownOneOf1](FeeBreakdownOneOf1.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.FeeBreakdown; -import com.fireblocks.sdk.model.FeeBreakdownOneOf; -import com.fireblocks.sdk.model.FeeBreakdownOneOf1; - -public class Example { - public static void main(String[] args) { - FeeBreakdown exampleFeeBreakdown = new FeeBreakdown(); - - // create a new FeeBreakdownOneOf - FeeBreakdownOneOf exampleFeeBreakdownOneOf = new FeeBreakdownOneOf(); - // set FeeBreakdown to FeeBreakdownOneOf - exampleFeeBreakdown.setActualInstance(exampleFeeBreakdownOneOf); - // to get back the FeeBreakdownOneOf set earlier - FeeBreakdownOneOf testFeeBreakdownOneOf = (FeeBreakdownOneOf) exampleFeeBreakdown.getActualInstance(); - - // create a new FeeBreakdownOneOf1 - FeeBreakdownOneOf1 exampleFeeBreakdownOneOf1 = new FeeBreakdownOneOf1(); - // set FeeBreakdown to FeeBreakdownOneOf1 - exampleFeeBreakdown.setActualInstance(exampleFeeBreakdownOneOf1); - // to get back the FeeBreakdownOneOf1 set earlier - FeeBreakdownOneOf1 testFeeBreakdownOneOf1 = (FeeBreakdownOneOf1) exampleFeeBreakdown.getActualInstance(); - } -} -``` +Fee breakdown details for a transaction estimate + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**baseFee** | **String** | Base fee component | [optional] | +|**priorityFee** | **String** | Priority fee component | [optional] | +|**rent** | **String** | Rent fee for account creation/storage (Solana-specific, optional) | [optional] | +|**totalFee** | **String** | Total fee amount | [optional] | + diff --git a/docs/FeeBreakdownOneOf.md b/docs/FeeBreakdownOneOf.md deleted file mode 100644 index 7e7f1250..00000000 --- a/docs/FeeBreakdownOneOf.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# FeeBreakdownOneOf - -Solana-specific fee breakdown - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseFee** | **String** | Base fee for Solana transaction | [optional] | -|**priorityFee** | **String** | Priority fee for Solana transaction | [optional] | -|**rent** | **String** | Rent fee for Solana account creation/storage | [optional] | -|**totalFee** | **String** | Total fee amount | [optional] | - - - diff --git a/docs/FeeBreakdownOneOf1.md b/docs/FeeBreakdownOneOf1.md deleted file mode 100644 index 3bc4ba7c..00000000 --- a/docs/FeeBreakdownOneOf1.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# FeeBreakdownOneOf1 - -Generic fee breakdown for other blockchains - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**baseFee** | **String** | Base fee component | [optional] | -|**priorityFee** | **String** | Priority fee component | [optional] | -|**totalFee** | **String** | Total fee amount | [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/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/pom.xml b/pom.xml index 4b1c2f9c..89176ce6 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 14.0.0 + 0.0.0 https://github.com/fireblocks/java-sdk The Fireblocks Official SDK is a comprehensive software development kit that enables seamless integration and interaction with the Fireblocks platform. Fireblocks is a cutting-edge blockchain infrastructure platform that provides secure and scalable solutions for managing digital assets and transactions. This SDK empowers developers to build robust applications that can interact with the Fireblocks platform's features, including creating and managing vault accounts, initiating secure transactions, managing assets, and more. It abstracts complex interactions with the Fireblocks API, making it easier for developers to leverage the platform's capabilities while adhering to best practices in security and efficiency. diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java index df893fca..aa53bae8 100644 --- a/src/main/java/com/fireblocks/sdk/Configuration.java +++ b/src/main/java/com/fireblocks/sdk/Configuration.java @@ -21,7 +21,7 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") public class Configuration { - public static final String VERSION = "14.0.0"; + public static final String VERSION = "0.0.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java index 122bb411..7760ef1b 100644 --- a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java @@ -18,7 +18,9 @@ import com.fireblocks.sdk.ApiClient; import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; +import com.fireblocks.sdk.model.AddressRegistryLegalEntity; import com.fireblocks.sdk.model.AmlVerdictManualRequest; import com.fireblocks.sdk.model.AmlVerdictManualResponse; import com.fireblocks.sdk.model.ComplianceResultFullPayload; @@ -34,6 +36,9 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.StringJoiner; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; @@ -203,6 +208,93 @@ private HttpRequest.Builder getAmlScreeningPolicyRequestBuilder() throws ApiExce } return localVarRequestBuilder; } + /** + * Look up legal entity by address and asset Returns the legal entity (company name, + * jurisdiction, companyId) for the given blockchain address and optional asset. Both the + * requester and the owner of the address must be opted in to the address registry. + * + * @param address Blockchain address to look up (required) + * @param asset Asset ID (e.g. ETH, BTC). Optional. (optional) + * @return CompletableFuture<ApiResponse<AddressRegistryLegalEntity>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> getLegalEntityByAddress( + String address, String asset) throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + getLegalEntityByAddressRequestBuilder(address, asset); + 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( + "getLegalEntityByAddress", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + AddressRegistryLegalEntity>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder getLegalEntityByAddressRequestBuilder(String address, String asset) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty("getLegalEntityByAddress", "address", address); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/address_registry/legal_entity"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "address"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("address", address)); + localVarQueryParameterBaseName = "asset"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("asset", asset)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri( + URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } /** * Travel Rule - View Post-Screening Policy Get the post-screening policy for Travel Rule. * 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/AddressRegistryError.java b/src/main/java/com/fireblocks/sdk/model/AddressRegistryError.java new file mode 100644 index 00000000..1381f55d --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AddressRegistryError.java @@ -0,0 +1,187 @@ +/* + * 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; + +/** Error body for address-registry 4xx and 5xx. */ +@JsonPropertyOrder({ + AddressRegistryError.JSON_PROPERTY_CODE, + AddressRegistryError.JSON_PROPERTY_MESSAGE +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class AddressRegistryError { + public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nonnull private String message; + + public AddressRegistryError() {} + + @JsonCreator + public AddressRegistryError( + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { + this.message = message; + } + + public AddressRegistryError code(@jakarta.annotation.Nullable Integer code) { + this.code = code; + return this; + } + + /** + * Numeric error code (2140–2143) for 403, 404 and 5xx responses. + * + * @return code + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(@jakarta.annotation.Nullable Integer code) { + this.code = code; + } + + public AddressRegistryError message(@jakarta.annotation.Nonnull String message) { + this.message = message; + return this; + } + + /** + * Human-readable error message + * + * @return message + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getMessage() { + return message; + } + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(@jakarta.annotation.Nonnull String message) { + this.message = message; + } + + /** Return true if this AddressRegistryError object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddressRegistryError addressRegistryError = (AddressRegistryError) o; + return Objects.equals(this.code, addressRegistryError.code) + && Objects.equals(this.message, addressRegistryError.message); + } + + @Override + public int hashCode() { + return Objects.hash(code, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddressRegistryError {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).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 `code` to the URL query string + if (getCode() != null) { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCode())))); + } + + // add `message` to the URL query string + if (getMessage() != null) { + joiner.add( + String.format( + "%smessage%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/AddressRegistryLegalEntity.java b/src/main/java/com/fireblocks/sdk/model/AddressRegistryLegalEntity.java new file mode 100644 index 00000000..ffd85aaf --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AddressRegistryLegalEntity.java @@ -0,0 +1,231 @@ +/* + * 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; +import java.util.UUID; + +/** Legal entity resolved for an address-registry lookup */ +@JsonPropertyOrder({ + AddressRegistryLegalEntity.JSON_PROPERTY_COMPANY_NAME, + AddressRegistryLegalEntity.JSON_PROPERTY_COUNTRY_CODE, + AddressRegistryLegalEntity.JSON_PROPERTY_COMPANY_ID +}) +@jakarta.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.14.0") +public class AddressRegistryLegalEntity { + public static final String JSON_PROPERTY_COMPANY_NAME = "companyName"; + @jakarta.annotation.Nonnull private String companyName; + + public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode"; + @jakarta.annotation.Nonnull private String countryCode; + + public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; + @jakarta.annotation.Nonnull private UUID companyId; + + public AddressRegistryLegalEntity() {} + + @JsonCreator + public AddressRegistryLegalEntity( + @JsonProperty(value = JSON_PROPERTY_COMPANY_NAME, required = true) String companyName, + @JsonProperty(value = JSON_PROPERTY_COUNTRY_CODE, required = true) String countryCode, + @JsonProperty(value = JSON_PROPERTY_COMPANY_ID, required = true) UUID companyId) { + this.companyName = companyName; + this.countryCode = countryCode; + this.companyId = companyId; + } + + public AddressRegistryLegalEntity companyName(@jakarta.annotation.Nonnull String companyName) { + this.companyName = companyName; + return this; + } + + /** + * Legal entity / company display name + * + * @return companyName + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMPANY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCompanyName() { + return companyName; + } + + @JsonProperty(JSON_PROPERTY_COMPANY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCompanyName(@jakarta.annotation.Nonnull String companyName) { + this.companyName = companyName; + } + + public AddressRegistryLegalEntity countryCode(@jakarta.annotation.Nonnull String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * Jurisdiction country code (e.g. ISO 3166-1 alpha-2) + * + * @return countryCode + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCountryCode() { + return countryCode; + } + + @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCountryCode(@jakarta.annotation.Nonnull String countryCode) { + this.countryCode = countryCode; + } + + public AddressRegistryLegalEntity companyId(@jakarta.annotation.Nonnull UUID companyId) { + this.companyId = companyId; + return this; + } + + /** + * Company identifier for the resolved legal entity (UUID) + * + * @return companyId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMPANY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public UUID getCompanyId() { + return companyId; + } + + @JsonProperty(JSON_PROPERTY_COMPANY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCompanyId(@jakarta.annotation.Nonnull UUID companyId) { + this.companyId = companyId; + } + + /** Return true if this AddressRegistryLegalEntity object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddressRegistryLegalEntity addressRegistryLegalEntity = (AddressRegistryLegalEntity) o; + return Objects.equals(this.companyName, addressRegistryLegalEntity.companyName) + && Objects.equals(this.countryCode, addressRegistryLegalEntity.countryCode) + && Objects.equals(this.companyId, addressRegistryLegalEntity.companyId); + } + + @Override + public int hashCode() { + return Objects.hash(companyName, countryCode, companyId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddressRegistryLegalEntity {\n"); + sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append(" companyId: ").append(toIndentedString(companyId)).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 `companyName` to the URL query string + if (getCompanyName() != null) { + joiner.add( + String.format( + "%scompanyName%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCompanyName())))); + } + + // add `countryCode` to the URL query string + if (getCountryCode() != null) { + joiner.add( + String.format( + "%scountryCode%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCountryCode())))); + } + + // add `companyId` to the URL query string + if (getCompanyId() != null) { + joiner.add( + String.format( + "%scompanyId%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getCompanyId())))); + } + + return joiner.toString(); + } +} 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/FeeBreakdown.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java index 7f8b7190..1cf43954 100644 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java +++ b/src/main/java/com/fireblocks/sdk/model/FeeBreakdown.java @@ -13,256 +13,172 @@ package com.fireblocks.sdk.model; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import com.fireblocks.sdk.JSON; -import java.io.IOException; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; +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; -import java.util.logging.Level; -import java.util.logging.Logger; +/** Fee breakdown details for a transaction estimate */ +@JsonPropertyOrder({ + FeeBreakdown.JSON_PROPERTY_BASE_FEE, + FeeBreakdown.JSON_PROPERTY_PRIORITY_FEE, + FeeBreakdown.JSON_PROPERTY_RENT, + FeeBreakdown.JSON_PROPERTY_TOTAL_FEE +}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -@JsonDeserialize(using = FeeBreakdown.FeeBreakdownDeserializer.class) -@JsonSerialize(using = FeeBreakdown.FeeBreakdownSerializer.class) -public class FeeBreakdown extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(FeeBreakdown.class.getName()); - - public static class FeeBreakdownSerializer extends StdSerializer { - public FeeBreakdownSerializer(Class t) { - super(t); - } - - public FeeBreakdownSerializer() { - this(null); - } +public class FeeBreakdown { + public static final String JSON_PROPERTY_BASE_FEE = "baseFee"; + @jakarta.annotation.Nullable private String baseFee; - @Override - public void serialize(FeeBreakdown value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } + public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; + @jakarta.annotation.Nullable private String priorityFee; - public static class FeeBreakdownDeserializer extends StdDeserializer { - public FeeBreakdownDeserializer() { - this(FeeBreakdown.class); - } + public static final String JSON_PROPERTY_RENT = "rent"; + @jakarta.annotation.Nullable private String rent; - public FeeBreakdownDeserializer(Class vc) { - super(vc); - } + public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee"; + @jakarta.annotation.Nullable private String totalFee; - @Override - public FeeBreakdown deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - Object deserialized = null; - boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); - int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize FeeBreakdownOneOf - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (FeeBreakdownOneOf.class.equals(Integer.class) - || FeeBreakdownOneOf.class.equals(Long.class) - || FeeBreakdownOneOf.class.equals(Float.class) - || FeeBreakdownOneOf.class.equals(Double.class) - || FeeBreakdownOneOf.class.equals(Boolean.class) - || FeeBreakdownOneOf.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((FeeBreakdownOneOf.class.equals(Integer.class) - || FeeBreakdownOneOf.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((FeeBreakdownOneOf.class.equals(Float.class) - || FeeBreakdownOneOf.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (FeeBreakdownOneOf.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (FeeBreakdownOneOf.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(FeeBreakdownOneOf.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'FeeBreakdownOneOf'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'FeeBreakdownOneOf'", e); - } - - // deserialize FeeBreakdownOneOf1 - try { - boolean attemptParsing = true; - // ensure that we respect type coercion as set on the client ObjectMapper - if (FeeBreakdownOneOf1.class.equals(Integer.class) - || FeeBreakdownOneOf1.class.equals(Long.class) - || FeeBreakdownOneOf1.class.equals(Float.class) - || FeeBreakdownOneOf1.class.equals(Double.class) - || FeeBreakdownOneOf1.class.equals(Boolean.class) - || FeeBreakdownOneOf1.class.equals(String.class)) { - attemptParsing = typeCoercion; - if (!attemptParsing) { - attemptParsing |= - ((FeeBreakdownOneOf1.class.equals(Integer.class) - || FeeBreakdownOneOf1.class.equals(Long.class)) - && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= - ((FeeBreakdownOneOf1.class.equals(Float.class) - || FeeBreakdownOneOf1.class.equals(Double.class)) - && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= - (FeeBreakdownOneOf1.class.equals(Boolean.class) - && (token == JsonToken.VALUE_FALSE - || token == JsonToken.VALUE_TRUE)); - attemptParsing |= - (FeeBreakdownOneOf1.class.equals(String.class) - && token == JsonToken.VALUE_STRING); - } - } - if (attemptParsing) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(FeeBreakdownOneOf1.class); - // TODO: there is no validation against JSON schema constraints - // (min, max, enum, pattern...), this does not perform a strict JSON - // validation, which means the 'match' count may be higher than it should be. - match++; - log.log(Level.FINER, "Input data matches schema 'FeeBreakdownOneOf1'"); - } - } catch (Exception e) { - // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'FeeBreakdownOneOf1'", e); - } - - if (match == 1) { - FeeBreakdown ret = new FeeBreakdown(); - ret.setActualInstance(deserialized); - return ret; - } - throw new IOException( - String.format( - "Failed deserialization for FeeBreakdown: %d classes match result," - + " expected 1", - match)); - } + public FeeBreakdown() {} - /** Handle deserialization of the 'null' value. */ - @Override - public FeeBreakdown getNullValue(DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "FeeBreakdown cannot be null"); - } + public FeeBreakdown baseFee(@jakarta.annotation.Nullable String baseFee) { + this.baseFee = baseFee; + return this; } - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap<>(); + /** + * Base fee component + * + * @return baseFee + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BASE_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaseFee() { + return baseFee; + } - public FeeBreakdown() { - super("oneOf", Boolean.FALSE); + @JsonProperty(JSON_PROPERTY_BASE_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { + this.baseFee = baseFee; } - public FeeBreakdown(FeeBreakdownOneOf o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + public FeeBreakdown priorityFee(@jakarta.annotation.Nullable String priorityFee) { + this.priorityFee = priorityFee; + return this; } - public FeeBreakdown(FeeBreakdownOneOf1 o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); + /** + * Priority fee component + * + * @return priorityFee + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPriorityFee() { + return priorityFee; } - static { - schemas.put("FeeBreakdownOneOf", FeeBreakdownOneOf.class); - schemas.put("FeeBreakdownOneOf1", FeeBreakdownOneOf1.class); - JSON.registerDescendants(FeeBreakdown.class, Collections.unmodifiableMap(schemas)); + @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { + this.priorityFee = priorityFee; } - @Override - public Map> getSchemas() { - return FeeBreakdown.schemas; + public FeeBreakdown rent(@jakarta.annotation.Nullable String rent) { + this.rent = rent; + return this; } /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: FeeBreakdownOneOf, FeeBreakdownOneOf1 + * Rent fee for account creation/storage (Solana-specific, optional) * - *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be - * a composed schema (allOf, anyOf, oneOf). + * @return rent */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(FeeBreakdownOneOf.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRent() { + return rent; + } - if (JSON.isInstanceOf(FeeBreakdownOneOf1.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } + @JsonProperty(JSON_PROPERTY_RENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRent(@jakarta.annotation.Nullable String rent) { + this.rent = rent; + } - throw new RuntimeException( - "Invalid instance type. Must be FeeBreakdownOneOf, FeeBreakdownOneOf1"); + public FeeBreakdown totalFee(@jakarta.annotation.Nullable String totalFee) { + this.totalFee = totalFee; + return this; } /** - * Get the actual instance, which can be the following: FeeBreakdownOneOf, FeeBreakdownOneOf1 + * Total fee amount * - * @return The actual instance (FeeBreakdownOneOf, FeeBreakdownOneOf1) + * @return totalFee */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTotalFee() { + return totalFee; + } + + @JsonProperty(JSON_PROPERTY_TOTAL_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalFee(@jakarta.annotation.Nullable String totalFee) { + this.totalFee = totalFee; + } + + /** Return true if this FeeBreakdown object is equal to o. */ @Override - public Object getActualInstance() { - return super.getActualInstance(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeeBreakdown feeBreakdown = (FeeBreakdown) o; + return Objects.equals(this.baseFee, feeBreakdown.baseFee) + && Objects.equals(this.priorityFee, feeBreakdown.priorityFee) + && Objects.equals(this.rent, feeBreakdown.rent) + && Objects.equals(this.totalFee, feeBreakdown.totalFee); } - /** - * Get the actual instance of `FeeBreakdownOneOf`. If the actual instance is not - * `FeeBreakdownOneOf`, the ClassCastException will be thrown. - * - * @return The actual instance of `FeeBreakdownOneOf` - * @throws ClassCastException if the instance is not `FeeBreakdownOneOf` - */ - public FeeBreakdownOneOf getFeeBreakdownOneOf() throws ClassCastException { - return (FeeBreakdownOneOf) super.getActualInstance(); + @Override + public int hashCode() { + return Objects.hash(baseFee, priorityFee, rent, totalFee); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeeBreakdown {\n"); + sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n"); + sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n"); + sb.append(" rent: ").append(toIndentedString(rent)).append("\n"); + sb.append(" totalFee: ").append(toIndentedString(totalFee)).append("\n"); + sb.append("}"); + return sb.toString(); } /** - * Get the actual instance of `FeeBreakdownOneOf1`. If the actual instance is not - * `FeeBreakdownOneOf1`, the ClassCastException will be thrown. - * - * @return The actual instance of `FeeBreakdownOneOf1` - * @throws ClassCastException if the instance is not `FeeBreakdownOneOf1` + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). */ - public FeeBreakdownOneOf1 getFeeBreakdownOneOf1() throws ClassCastException { - return (FeeBreakdownOneOf1) super.getActualInstance(); + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); } /** @@ -297,22 +213,46 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - if (getActualInstance() instanceof FeeBreakdownOneOf) { - if (getActualInstance() != null) { - joiner.add( - ((FeeBreakdownOneOf) getActualInstance()) - .toUrlQueryString(prefix + "one_of_0" + suffix)); - } - return joiner.toString(); + // add `baseFee` to the URL query string + if (getBaseFee() != null) { + joiner.add( + String.format( + "%sbaseFee%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); + } + + // add `priorityFee` to the URL query string + if (getPriorityFee() != null) { + joiner.add( + String.format( + "%spriorityFee%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); + } + + // add `rent` to the URL query string + if (getRent() != null) { + joiner.add( + String.format( + "%srent%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getRent())))); } - if (getActualInstance() instanceof FeeBreakdownOneOf1) { - if (getActualInstance() != null) { - joiner.add( - ((FeeBreakdownOneOf1) getActualInstance()) - .toUrlQueryString(prefix + "one_of_1" + suffix)); - } - return joiner.toString(); + + // add `totalFee` to the URL query string + if (getTotalFee() != null) { + joiner.add( + String.format( + "%stotalFee%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getTotalFee())))); } - return null; + + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java deleted file mode 100644 index 8d4e01f3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * 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.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; - -/** Solana-specific fee breakdown */ -@JsonPropertyOrder({ - FeeBreakdownOneOf.JSON_PROPERTY_BASE_FEE, - FeeBreakdownOneOf.JSON_PROPERTY_PRIORITY_FEE, - FeeBreakdownOneOf.JSON_PROPERTY_RENT, - FeeBreakdownOneOf.JSON_PROPERTY_TOTAL_FEE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class FeeBreakdownOneOf { - public static final String JSON_PROPERTY_BASE_FEE = "baseFee"; - @jakarta.annotation.Nullable private String baseFee; - - public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - @jakarta.annotation.Nullable private String priorityFee; - - public static final String JSON_PROPERTY_RENT = "rent"; - @jakarta.annotation.Nullable private String rent; - - public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee"; - @jakarta.annotation.Nullable private String totalFee; - - public FeeBreakdownOneOf() {} - - public FeeBreakdownOneOf baseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; - return this; - } - - /** - * Base fee for Solana transaction - * - * @return baseFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaseFee() { - return baseFee; - } - - @JsonProperty(JSON_PROPERTY_BASE_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; - } - - public FeeBreakdownOneOf priorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; - return this; - } - - /** - * Priority fee for Solana transaction - * - * @return priorityFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPriorityFee() { - return priorityFee; - } - - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; - } - - public FeeBreakdownOneOf rent(@jakarta.annotation.Nullable String rent) { - this.rent = rent; - return this; - } - - /** - * Rent fee for Solana account creation/storage - * - * @return rent - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRent() { - return rent; - } - - @JsonProperty(JSON_PROPERTY_RENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRent(@jakarta.annotation.Nullable String rent) { - this.rent = rent; - } - - public FeeBreakdownOneOf totalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; - return this; - } - - /** - * Total fee amount - * - * @return totalFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTotalFee() { - return totalFee; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; - } - - /** Return true if this FeeBreakdown_oneOf object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FeeBreakdownOneOf feeBreakdownOneOf = (FeeBreakdownOneOf) o; - return Objects.equals(this.baseFee, feeBreakdownOneOf.baseFee) - && Objects.equals(this.priorityFee, feeBreakdownOneOf.priorityFee) - && Objects.equals(this.rent, feeBreakdownOneOf.rent) - && Objects.equals(this.totalFee, feeBreakdownOneOf.totalFee); - } - - @Override - public int hashCode() { - return Objects.hash(baseFee, priorityFee, rent, totalFee); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FeeBreakdownOneOf {\n"); - sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n"); - sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n"); - sb.append(" rent: ").append(toIndentedString(rent)).append("\n"); - sb.append(" totalFee: ").append(toIndentedString(totalFee)).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 `baseFee` to the URL query string - if (getBaseFee() != null) { - joiner.add( - String.format( - "%sbaseFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); - } - - // add `priorityFee` to the URL query string - if (getPriorityFee() != null) { - joiner.add( - String.format( - "%spriorityFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); - } - - // add `rent` to the URL query string - if (getRent() != null) { - joiner.add( - String.format( - "%srent%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getRent())))); - } - - // add `totalFee` to the URL query string - if (getTotalFee() != null) { - joiner.add( - String.format( - "%stotalFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotalFee())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java deleted file mode 100644 index 74fa6836..00000000 --- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * 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.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; - -/** Generic fee breakdown for other blockchains */ -@JsonPropertyOrder({ - FeeBreakdownOneOf1.JSON_PROPERTY_BASE_FEE, - FeeBreakdownOneOf1.JSON_PROPERTY_PRIORITY_FEE, - FeeBreakdownOneOf1.JSON_PROPERTY_TOTAL_FEE -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class FeeBreakdownOneOf1 { - public static final String JSON_PROPERTY_BASE_FEE = "baseFee"; - @jakarta.annotation.Nullable private String baseFee; - - public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee"; - @jakarta.annotation.Nullable private String priorityFee; - - public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee"; - @jakarta.annotation.Nullable private String totalFee; - - public FeeBreakdownOneOf1() {} - - public FeeBreakdownOneOf1 baseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; - return this; - } - - /** - * Base fee component - * - * @return baseFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BASE_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaseFee() { - return baseFee; - } - - @JsonProperty(JSON_PROPERTY_BASE_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaseFee(@jakarta.annotation.Nullable String baseFee) { - this.baseFee = baseFee; - } - - public FeeBreakdownOneOf1 priorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; - return this; - } - - /** - * Priority fee component - * - * @return priorityFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPriorityFee() { - return priorityFee; - } - - @JsonProperty(JSON_PROPERTY_PRIORITY_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) { - this.priorityFee = priorityFee; - } - - public FeeBreakdownOneOf1 totalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; - return this; - } - - /** - * Total fee amount - * - * @return totalFee - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTotalFee() { - return totalFee; - } - - @JsonProperty(JSON_PROPERTY_TOTAL_FEE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalFee(@jakarta.annotation.Nullable String totalFee) { - this.totalFee = totalFee; - } - - /** Return true if this FeeBreakdown_oneOf_1 object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - FeeBreakdownOneOf1 feeBreakdownOneOf1 = (FeeBreakdownOneOf1) o; - return Objects.equals(this.baseFee, feeBreakdownOneOf1.baseFee) - && Objects.equals(this.priorityFee, feeBreakdownOneOf1.priorityFee) - && Objects.equals(this.totalFee, feeBreakdownOneOf1.totalFee); - } - - @Override - public int hashCode() { - return Objects.hash(baseFee, priorityFee, totalFee); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FeeBreakdownOneOf1 {\n"); - sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n"); - sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n"); - sb.append(" totalFee: ").append(toIndentedString(totalFee)).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 `baseFee` to the URL query string - if (getBaseFee() != null) { - joiner.add( - String.format( - "%sbaseFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getBaseFee())))); - } - - // add `priorityFee` to the URL query string - if (getPriorityFee() != null) { - joiner.add( - String.format( - "%spriorityFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee())))); - } - - // add `totalFee` to the URL query string - if (getTotalFee() != null) { - joiner.add( - String.format( - "%stotalFee%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTotalFee())))); - } - - 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/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java index d4ae1664..ac14955c 100644 --- a/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java @@ -15,6 +15,7 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.model.AddressRegistryLegalEntity; import com.fireblocks.sdk.model.AmlVerdictManualRequest; import com.fireblocks.sdk.model.AmlVerdictManualResponse; import com.fireblocks.sdk.model.ComplianceResultFullPayload; @@ -59,6 +60,23 @@ public void getAmlScreeningPolicyTest() throws ApiException { api.getAmlScreeningPolicy(); } + /** + * Look up legal entity by address and asset + * + *

Returns the legal entity (company name, jurisdiction, companyId) for the given blockchain + * address and optional asset. Both the requester and the owner of the address must be opted in + * to the address registry. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLegalEntityByAddressTest() throws ApiException { + String address = null; + String asset = null; + CompletableFuture> response = + api.getLegalEntityByAddress(address, asset); + } + /** * Travel Rule - View Post-Screening Policy * 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/AddressRegistryErrorTest.java b/src/test/java/com/fireblocks/sdk/model/AddressRegistryErrorTest.java new file mode 100644 index 00000000..90aa71d0 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AddressRegistryErrorTest.java @@ -0,0 +1,39 @@ +/* + * 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 AddressRegistryError */ +class AddressRegistryErrorTest { + private final AddressRegistryError model = new AddressRegistryError(); + + /** Model tests for AddressRegistryError */ + @Test + void testAddressRegistryError() { + // TODO: test AddressRegistryError + } + + /** Test the property 'code' */ + @Test + void codeTest() { + // TODO: test code + } + + /** Test the property 'message' */ + @Test + void messageTest() { + // TODO: test message + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java b/src/test/java/com/fireblocks/sdk/model/AddressRegistryLegalEntityTest.java similarity index 53% rename from src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java rename to src/test/java/com/fireblocks/sdk/model/AddressRegistryLegalEntityTest.java index 45f558fe..fdf8d83b 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddressRegistryLegalEntityTest.java @@ -15,37 +15,31 @@ import org.junit.jupiter.api.Test; -/** Model tests for FeeBreakdownOneOf */ -class FeeBreakdownOneOfTest { - private final FeeBreakdownOneOf model = new FeeBreakdownOneOf(); +/** Model tests for AddressRegistryLegalEntity */ +class AddressRegistryLegalEntityTest { + private final AddressRegistryLegalEntity model = new AddressRegistryLegalEntity(); - /** Model tests for FeeBreakdownOneOf */ + /** Model tests for AddressRegistryLegalEntity */ @Test - void testFeeBreakdownOneOf() { - // TODO: test FeeBreakdownOneOf + void testAddressRegistryLegalEntity() { + // TODO: test AddressRegistryLegalEntity } - /** Test the property 'baseFee' */ + /** Test the property 'companyName' */ @Test - void baseFeeTest() { - // TODO: test baseFee + void companyNameTest() { + // TODO: test companyName } - /** Test the property 'priorityFee' */ + /** Test the property 'countryCode' */ @Test - void priorityFeeTest() { - // TODO: test priorityFee + void countryCodeTest() { + // TODO: test countryCode } - /** Test the property 'rent' */ + /** Test the property 'companyId' */ @Test - void rentTest() { - // TODO: test rent - } - - /** Test the property 'totalFee' */ - @Test - void totalFeeTest() { - // TODO: test totalFee + void companyIdTest() { + // TODO: test companyId } } 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/FeeBreakdownOneOf1Test.java b/src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java similarity index 57% rename from src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java rename to src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java index 7c7582d2..7b280bb6 100644 --- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java +++ b/src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java @@ -15,31 +15,31 @@ import org.junit.jupiter.api.Test; -/** Model tests for FeeBreakdownOneOf1 */ -class FeeBreakdownOneOf1Test { - private final FeeBreakdownOneOf1 model = new FeeBreakdownOneOf1(); +/** Model tests for QuoteFailure */ +class QuoteFailureTest { + private final QuoteFailure model = new QuoteFailure(); - /** Model tests for FeeBreakdownOneOf1 */ + /** Model tests for QuoteFailure */ @Test - void testFeeBreakdownOneOf1() { - // TODO: test FeeBreakdownOneOf1 + void testQuoteFailure() { + // TODO: test QuoteFailure } - /** Test the property 'baseFee' */ + /** Test the property 'providerId' */ @Test - void baseFeeTest() { - // TODO: test baseFee + void providerIdTest() { + // TODO: test providerId } - /** Test the property 'priorityFee' */ + /** Test the property 'accountId' */ @Test - void priorityFeeTest() { - // TODO: test priorityFee + void accountIdTest() { + // TODO: test accountId } - /** Test the property 'totalFee' */ + /** Test the property 'error' */ @Test - void totalFeeTest() { - // TODO: test totalFee + 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 + } }