From 491b416875dde11146b3b3decf501523ed55e8d6 Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Wed, 1 Jul 2026 11:13:14 +0000 Subject: [PATCH] Generated SDK #1180 --- .openapi-generator/FILES | 18 +- CHANGELOG.md | 239 ------------------ README.md | 14 +- api/openapi.yaml | 36 +-- build.gradle | 2 +- ...quest.md => AddConnectedAccountRequest.md} | 2 +- docs/AddConnectedAccountResponse.md | 13 + ...ntItem.md => AddedConnectedAccountItem.md} | 2 +- docs/ConnectedAccountsBetaApi.md | 20 +- docs/CreateConnectedAccountResponse.md | 13 - pom.xml | 2 +- .../com/fireblocks/sdk/Configuration.java | 2 +- .../sdk/api/ConnectedAccountsBetaApi.java | 33 ++- ...t.java => AddConnectedAccountRequest.java} | 58 ++--- ....java => AddConnectedAccountResponse.java} | 35 ++- ...em.java => AddedConnectedAccountItem.java} | 38 +-- .../sdk/api/ConnectedAccountsBetaApiTest.java | 14 +- ...va => AddConnectedAccountRequestTest.java} | 12 +- ...a => AddConnectedAccountResponseTest.java} | 12 +- ...ava => AddedConnectedAccountItemTest.java} | 12 +- 20 files changed, 165 insertions(+), 412 deletions(-) delete mode 100644 CHANGELOG.md rename docs/{CreateConnectedAccountRequest.md => AddConnectedAccountRequest.md} (96%) create mode 100644 docs/AddConnectedAccountResponse.md rename docs/{CreatedConnectedAccountItem.md => AddedConnectedAccountItem.md} (93%) delete mode 100644 docs/CreateConnectedAccountResponse.md rename src/main/java/com/fireblocks/sdk/model/{CreateConnectedAccountRequest.java => AddConnectedAccountRequest.java} (85%) rename src/main/java/com/fireblocks/sdk/model/{CreateConnectedAccountResponse.java => AddConnectedAccountResponse.java} (80%) rename src/main/java/com/fireblocks/sdk/model/{CreatedConnectedAccountItem.java => AddedConnectedAccountItem.java} (86%) rename src/test/java/com/fireblocks/sdk/model/{CreateConnectedAccountRequestTest.java => AddConnectedAccountRequestTest.java} (81%) rename src/test/java/com/fireblocks/sdk/model/{CreateConnectedAccountResponseTest.java => AddConnectedAccountResponseTest.java} (69%) rename src/test/java/com/fireblocks/sdk/model/{CreatedConnectedAccountItemTest.java => AddedConnectedAccountItemTest.java} (77%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 308d075a..cc9f31b3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -37,11 +37,14 @@ docs/AdapterProcessingResult.md docs/AddAbiRequestDto.md docs/AddAssetToExternalWalletRequest.md docs/AddCollateralRequestBody.md +docs/AddConnectedAccountRequest.md +docs/AddConnectedAccountResponse.md docs/AddContractAssetRequest.md docs/AddCosignerRequest.md docs/AddCosignerResponse.md docs/AddExchangeAccountRequest.md docs/AddExchangeAccountResponse.md +docs/AddedConnectedAccountItem.md docs/AdditionalInfo.md docs/AdditionalInfoRequest.md docs/AdditionalInfoRequestAdditionalInfo.md @@ -264,8 +267,6 @@ docs/CreateAddressResponse.md docs/CreateAddressesReportRequest.md docs/CreateAssetsRequest.md docs/CreateConfigOperationRequest.md -docs/CreateConnectedAccountRequest.md -docs/CreateConnectedAccountResponse.md docs/CreateConnectionRequest.md docs/CreateConnectionResponse.md docs/CreateConsoleUser.md @@ -306,7 +307,6 @@ docs/CreateVaultAssetResponse.md docs/CreateWalletRequest.md docs/CreateWebhookRequest.md docs/CreateWorkflowExecutionRequestParamsInner.md -docs/CreatedConnectedAccountItem.md docs/CustomRoutingDest.md docs/DAppAddressConfig.md docs/DVPSettlement.md @@ -1297,11 +1297,14 @@ src/main/java/com/fireblocks/sdk/model/AdapterProcessingResult.java src/main/java/com/fireblocks/sdk/model/AddAbiRequestDto.java src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequest.java src/main/java/com/fireblocks/sdk/model/AddCollateralRequestBody.java +src/main/java/com/fireblocks/sdk/model/AddConnectedAccountRequest.java +src/main/java/com/fireblocks/sdk/model/AddConnectedAccountResponse.java src/main/java/com/fireblocks/sdk/model/AddContractAssetRequest.java src/main/java/com/fireblocks/sdk/model/AddCosignerRequest.java src/main/java/com/fireblocks/sdk/model/AddCosignerResponse.java src/main/java/com/fireblocks/sdk/model/AddExchangeAccountRequest.java src/main/java/com/fireblocks/sdk/model/AddExchangeAccountResponse.java +src/main/java/com/fireblocks/sdk/model/AddedConnectedAccountItem.java src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequest.java src/main/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfo.java @@ -1513,8 +1516,6 @@ src/main/java/com/fireblocks/sdk/model/CreateAddressResponse.java src/main/java/com/fireblocks/sdk/model/CreateAddressesReportRequest.java src/main/java/com/fireblocks/sdk/model/CreateAssetsRequest.java src/main/java/com/fireblocks/sdk/model/CreateConfigOperationRequest.java -src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountRequest.java -src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountResponse.java src/main/java/com/fireblocks/sdk/model/CreateConnectionRequest.java src/main/java/com/fireblocks/sdk/model/CreateConnectionResponse.java src/main/java/com/fireblocks/sdk/model/CreateConsoleUser.java @@ -1555,7 +1556,6 @@ src/main/java/com/fireblocks/sdk/model/CreateVaultAssetResponse.java src/main/java/com/fireblocks/sdk/model/CreateWalletRequest.java src/main/java/com/fireblocks/sdk/model/CreateWebhookRequest.java src/main/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInner.java -src/main/java/com/fireblocks/sdk/model/CreatedConnectedAccountItem.java src/main/java/com/fireblocks/sdk/model/CustomRoutingDest.java src/main/java/com/fireblocks/sdk/model/DAppAddressConfig.java src/main/java/com/fireblocks/sdk/model/DVPSettlement.java @@ -2485,11 +2485,14 @@ src/test/java/com/fireblocks/sdk/model/AdapterProcessingResultTest.java src/test/java/com/fireblocks/sdk/model/AddAbiRequestDtoTest.java src/test/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestTest.java src/test/java/com/fireblocks/sdk/model/AddCollateralRequestBodyTest.java +src/test/java/com/fireblocks/sdk/model/AddConnectedAccountRequestTest.java +src/test/java/com/fireblocks/sdk/model/AddConnectedAccountResponseTest.java src/test/java/com/fireblocks/sdk/model/AddContractAssetRequestTest.java src/test/java/com/fireblocks/sdk/model/AddCosignerRequestTest.java src/test/java/com/fireblocks/sdk/model/AddCosignerResponseTest.java src/test/java/com/fireblocks/sdk/model/AddExchangeAccountRequestTest.java src/test/java/com/fireblocks/sdk/model/AddExchangeAccountResponseTest.java +src/test/java/com/fireblocks/sdk/model/AddedConnectedAccountItemTest.java src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestAdditionalInfoTest.java src/test/java/com/fireblocks/sdk/model/AdditionalInfoRequestTest.java src/test/java/com/fireblocks/sdk/model/AdditionalInfoTest.java @@ -2701,8 +2704,6 @@ src/test/java/com/fireblocks/sdk/model/CreateAddressResponseTest.java src/test/java/com/fireblocks/sdk/model/CreateAddressesReportRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateAssetsRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateConfigOperationRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountRequestTest.java -src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountResponseTest.java src/test/java/com/fireblocks/sdk/model/CreateConnectionRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateConnectionResponseTest.java src/test/java/com/fireblocks/sdk/model/CreateConsoleUserTest.java @@ -2743,7 +2744,6 @@ src/test/java/com/fireblocks/sdk/model/CreateVaultAssetResponseTest.java src/test/java/com/fireblocks/sdk/model/CreateWalletRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateWebhookRequestTest.java src/test/java/com/fireblocks/sdk/model/CreateWorkflowExecutionRequestParamsInnerTest.java -src/test/java/com/fireblocks/sdk/model/CreatedConnectedAccountItemTest.java src/test/java/com/fireblocks/sdk/model/CustomRoutingDestTest.java src/test/java/com/fireblocks/sdk/model/DAppAddressConfigTest.java src/test/java/com/fireblocks/sdk/model/DVPSettlementTest.java diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 8b386dd7..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,239 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v22.0.0](https://github.com/fireblocks/java-sdk/compare/v15.0.0...v22.0.0) - 2026-06-28 - -### Merged - -- Generated SDK #5347 [`#139`](https://github.com/fireblocks/java-sdk/pull/139) - -## [v15.0.0](https://github.com/fireblocks/java-sdk/compare/v14.1.0...v15.0.0) - 2026-03-15 - -### Merged - -- Generated SDK #3733 (major) [`#128`](https://github.com/fireblocks/java-sdk/pull/128) - -## [v14.1.0](https://github.com/fireblocks/java-sdk/compare/v14.0.0...v14.1.0) - 2026-02-26 - -### Merged - -- Generated SDK #2167 [`#126`](https://github.com/fireblocks/java-sdk/pull/126) - -## [v14.0.0](https://github.com/fireblocks/java-sdk/compare/v13.0.0...v14.0.0) - 2026-02-03 - -### Merged - -- Generated SDK #4746 [`#121`](https://github.com/fireblocks/java-sdk/pull/121) - -## [v13.0.0](https://github.com/fireblocks/java-sdk/compare/v12.1.3...v13.0.0) - 2025-11-13 - -### Merged - -- Generated SDK #5834 [`#116`](https://github.com/fireblocks/java-sdk/pull/116) - -## [v12.1.3](https://github.com/fireblocks/java-sdk/compare/v12.1.2...v12.1.3) - 2025-10-22 - -### Merged - -- Generated SDK #8293 [`#115`](https://github.com/fireblocks/java-sdk/pull/115) - -## [v12.1.2](https://github.com/fireblocks/java-sdk/compare/v12.1.1...v12.1.2) - 2025-09-29 - -### Merged - -- Generated SDK #6061 [`#113`](https://github.com/fireblocks/java-sdk/pull/113) - -## [v12.1.1](https://github.com/fireblocks/java-sdk/compare/v12.1.0...v12.1.1) - 2025-09-10 - -### Merged - -- Generated SDK #1410 [`#111`](https://github.com/fireblocks/java-sdk/pull/111) - -## [v12.1.0](https://github.com/fireblocks/java-sdk/compare/v12.0.0...v12.1.0) - 2025-09-09 - -### Merged - -- Generated SDK #4521 [`#109`](https://github.com/fireblocks/java-sdk/pull/109) - -## [v12.0.0](https://github.com/fireblocks/java-sdk/compare/v11.2.0...v12.0.0) - 2025-09-01 - -### Merged - -- Generated SDK #7741 [`#108`](https://github.com/fireblocks/java-sdk/pull/108) - -## [v11.2.0](https://github.com/fireblocks/java-sdk/compare/v11.1.0...v11.2.0) - 2025-08-21 - -### Merged - -- Generated SDK #3302 [`#107`](https://github.com/fireblocks/java-sdk/pull/107) - -## [v11.1.0](https://github.com/fireblocks/java-sdk/compare/v11.0.0...v11.1.0) - 2025-08-11 - -### Merged - -- Generated SDK #1782 [`#105`](https://github.com/fireblocks/java-sdk/pull/105) - -## [v11.0.0](https://github.com/fireblocks/java-sdk/compare/v10.4.0...v11.0.0) - 2025-07-15 - -### Merged - -- Generated SDK #5610 [`#103`](https://github.com/fireblocks/java-sdk/pull/103) - -## [v10.4.0](https://github.com/fireblocks/java-sdk/compare/v10.3.0...v10.4.0) - 2025-06-29 - -### Merged - -- Generated SDK #1492 [`#101`](https://github.com/fireblocks/java-sdk/pull/101) - -## [v10.3.0](https://github.com/fireblocks/java-sdk/compare/v10.2.0...v10.3.0) - 2025-06-18 - -### Merged - -- Generated SDK #4009 [`#99`](https://github.com/fireblocks/java-sdk/pull/99) - -## [v10.2.0](https://github.com/fireblocks/java-sdk/compare/v10.1.1...v10.2.0) - 2025-06-04 - -### Merged - -- Generated SDK #8912 [`#98`](https://github.com/fireblocks/java-sdk/pull/98) - -## [v10.1.1](https://github.com/fireblocks/java-sdk/compare/v10.1.0...v10.1.1) - 2025-05-18 - -### Merged - -- Generated SDK #5019 [`#97`](https://github.com/fireblocks/java-sdk/pull/97) - -## [v10.1.0](https://github.com/fireblocks/java-sdk/compare/v10.0.2...v10.1.0) - 2025-05-07 - -### Merged - -- Generated SDK #7076 [`#95`](https://github.com/fireblocks/java-sdk/pull/95) - -## [v10.0.2](https://github.com/fireblocks/java-sdk/compare/v10.0.1...v10.0.2) - 2025-04-20 - -### Merged - -- Generated SDK #4794 [`#94`](https://github.com/fireblocks/java-sdk/pull/94) - -## [v10.0.1](https://github.com/fireblocks/java-sdk/compare/v10.0.0...v10.0.1) - 2025-04-07 - -### Merged - -- Generated SDK #3065 [`#93`](https://github.com/fireblocks/java-sdk/pull/93) - -## [v10.0.0](https://github.com/fireblocks/java-sdk/compare/v9.0.0...v10.0.0) - 2025-03-30 - -### Merged - -- Generated SDK #619 [`#90`](https://github.com/fireblocks/java-sdk/pull/90) - -## [v9.0.0](https://github.com/fireblocks/java-sdk/compare/v8.1.0...v9.0.0) - 2025-03-17 - -### Merged - -- Generated SDK #645 [`#89`](https://github.com/fireblocks/java-sdk/pull/89) - -## [v8.1.0](https://github.com/fireblocks/java-sdk/compare/v8.0.1...v8.1.0) - 2025-02-24 - -### Merged - -- Generated SDK #9833 [`#84`](https://github.com/fireblocks/java-sdk/pull/84) - -## [v8.0.1](https://github.com/fireblocks/java-sdk/compare/v8.0.0...v8.0.1) - 2025-02-12 - -### Merged - -- Generated SDK #4262 [`#82`](https://github.com/fireblocks/java-sdk/pull/82) - -## [v8.0.0](https://github.com/fireblocks/java-sdk/compare/v7.0.0...v8.0.0) - 2025-02-02 - -### Merged - -- Generated SDK #538 [`#80`](https://github.com/fireblocks/java-sdk/pull/80) - -## [v7.0.0](https://github.com/fireblocks/java-sdk/compare/v6.0.0...v7.0.0) - 2025-01-08 - -### Merged - -- Generated SDK #8699 [`#77`](https://github.com/fireblocks/java-sdk/pull/77) - -## [v6.0.0](https://github.com/fireblocks/java-sdk/compare/v5.0.0...v6.0.0) - 2024-12-05 - -### Merged - -- Generated SDK #1430 [`#73`](https://github.com/fireblocks/java-sdk/pull/73) - -## [v5.0.0](https://github.com/fireblocks/java-sdk/compare/v4.0.0...v5.0.0) - 2024-10-31 - -### Merged - -- Generated SDK #5184 [`#71`](https://github.com/fireblocks/java-sdk/pull/71) - -## [v4.0.0](https://github.com/fireblocks/java-sdk/compare/v3.1.0...v4.0.0) - 2024-09-17 - -### Merged - -- Generated SDK #237 [`#70`](https://github.com/fireblocks/java-sdk/pull/70) - -## [v3.1.0](https://github.com/fireblocks/java-sdk/compare/v3.0.0...v3.1.0) - 2024-07-25 - -### Merged - -- Generated SDK #6749 [`#67`](https://github.com/fireblocks/java-sdk/pull/67) - -## [v3.0.0](https://github.com/fireblocks/java-sdk/compare/v2.1.0...v3.0.0) - 2024-07-17 - -### Merged - -- Generated SDK #6152 [`#65`](https://github.com/fireblocks/java-sdk/pull/65) -- Generated SDK #7984 [`#62`](https://github.com/fireblocks/java-sdk/pull/62) -- Generated SDK #2873 [`#61`](https://github.com/fireblocks/java-sdk/pull/61) - -## [v2.1.0](https://github.com/fireblocks/java-sdk/compare/v2.0.1...v2.1.0) - 2024-06-04 - -### Merged - -- Generated SDK for version COR-46191/fix_pipelines [`#24`](https://github.com/fireblocks/java-sdk/pull/24) -- Generated SDK for version COR-46191/fix_pipelines [`#23`](https://github.com/fireblocks/java-sdk/pull/23) -- Generated SDK for version COR-46191/fix_pipelines [`#22`](https://github.com/fireblocks/java-sdk/pull/22) -- Generated SDK for version COR-46191/fix_pipelines [`#21`](https://github.com/fireblocks/java-sdk/pull/21) - -## [v2.0.1](https://github.com/fireblocks/java-sdk/compare/v2.0.0...v2.0.1) - 2024-06-04 - -### Merged - -- Generated SDK for version COR-46191/fix_pipelines [`#20`](https://github.com/fireblocks/java-sdk/pull/20) - -## [v2.0.0](https://github.com/fireblocks/java-sdk/compare/v1.1.0...v2.0.0) - 2024-05-08 - -### Merged - -- feat: add tokenization api [`#12`](https://github.com/fireblocks/java-sdk/pull/12) - -## [v1.1.0](https://github.com/fireblocks/java-sdk/compare/v1.0.1...v1.1.0) - 2024-04-17 - -### Merged - -- feat: add cosigners beta api [`#11`](https://github.com/fireblocks/java-sdk/pull/11) -- fix: fix readme doc headline [`#10`](https://github.com/fireblocks/java-sdk/pull/10) - -## [v1.0.1](https://github.com/fireblocks/java-sdk/compare/v1.0.0...v1.0.1) - 2024-04-07 - -### Merged - -- Generated SDK for version v1.0.1 [`#9`](https://github.com/fireblocks/java-sdk/pull/9) - -## v1.0.0 - 2024-04-07 - -### Merged - -- Generated SDK for version v1.0.0 GA [`#8`](https://github.com/fireblocks/java-sdk/pull/8) -- v0.0.1-beta [`#6`](https://github.com/fireblocks/java-sdk/pull/6) -- Update GitHub Actions workflows [`#5`](https://github.com/fireblocks/java-sdk/pull/5) -- Generated #1189972817 [`#3`](https://github.com/fireblocks/java-sdk/pull/3) -- Add installation instructions [`#2`](https://github.com/fireblocks/java-sdk/pull/2) -- Added Idempotency & NCW headers support #6 [`#1`](https://github.com/fireblocks/java-sdk/pull/1) diff --git a/README.md b/README.md index a15c6e20..b0d62f30 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 22.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:22.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-22.0.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` @@ -194,7 +194,7 @@ Class | Method | HTTP request | Description *ComplianceApi* | [**updateTravelRuleConfig**](docs/ComplianceApi.md#updateTravelRuleConfig) | **PUT** /screening/travel_rule/policy_configuration | Update Travel Rule Configuration *ComplianceScreeningConfigurationApi* | [**getAmlScreeningConfiguration**](docs/ComplianceScreeningConfigurationApi.md#getAmlScreeningConfiguration) | **GET** /screening/aml/policy_configuration | Get AML Screening Policy Configuration *ComplianceScreeningConfigurationApi* | [**getScreeningConfiguration**](docs/ComplianceScreeningConfigurationApi.md#getScreeningConfiguration) | **GET** /screening/travel_rule/policy_configuration | Get Travel Rule Screening Policy Configuration -*ConnectedAccountsBetaApi* | [**createConnectedAccount**](docs/ConnectedAccountsBetaApi.md#createConnectedAccount) | **POST** /connected_accounts | Create a connected account +*ConnectedAccountsBetaApi* | [**addConnectedAccount**](docs/ConnectedAccountsBetaApi.md#addConnectedAccount) | **POST** /connected_accounts | Add a connected account *ConnectedAccountsBetaApi* | [**disconnectConnectedAccount**](docs/ConnectedAccountsBetaApi.md#disconnectConnectedAccount) | **DELETE** /connected_accounts/{accountId} | Disconnect connected account *ConnectedAccountsBetaApi* | [**getConnectedAccount**](docs/ConnectedAccountsBetaApi.md#getConnectedAccount) | **GET** /connected_accounts/{accountId} | Get connected account *ConnectedAccountsBetaApi* | [**getConnectedAccountAllowlist**](docs/ConnectedAccountsBetaApi.md#getConnectedAccountAllowlist) | **GET** /connected_accounts/{accountId}/allowlist | Get allowlist for connected account @@ -609,11 +609,14 @@ Class | Method | HTTP request | Description - [AddAbiRequestDto](docs/AddAbiRequestDto.md) - [AddAssetToExternalWalletRequest](docs/AddAssetToExternalWalletRequest.md) - [AddCollateralRequestBody](docs/AddCollateralRequestBody.md) + - [AddConnectedAccountRequest](docs/AddConnectedAccountRequest.md) + - [AddConnectedAccountResponse](docs/AddConnectedAccountResponse.md) - [AddContractAssetRequest](docs/AddContractAssetRequest.md) - [AddCosignerRequest](docs/AddCosignerRequest.md) - [AddCosignerResponse](docs/AddCosignerResponse.md) - [AddExchangeAccountRequest](docs/AddExchangeAccountRequest.md) - [AddExchangeAccountResponse](docs/AddExchangeAccountResponse.md) + - [AddedConnectedAccountItem](docs/AddedConnectedAccountItem.md) - [AdditionalInfo](docs/AdditionalInfo.md) - [AdditionalInfoRequest](docs/AdditionalInfoRequest.md) - [AdditionalInfoRequestAdditionalInfo](docs/AdditionalInfoRequestAdditionalInfo.md) @@ -825,8 +828,6 @@ Class | Method | HTTP request | Description - [CreateAddressesReportRequest](docs/CreateAddressesReportRequest.md) - [CreateAssetsRequest](docs/CreateAssetsRequest.md) - [CreateConfigOperationRequest](docs/CreateConfigOperationRequest.md) - - [CreateConnectedAccountRequest](docs/CreateConnectedAccountRequest.md) - - [CreateConnectedAccountResponse](docs/CreateConnectedAccountResponse.md) - [CreateConnectionRequest](docs/CreateConnectionRequest.md) - [CreateConnectionResponse](docs/CreateConnectionResponse.md) - [CreateConsoleUser](docs/CreateConsoleUser.md) @@ -867,7 +868,6 @@ Class | Method | HTTP request | Description - [CreateWalletRequest](docs/CreateWalletRequest.md) - [CreateWebhookRequest](docs/CreateWebhookRequest.md) - [CreateWorkflowExecutionRequestParamsInner](docs/CreateWorkflowExecutionRequestParamsInner.md) - - [CreatedConnectedAccountItem](docs/CreatedConnectedAccountItem.md) - [CustomRoutingDest](docs/CustomRoutingDest.md) - [DAppAddressConfig](docs/DAppAddressConfig.md) - [DVPSettlement](docs/DVPSettlement.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 61b67fb4..3c96d5ce 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -4147,7 +4147,7 @@ paths: Endpoint Permission: Editor, Admin, Non-Signing Admin. **Note:** This endpoint is currently in beta and might be subject to changes. - operationId: createConnectedAccount + operationId: addConnectedAccount parameters: - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ @@ -4164,14 +4164,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateConnectedAccountRequest" + $ref: "#/components/schemas/AddConnectedAccountRequest" required: true responses: "201": content: application/json: schema: - $ref: "#/components/schemas/CreateConnectedAccountResponse" + $ref: "#/components/schemas/AddConnectedAccountResponse" description: Account created (or pending approval). headers: X-Request-ID: @@ -4224,35 +4224,35 @@ paths: $ref: "#/components/headers/X-Request-ID" default: $ref: "#/components/responses/Error" - summary: Create a connected account + summary: Add a connected account tags: - Connected Accounts (Beta) x-rate-limit-category: write x-readme: code-samples: - language: typescript - code: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.createConnectedAccount(connectedAccountsBetaApiCreateConnectedAccountRequest);" + code: "const response: Promise>\ + \ = fireblocks.connectedAccountsBeta.addConnectedAccount(connectedAccountsBetaApiAddConnectedAccountRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response\ - \ = fireblocks.connectedAccountsBeta().createConnectedAccount(createConnectedAccountRequest,\ + code: "CompletableFuture> response\ + \ = fireblocks.connectedAccountsBeta().addConnectedAccount(addConnectedAccountRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.connected_accounts_beta.create_connected_account(create_connected_account_request,\ + code: "response = fireblocks.connected_accounts_beta.add_connected_account(add_connected_account_request,\ \ idempotency_key);" name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.connectedAccountsBeta.createConnectedAccount(connectedAccountsBetaApiCreateConnectedAccountRequest);" + source: "const response: Promise>\ + \ = fireblocks.connectedAccountsBeta.addConnectedAccount(connectedAccountsBetaApiAddConnectedAccountRequest);" - lang: Java - source: "CompletableFuture> response\ - \ = fireblocks.connectedAccountsBeta().createConnectedAccount(createConnectedAccountRequest,\ + source: "CompletableFuture> response\ + \ = fireblocks.connectedAccountsBeta().addConnectedAccount(addConnectedAccountRequest,\ \ idempotencyKey);" - lang: Python - source: "response = fireblocks.connected_accounts_beta.create_connected_account(create_connected_account_request,\ + source: "response = fireblocks.connected_accounts_beta.add_connected_account(add_connected_account_request,\ \ idempotency_key);" x-content-type: application/json x-accepts: @@ -39257,7 +39257,7 @@ components: required: - data type: object - CreateConnectedAccountRequest: + AddConnectedAccountRequest: example: accountId: provider-acc-001 apiKey: api_key_abc123 @@ -39307,7 +39307,7 @@ components: - creds - providerId type: object - CreatedConnectedAccountItem: + AddedConnectedAccountItem: properties: accountId: description: ID of the created account. @@ -39329,7 +39329,7 @@ components: - name - status type: object - CreateConnectedAccountResponse: + AddConnectedAccountResponse: example: accounts: - accountId: acc-789012 @@ -39344,7 +39344,7 @@ components: name: My Exchange Account status: WAITING_FOR_APPROVAL items: - $ref: "#/components/schemas/CreatedConnectedAccountItem" + $ref: "#/components/schemas/AddedConnectedAccountItem" type: array required: - accounts diff --git a/build.gradle b/build.gradle index 50a255f1..d43e483e 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '22.0.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/CreateConnectedAccountRequest.md b/docs/AddConnectedAccountRequest.md similarity index 96% rename from docs/CreateConnectedAccountRequest.md rename to docs/AddConnectedAccountRequest.md index d1ea2acb..38adc9fe 100644 --- a/docs/CreateConnectedAccountRequest.md +++ b/docs/AddConnectedAccountRequest.md @@ -1,6 +1,6 @@ -# CreateConnectedAccountRequest +# AddConnectedAccountRequest ## Properties diff --git a/docs/AddConnectedAccountResponse.md b/docs/AddConnectedAccountResponse.md new file mode 100644 index 00000000..f2262117 --- /dev/null +++ b/docs/AddConnectedAccountResponse.md @@ -0,0 +1,13 @@ + + +# AddConnectedAccountResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accounts** | [**List<AddedConnectedAccountItem>**](AddedConnectedAccountItem.md) | Created accounts — main account first, sub-accounts after (NLV2 hierarchy). | | + + + diff --git a/docs/CreatedConnectedAccountItem.md b/docs/AddedConnectedAccountItem.md similarity index 93% rename from docs/CreatedConnectedAccountItem.md rename to docs/AddedConnectedAccountItem.md index ae60eb2b..6bb8349c 100644 --- a/docs/CreatedConnectedAccountItem.md +++ b/docs/AddedConnectedAccountItem.md @@ -1,6 +1,6 @@ -# CreatedConnectedAccountItem +# AddedConnectedAccountItem ## Properties diff --git a/docs/ConnectedAccountsBetaApi.md b/docs/ConnectedAccountsBetaApi.md index 7b450bb3..6147442b 100644 --- a/docs/ConnectedAccountsBetaApi.md +++ b/docs/ConnectedAccountsBetaApi.md @@ -4,7 +4,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createConnectedAccount**](ConnectedAccountsBetaApi.md#createConnectedAccount) | **POST** /connected_accounts | Create a connected account | +| [**addConnectedAccount**](ConnectedAccountsBetaApi.md#addConnectedAccount) | **POST** /connected_accounts | Add a connected account | | [**disconnectConnectedAccount**](ConnectedAccountsBetaApi.md#disconnectConnectedAccount) | **DELETE** /connected_accounts/{accountId} | Disconnect connected account | | [**getConnectedAccount**](ConnectedAccountsBetaApi.md#getConnectedAccount) | **GET** /connected_accounts/{accountId} | Get connected account | | [**getConnectedAccountAllowlist**](ConnectedAccountsBetaApi.md#getConnectedAccountAllowlist) | **GET** /connected_accounts/{accountId}/allowlist | Get allowlist for connected account | @@ -18,11 +18,11 @@ All URIs are relative to https://developers.fireblocks.com/reference/ -## createConnectedAccount +## addConnectedAccount -> CompletableFuture> createConnectedAccount createConnectedAccount(createConnectedAccountRequest, idempotencyKey) +> CompletableFuture> addConnectedAccount addConnectedAccount(addConnectedAccountRequest, idempotencyKey) -Create a connected account +Add a connected account Creates a new connected account for the authenticated tenant. The `creds` field must be a Base64-encoded RSA-encrypted credential blob. Use `GET /exchange_accounts/credentials_public_key` to retrieve the public key for encryption. The `providerType` is derived server-side from the `providerId` — callers do not supply it. Endpoint Permission: Editor, Admin, Non-Signing Admin. **Note:** This endpoint is currently in beta and might be subject to changes. @@ -49,22 +49,22 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - CreateConnectedAccountRequest createConnectedAccountRequest = new CreateConnectedAccountRequest(); // CreateConnectedAccountRequest | + AddConnectedAccountRequest addConnectedAccountRequest = new AddConnectedAccountRequest(); // AddConnectedAccountRequest | String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. try { - CompletableFuture> response = fireblocks.connectedAccountsBeta().createConnectedAccount(createConnectedAccountRequest, idempotencyKey); + CompletableFuture> response = fireblocks.connectedAccountsBeta().addConnectedAccount(addConnectedAccountRequest, idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); } catch (InterruptedException | ExecutionException e) { ApiException apiException = (ApiException)e.getCause(); - System.err.println("Exception when calling ConnectedAccountsBetaApi#createConnectedAccount"); + System.err.println("Exception when calling ConnectedAccountsBetaApi#addConnectedAccount"); 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 ConnectedAccountsBetaApi#createConnectedAccount"); + System.err.println("Exception when calling ConnectedAccountsBetaApi#addConnectedAccount"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); @@ -79,12 +79,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **createConnectedAccountRequest** | [**CreateConnectedAccountRequest**](CreateConnectedAccountRequest.md)| | | +| **addConnectedAccountRequest** | [**AddConnectedAccountRequest**](AddConnectedAccountRequest.md)| | | | **idempotencyKey** | **String**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] | ### Return type -CompletableFuture> +CompletableFuture> ### Authorization diff --git a/docs/CreateConnectedAccountResponse.md b/docs/CreateConnectedAccountResponse.md deleted file mode 100644 index cf8e7665..00000000 --- a/docs/CreateConnectedAccountResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# CreateConnectedAccountResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accounts** | [**List<CreatedConnectedAccountItem>**](CreatedConnectedAccountItem.md) | Created accounts — main account first, sub-accounts after (NLV2 hierarchy). | | - - - diff --git a/pom.xml b/pom.xml index 25f01034..5c58d835 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 22.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 bd31adac..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 = "22.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/ConnectedAccountsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java index 89113481..23e6e797 100644 --- a/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApi.java @@ -20,6 +20,8 @@ import com.fireblocks.sdk.ApiResponse; import com.fireblocks.sdk.Pair; import com.fireblocks.sdk.ValidationUtils; +import com.fireblocks.sdk.model.AddConnectedAccountRequest; +import com.fireblocks.sdk.model.AddConnectedAccountResponse; import com.fireblocks.sdk.model.AllowlistEntryResponse; import com.fireblocks.sdk.model.AllowlistEntryStatus; import com.fireblocks.sdk.model.AllowlistResponse; @@ -28,8 +30,6 @@ import com.fireblocks.sdk.model.ConnectedAccountTradingPairsResponse; import com.fireblocks.sdk.model.ConnectedAccountsResponse; import com.fireblocks.sdk.model.ConnectedSingleAccountResponse; -import com.fireblocks.sdk.model.CreateConnectedAccountRequest; -import com.fireblocks.sdk.model.CreateConnectedAccountResponse; import com.fireblocks.sdk.model.RenameConnectedAccountRequest; import com.fireblocks.sdk.model.RenameConnectedAccountResponse; import java.io.IOException; @@ -86,27 +86,26 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Create a connected account Creates a new connected account for the authenticated tenant. The + * Add a connected account Creates a new connected account for the authenticated tenant. The * `creds` field must be a Base64-encoded RSA-encrypted credential blob. Use `GET * /exchange_accounts/credentials_public_key` to retrieve the public key for encryption. * The `providerType` is derived server-side from the `providerId` — callers * do not supply it. Endpoint Permission: Editor, Admin, Non-Signing Admin. **Note:** This * endpoint is currently in beta and might be subject to changes. * - * @param createConnectedAccountRequest (required) + * @param addConnectedAccountRequest (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple * times with the same idempotency key, the server will return the same response as the * first request. The idempotency key is valid for 24 hours. (optional) - * @return CompletableFuture<ApiResponse<CreateConnectedAccountResponse>> + * @return CompletableFuture<ApiResponse<AddConnectedAccountResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> createConnectedAccount( - CreateConnectedAccountRequest createConnectedAccountRequest, String idempotencyKey) + public CompletableFuture> addConnectedAccount( + AddConnectedAccountRequest addConnectedAccountRequest, String idempotencyKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - createConnectedAccountRequestBuilder( - createConnectedAccountRequest, idempotencyKey); + addConnectedAccountRequestBuilder(addConnectedAccountRequest, idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -117,12 +116,12 @@ public CompletableFuture> createConn if (localVarResponse.statusCode() / 100 != 2) { return CompletableFuture.failedFuture( getApiException( - "createConnectedAccount", localVarResponse)); + "addConnectedAccount", localVarResponse)); } try { String responseBody = localVarResponse.body(); return CompletableFuture.completedFuture( - new ApiResponse( + new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseBody == null || responseBody.isBlank() @@ -130,7 +129,7 @@ public CompletableFuture> createConn : memberVarObjectMapper.readValue( responseBody, new TypeReference< - CreateConnectedAccountResponse>() {}))); + AddConnectedAccountResponse>() {}))); } catch (IOException e) { return CompletableFuture.failedFuture(new ApiException(e)); } @@ -140,13 +139,11 @@ public CompletableFuture> createConn } } - private HttpRequest.Builder createConnectedAccountRequestBuilder( - CreateConnectedAccountRequest createConnectedAccountRequest, String idempotencyKey) + private HttpRequest.Builder addConnectedAccountRequestBuilder( + AddConnectedAccountRequest addConnectedAccountRequest, String idempotencyKey) throws ApiException { ValidationUtils.assertParamExists( - "createConnectedAccount", - "createConnectedAccountRequest", - createConnectedAccountRequest); + "addConnectedAccount", "addConnectedAccountRequest", addConnectedAccountRequest); HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -162,7 +159,7 @@ private HttpRequest.Builder createConnectedAccountRequestBuilder( try { byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(createConnectedAccountRequest); + memberVarObjectMapper.writeValueAsBytes(addConnectedAccountRequest); localVarRequestBuilder.method( "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { diff --git a/src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountRequest.java b/src/main/java/com/fireblocks/sdk/model/AddConnectedAccountRequest.java similarity index 85% rename from src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountRequest.java rename to src/main/java/com/fireblocks/sdk/model/AddConnectedAccountRequest.java index b615a74d..11818064 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/AddConnectedAccountRequest.java @@ -22,20 +22,20 @@ import java.util.Objects; import java.util.StringJoiner; -/** CreateConnectedAccountRequest */ +/** AddConnectedAccountRequest */ @JsonPropertyOrder({ - CreateConnectedAccountRequest.JSON_PROPERTY_PROVIDER_ID, - CreateConnectedAccountRequest.JSON_PROPERTY_DISPLAY_NAME, - CreateConnectedAccountRequest.JSON_PROPERTY_CREDS, - CreateConnectedAccountRequest.JSON_PROPERTY_API_KEY, - CreateConnectedAccountRequest.JSON_PROPERTY_MAIN_ACCOUNT_ID, - CreateConnectedAccountRequest.JSON_PROPERTY_ACCOUNT_ID, - CreateConnectedAccountRequest.JSON_PROPERTY_ON_PREMISE_SERVER_ID + AddConnectedAccountRequest.JSON_PROPERTY_PROVIDER_ID, + AddConnectedAccountRequest.JSON_PROPERTY_DISPLAY_NAME, + AddConnectedAccountRequest.JSON_PROPERTY_CREDS, + AddConnectedAccountRequest.JSON_PROPERTY_API_KEY, + AddConnectedAccountRequest.JSON_PROPERTY_MAIN_ACCOUNT_ID, + AddConnectedAccountRequest.JSON_PROPERTY_ACCOUNT_ID, + AddConnectedAccountRequest.JSON_PROPERTY_ON_PREMISE_SERVER_ID }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class CreateConnectedAccountRequest { +public class AddConnectedAccountRequest { public static final String JSON_PROPERTY_PROVIDER_ID = "providerId"; @jakarta.annotation.Nonnull private String providerId; @@ -57,10 +57,10 @@ public class CreateConnectedAccountRequest { public static final String JSON_PROPERTY_ON_PREMISE_SERVER_ID = "onPremiseServerId"; @jakarta.annotation.Nullable private String onPremiseServerId; - public CreateConnectedAccountRequest() {} + public AddConnectedAccountRequest() {} @JsonCreator - public CreateConnectedAccountRequest( + public AddConnectedAccountRequest( @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId, @JsonProperty(value = JSON_PROPERTY_CREDS, required = true) byte[] creds, @JsonProperty(value = JSON_PROPERTY_API_KEY, required = true) String apiKey) { @@ -69,7 +69,7 @@ public CreateConnectedAccountRequest( this.apiKey = apiKey; } - public CreateConnectedAccountRequest providerId(@jakarta.annotation.Nonnull String providerId) { + public AddConnectedAccountRequest providerId(@jakarta.annotation.Nonnull String providerId) { this.providerId = providerId; return this; } @@ -92,8 +92,7 @@ public void setProviderId(@jakarta.annotation.Nonnull String providerId) { this.providerId = providerId; } - public CreateConnectedAccountRequest displayName( - @jakarta.annotation.Nullable String displayName) { + public AddConnectedAccountRequest displayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -116,7 +115,7 @@ public void setDisplayName(@jakarta.annotation.Nullable String displayName) { this.displayName = displayName; } - public CreateConnectedAccountRequest creds(@jakarta.annotation.Nonnull byte[] creds) { + public AddConnectedAccountRequest creds(@jakarta.annotation.Nonnull byte[] creds) { this.creds = creds; return this; } @@ -140,7 +139,7 @@ public void setCreds(@jakarta.annotation.Nonnull byte[] creds) { this.creds = creds; } - public CreateConnectedAccountRequest apiKey(@jakarta.annotation.Nonnull String apiKey) { + public AddConnectedAccountRequest apiKey(@jakarta.annotation.Nonnull String apiKey) { this.apiKey = apiKey; return this; } @@ -163,7 +162,7 @@ public void setApiKey(@jakarta.annotation.Nonnull String apiKey) { this.apiKey = apiKey; } - public CreateConnectedAccountRequest mainAccountId( + public AddConnectedAccountRequest mainAccountId( @jakarta.annotation.Nullable String mainAccountId) { this.mainAccountId = mainAccountId; return this; @@ -187,7 +186,7 @@ public void setMainAccountId(@jakarta.annotation.Nullable String mainAccountId) this.mainAccountId = mainAccountId; } - public CreateConnectedAccountRequest accountId(@jakarta.annotation.Nullable String accountId) { + public AddConnectedAccountRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -210,7 +209,7 @@ public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public CreateConnectedAccountRequest onPremiseServerId( + public AddConnectedAccountRequest onPremiseServerId( @jakarta.annotation.Nullable String onPremiseServerId) { this.onPremiseServerId = onPremiseServerId; return this; @@ -234,7 +233,7 @@ public void setOnPremiseServerId(@jakarta.annotation.Nullable String onPremiseSe this.onPremiseServerId = onPremiseServerId; } - /** Return true if this CreateConnectedAccountRequest object is equal to o. */ + /** Return true if this AddConnectedAccountRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -243,16 +242,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateConnectedAccountRequest createConnectedAccountRequest = - (CreateConnectedAccountRequest) o; - return Objects.equals(this.providerId, createConnectedAccountRequest.providerId) - && Objects.equals(this.displayName, createConnectedAccountRequest.displayName) - && Arrays.equals(this.creds, createConnectedAccountRequest.creds) - && Objects.equals(this.apiKey, createConnectedAccountRequest.apiKey) - && Objects.equals(this.mainAccountId, createConnectedAccountRequest.mainAccountId) - && Objects.equals(this.accountId, createConnectedAccountRequest.accountId) + AddConnectedAccountRequest addConnectedAccountRequest = (AddConnectedAccountRequest) o; + return Objects.equals(this.providerId, addConnectedAccountRequest.providerId) + && Objects.equals(this.displayName, addConnectedAccountRequest.displayName) + && Arrays.equals(this.creds, addConnectedAccountRequest.creds) + && Objects.equals(this.apiKey, addConnectedAccountRequest.apiKey) + && Objects.equals(this.mainAccountId, addConnectedAccountRequest.mainAccountId) + && Objects.equals(this.accountId, addConnectedAccountRequest.accountId) && Objects.equals( - this.onPremiseServerId, createConnectedAccountRequest.onPremiseServerId); + this.onPremiseServerId, addConnectedAccountRequest.onPremiseServerId); } @Override @@ -270,7 +268,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateConnectedAccountRequest {\n"); + sb.append("class AddConnectedAccountRequest {\n"); sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); sb.append(" creds: ").append(toIndentedString(creds)).append("\n"); diff --git a/src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountResponse.java b/src/main/java/com/fireblocks/sdk/model/AddConnectedAccountResponse.java similarity index 80% rename from src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountResponse.java rename to src/main/java/com/fireblocks/sdk/model/AddConnectedAccountResponse.java index dfa14b89..a72926d7 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreateConnectedAccountResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/AddConnectedAccountResponse.java @@ -22,32 +22,31 @@ import java.util.Objects; import java.util.StringJoiner; -/** CreateConnectedAccountResponse */ -@JsonPropertyOrder({CreateConnectedAccountResponse.JSON_PROPERTY_ACCOUNTS}) +/** AddConnectedAccountResponse */ +@JsonPropertyOrder({AddConnectedAccountResponse.JSON_PROPERTY_ACCOUNTS}) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class CreateConnectedAccountResponse { +public class AddConnectedAccountResponse { public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; - @jakarta.annotation.Nonnull private List accounts; + @jakarta.annotation.Nonnull private List accounts; - public CreateConnectedAccountResponse() {} + public AddConnectedAccountResponse() {} @JsonCreator - public CreateConnectedAccountResponse( + public AddConnectedAccountResponse( @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = true) - List accounts) { + List accounts) { this.accounts = accounts; } - public CreateConnectedAccountResponse accounts( - @jakarta.annotation.Nonnull List accounts) { + public AddConnectedAccountResponse accounts( + @jakarta.annotation.Nonnull List accounts) { this.accounts = accounts; return this; } - public CreateConnectedAccountResponse addAccountsItem( - CreatedConnectedAccountItem accountsItem) { + public AddConnectedAccountResponse addAccountsItem(AddedConnectedAccountItem accountsItem) { if (this.accounts == null) { this.accounts = new ArrayList<>(); } @@ -63,18 +62,17 @@ public CreateConnectedAccountResponse addAccountsItem( @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getAccounts() { + public List getAccounts() { return accounts; } @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccounts( - @jakarta.annotation.Nonnull List accounts) { + public void setAccounts(@jakarta.annotation.Nonnull List accounts) { this.accounts = accounts; } - /** Return true if this CreateConnectedAccountResponse object is equal to o. */ + /** Return true if this AddConnectedAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -83,9 +81,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateConnectedAccountResponse createConnectedAccountResponse = - (CreateConnectedAccountResponse) o; - return Objects.equals(this.accounts, createConnectedAccountResponse.accounts); + AddConnectedAccountResponse addConnectedAccountResponse = (AddConnectedAccountResponse) o; + return Objects.equals(this.accounts, addConnectedAccountResponse.accounts); } @Override @@ -96,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateConnectedAccountResponse {\n"); + sb.append("class AddConnectedAccountResponse {\n"); sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/fireblocks/sdk/model/CreatedConnectedAccountItem.java b/src/main/java/com/fireblocks/sdk/model/AddedConnectedAccountItem.java similarity index 86% rename from src/main/java/com/fireblocks/sdk/model/CreatedConnectedAccountItem.java rename to src/main/java/com/fireblocks/sdk/model/AddedConnectedAccountItem.java index 5b3ba6f3..75230a9c 100644 --- a/src/main/java/com/fireblocks/sdk/model/CreatedConnectedAccountItem.java +++ b/src/main/java/com/fireblocks/sdk/model/AddedConnectedAccountItem.java @@ -21,17 +21,17 @@ import java.util.Objects; import java.util.StringJoiner; -/** CreatedConnectedAccountItem */ +/** AddedConnectedAccountItem */ @JsonPropertyOrder({ - CreatedConnectedAccountItem.JSON_PROPERTY_ACCOUNT_ID, - CreatedConnectedAccountItem.JSON_PROPERTY_NAME, - CreatedConnectedAccountItem.JSON_PROPERTY_PARENT_ACCOUNT_ID, - CreatedConnectedAccountItem.JSON_PROPERTY_STATUS + AddedConnectedAccountItem.JSON_PROPERTY_ACCOUNT_ID, + AddedConnectedAccountItem.JSON_PROPERTY_NAME, + AddedConnectedAccountItem.JSON_PROPERTY_PARENT_ACCOUNT_ID, + AddedConnectedAccountItem.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0") -public class CreatedConnectedAccountItem { +public class AddedConnectedAccountItem { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; @jakarta.annotation.Nonnull private String accountId; @@ -44,10 +44,10 @@ public class CreatedConnectedAccountItem { public static final String JSON_PROPERTY_STATUS = "status"; @jakarta.annotation.Nonnull private ConnectedAccountApprovalStatus status; - public CreatedConnectedAccountItem() {} + public AddedConnectedAccountItem() {} @JsonCreator - public CreatedConnectedAccountItem( + public AddedConnectedAccountItem( @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId, @JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name, @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) @@ -57,7 +57,7 @@ public CreatedConnectedAccountItem( this.status = status; } - public CreatedConnectedAccountItem accountId(@jakarta.annotation.Nonnull String accountId) { + public AddedConnectedAccountItem accountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; return this; } @@ -80,7 +80,7 @@ public void setAccountId(@jakarta.annotation.Nonnull String accountId) { this.accountId = accountId; } - public CreatedConnectedAccountItem name(@jakarta.annotation.Nonnull String name) { + public AddedConnectedAccountItem name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -103,7 +103,7 @@ public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public CreatedConnectedAccountItem parentAccountId( + public AddedConnectedAccountItem parentAccountId( @jakarta.annotation.Nullable String parentAccountId) { this.parentAccountId = parentAccountId; return this; @@ -127,7 +127,7 @@ public void setParentAccountId(@jakarta.annotation.Nullable String parentAccount this.parentAccountId = parentAccountId; } - public CreatedConnectedAccountItem status( + public AddedConnectedAccountItem status( @jakarta.annotation.Nonnull ConnectedAccountApprovalStatus status) { this.status = status; return this; @@ -151,7 +151,7 @@ public void setStatus(@jakarta.annotation.Nonnull ConnectedAccountApprovalStatus this.status = status; } - /** Return true if this CreatedConnectedAccountItem object is equal to o. */ + /** Return true if this AddedConnectedAccountItem object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -160,11 +160,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreatedConnectedAccountItem createdConnectedAccountItem = (CreatedConnectedAccountItem) o; - return Objects.equals(this.accountId, createdConnectedAccountItem.accountId) - && Objects.equals(this.name, createdConnectedAccountItem.name) - && Objects.equals(this.parentAccountId, createdConnectedAccountItem.parentAccountId) - && Objects.equals(this.status, createdConnectedAccountItem.status); + AddedConnectedAccountItem addedConnectedAccountItem = (AddedConnectedAccountItem) o; + return Objects.equals(this.accountId, addedConnectedAccountItem.accountId) + && Objects.equals(this.name, addedConnectedAccountItem.name) + && Objects.equals(this.parentAccountId, addedConnectedAccountItem.parentAccountId) + && Objects.equals(this.status, addedConnectedAccountItem.status); } @Override @@ -175,7 +175,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreatedConnectedAccountItem {\n"); + sb.append("class AddedConnectedAccountItem {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" parentAccountId: ").append(toIndentedString(parentAccountId)).append("\n"); diff --git a/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java index 53992ae3..f479fd0c 100644 --- a/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java @@ -15,6 +15,8 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.model.AddConnectedAccountRequest; +import com.fireblocks.sdk.model.AddConnectedAccountResponse; import com.fireblocks.sdk.model.AllowlistEntryResponse; import com.fireblocks.sdk.model.AllowlistEntryStatus; import com.fireblocks.sdk.model.AllowlistResponse; @@ -23,8 +25,6 @@ import com.fireblocks.sdk.model.ConnectedAccountTradingPairsResponse; import com.fireblocks.sdk.model.ConnectedAccountsResponse; import com.fireblocks.sdk.model.ConnectedSingleAccountResponse; -import com.fireblocks.sdk.model.CreateConnectedAccountRequest; -import com.fireblocks.sdk.model.CreateConnectedAccountResponse; import com.fireblocks.sdk.model.RenameConnectedAccountRequest; import com.fireblocks.sdk.model.RenameConnectedAccountResponse; import java.util.concurrent.CompletableFuture; @@ -38,7 +38,7 @@ public class ConnectedAccountsBetaApiTest { private final ConnectedAccountsBetaApi api = new ConnectedAccountsBetaApi(); /** - * Create a connected account + * Add a connected account * *

Creates a new connected account for the authenticated tenant. The `creds` field * must be a Base64-encoded RSA-encrypted credential blob. Use `GET @@ -50,11 +50,11 @@ public class ConnectedAccountsBetaApiTest { * @throws ApiException if the Api call fails */ @Test - public void createConnectedAccountTest() throws ApiException { - CreateConnectedAccountRequest createConnectedAccountRequest = null; + public void addConnectedAccountTest() throws ApiException { + AddConnectedAccountRequest addConnectedAccountRequest = null; String idempotencyKey = null; - CompletableFuture> response = - api.createConnectedAccount(createConnectedAccountRequest, idempotencyKey); + CompletableFuture> response = + api.addConnectedAccount(addConnectedAccountRequest, idempotencyKey); } /** diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountRequestTest.java similarity index 81% rename from src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountRequestTest.java rename to src/test/java/com/fireblocks/sdk/model/AddConnectedAccountRequestTest.java index 94dbf759..c7c6be83 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountRequestTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for CreateConnectedAccountRequest */ -class CreateConnectedAccountRequestTest { - private final CreateConnectedAccountRequest model = new CreateConnectedAccountRequest(); +/** Model tests for AddConnectedAccountRequest */ +class AddConnectedAccountRequestTest { + private final AddConnectedAccountRequest model = new AddConnectedAccountRequest(); - /** Model tests for CreateConnectedAccountRequest */ + /** Model tests for AddConnectedAccountRequest */ @Test - void testCreateConnectedAccountRequest() { - // TODO: test CreateConnectedAccountRequest + void testAddConnectedAccountRequest() { + // TODO: test AddConnectedAccountRequest } /** Test the property 'providerId' */ diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountResponseTest.java similarity index 69% rename from src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountResponseTest.java rename to src/test/java/com/fireblocks/sdk/model/AddConnectedAccountResponseTest.java index dce321b9..7b2b802c 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountResponseTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for CreateConnectedAccountResponse */ -class CreateConnectedAccountResponseTest { - private final CreateConnectedAccountResponse model = new CreateConnectedAccountResponse(); +/** Model tests for AddConnectedAccountResponse */ +class AddConnectedAccountResponseTest { + private final AddConnectedAccountResponse model = new AddConnectedAccountResponse(); - /** Model tests for CreateConnectedAccountResponse */ + /** Model tests for AddConnectedAccountResponse */ @Test - void testCreateConnectedAccountResponse() { - // TODO: test CreateConnectedAccountResponse + void testAddConnectedAccountResponse() { + // TODO: test AddConnectedAccountResponse } /** Test the property 'accounts' */ diff --git a/src/test/java/com/fireblocks/sdk/model/CreatedConnectedAccountItemTest.java b/src/test/java/com/fireblocks/sdk/model/AddedConnectedAccountItemTest.java similarity index 77% rename from src/test/java/com/fireblocks/sdk/model/CreatedConnectedAccountItemTest.java rename to src/test/java/com/fireblocks/sdk/model/AddedConnectedAccountItemTest.java index ff7abd03..6e505135 100644 --- a/src/test/java/com/fireblocks/sdk/model/CreatedConnectedAccountItemTest.java +++ b/src/test/java/com/fireblocks/sdk/model/AddedConnectedAccountItemTest.java @@ -15,14 +15,14 @@ import org.junit.jupiter.api.Test; -/** Model tests for CreatedConnectedAccountItem */ -class CreatedConnectedAccountItemTest { - private final CreatedConnectedAccountItem model = new CreatedConnectedAccountItem(); +/** Model tests for AddedConnectedAccountItem */ +class AddedConnectedAccountItemTest { + private final AddedConnectedAccountItem model = new AddedConnectedAccountItem(); - /** Model tests for CreatedConnectedAccountItem */ + /** Model tests for AddedConnectedAccountItem */ @Test - void testCreatedConnectedAccountItem() { - // TODO: test CreatedConnectedAccountItem + void testAddedConnectedAccountItem() { + // TODO: test AddedConnectedAccountItem } /** Test the property 'accountId' */