diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 894e6e08..d2891603 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -612,34 +612,6 @@ docs/LbtPaymentInfo.md docs/LeanAbiFunction.md docs/LeanContractDto.md docs/LeanDeployedContractResponseDto.md -docs/LegacyAmountAggregationTimePeriodMethod.md -docs/LegacyDraftResponse.md -docs/LegacyDraftReviewAndValidationResponse.md -docs/LegacyPolicyAndValidationResponse.md -docs/LegacyPolicyCheckResult.md -docs/LegacyPolicyMetadata.md -docs/LegacyPolicyResponse.md -docs/LegacyPolicyRule.md -docs/LegacyPolicyRuleAmount.md -docs/LegacyPolicyRuleAmountAggregation.md -docs/LegacyPolicyRuleAuthorizationGroups.md -docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md -docs/LegacyPolicyRuleCheckResult.md -docs/LegacyPolicyRuleDesignatedSigners.md -docs/LegacyPolicyRuleDst.md -docs/LegacyPolicyRuleError.md -docs/LegacyPolicyRuleOperators.md -docs/LegacyPolicyRuleRawMessageSigning.md -docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md -docs/LegacyPolicyRuleSrc.md -docs/LegacyPolicyRules.md -docs/LegacyPolicySrcOrDestSubType.md -docs/LegacyPolicySrcOrDestType.md -docs/LegacyPolicyStatus.md -docs/LegacyPolicyValidation.md -docs/LegacyPublishDraftRequest.md -docs/LegacyPublishResult.md -docs/LegacySrcOrDestAttributesInner.md docs/LegalEntityRegistration.md docs/LeiStatus.md docs/LimitExecutionRequestDetails.md @@ -795,7 +767,6 @@ docs/Players.md docs/PolicyAndValidationResponse.md docs/PolicyCheckResult.md docs/PolicyCurrency.md -docs/PolicyEditorBetaApi.md docs/PolicyEditorV2Api.md docs/PolicyEditorV2BetaApi.md docs/PolicyMetadataEntry.md @@ -963,8 +934,6 @@ docs/SecurityPostureManagementApi.md docs/SepaPaymentInfo.md docs/SessionDTO.md docs/SessionMetadata.md -docs/SetAdminQuorumThresholdRequest.md -docs/SetAdminQuorumThresholdResponse.md docs/SetAssetPriceRequest.md docs/SetAutoFuelRequest.md docs/SetConfirmationsThresholdRequest.md @@ -1454,7 +1423,6 @@ src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java src/main/java/com/fireblocks/sdk/api/OnchainDataApi.java src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java -src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java src/main/java/com/fireblocks/sdk/api/PolicyEditorV2Api.java src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java src/main/java/com/fireblocks/sdk/api/ReportsBetaApi.java @@ -2057,34 +2025,6 @@ src/main/java/com/fireblocks/sdk/model/LbtPaymentInfo.java src/main/java/com/fireblocks/sdk/model/LeanAbiFunction.java src/main/java/com/fireblocks/sdk/model/LeanContractDto.java src/main/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDto.java -src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java -src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java -src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java -src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java -src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java -src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java src/main/java/com/fireblocks/sdk/model/LegalEntityRegistration.java src/main/java/com/fireblocks/sdk/model/LeiStatus.java src/main/java/com/fireblocks/sdk/model/LimitExecutionRequestDetails.java @@ -2396,8 +2336,6 @@ src/main/java/com/fireblocks/sdk/model/SecurityFindingDetailed.java src/main/java/com/fireblocks/sdk/model/SepaPaymentInfo.java src/main/java/com/fireblocks/sdk/model/SessionDTO.java src/main/java/com/fireblocks/sdk/model/SessionMetadata.java -src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java -src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java src/main/java/com/fireblocks/sdk/model/SetAutoFuelRequest.java src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequest.java @@ -2847,7 +2785,6 @@ src/test/java/com/fireblocks/sdk/api/OffExchangesApiTest.java src/test/java/com/fireblocks/sdk/api/OnchainDataApiTest.java src/test/java/com/fireblocks/sdk/api/OtaBetaApiTest.java src/test/java/com/fireblocks/sdk/api/PaymentsPayoutApiTest.java -src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java src/test/java/com/fireblocks/sdk/api/PolicyEditorV2ApiTest.java src/test/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApiTest.java src/test/java/com/fireblocks/sdk/api/ReportsBetaApiTest.java @@ -3449,34 +3386,6 @@ src/test/java/com/fireblocks/sdk/model/LbtPaymentInfoTest.java src/test/java/com/fireblocks/sdk/model/LeanAbiFunctionTest.java src/test/java/com/fireblocks/sdk/model/LeanContractDtoTest.java src/test/java/com/fireblocks/sdk/model/LeanDeployedContractResponseDtoTest.java -src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java -src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java -src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java -src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java src/test/java/com/fireblocks/sdk/model/LegalEntityRegistrationTest.java src/test/java/com/fireblocks/sdk/model/LeiStatusTest.java src/test/java/com/fireblocks/sdk/model/LimitExecutionRequestDetailsTest.java @@ -3788,8 +3697,6 @@ src/test/java/com/fireblocks/sdk/model/SecurityFindingTest.java src/test/java/com/fireblocks/sdk/model/SepaPaymentInfoTest.java src/test/java/com/fireblocks/sdk/model/SessionDTOTest.java src/test/java/com/fireblocks/sdk/model/SessionMetadataTest.java -src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java -src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java src/test/java/com/fireblocks/sdk/model/SetAutoFuelRequestTest.java src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequestTest.java diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 02c671e8..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). - -## [v36.1.0](https://github.com/fireblocks/java-sdk/compare/v15.0.0...v36.1.0) - 2026-11-10 - -### Merged - -- Generated SDK #3049470904 [`#165`](https://github.com/fireblocks/java-sdk/pull/165) - -## [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 6fa8ed89..8d275fad 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 36.1.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:36.1.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-36.1.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` ## Versioning @@ -440,11 +440,6 @@ Class | Method | HTTP request | Description *PaymentsPayoutApi* | [**createPayout**](docs/PaymentsPayoutApi.md#createPayout) | **POST** /payments/payout | Create a payout instruction set *PaymentsPayoutApi* | [**executePayoutAction**](docs/PaymentsPayoutApi.md#executePayoutAction) | **POST** /payments/payout/{payoutId}/actions/execute | Execute a payout instruction set *PaymentsPayoutApi* | [**getPayout**](docs/PaymentsPayoutApi.md#getPayout) | **GET** /payments/payout/{payoutId} | Get the status of a payout instruction set -*PolicyEditorBetaApi* | [**getActivePolicyLegacy**](docs/PolicyEditorBetaApi.md#getActivePolicyLegacy) | **GET** /tap/active_policy | Get the active policy and its validation -*PolicyEditorBetaApi* | [**getDraftLegacy**](docs/PolicyEditorBetaApi.md#getDraftLegacy) | **GET** /tap/draft | Get the active draft -*PolicyEditorBetaApi* | [**publishDraftLegacy**](docs/PolicyEditorBetaApi.md#publishDraftLegacy) | **POST** /tap/draft | Send publish request for a certain draft id -*PolicyEditorBetaApi* | [**publishPolicyRules**](docs/PolicyEditorBetaApi.md#publishPolicyRules) | **POST** /tap/publish | Send publish request for a set of policy rules -*PolicyEditorBetaApi* | [**updateDraftLegacy**](docs/PolicyEditorBetaApi.md#updateDraftLegacy) | **PUT** /tap/draft | Update the draft with a new set of rules *PolicyEditorV2Api* | [**getActivePolicy**](docs/PolicyEditorV2Api.md#getActivePolicy) | **GET** /policy/active_policy | Get the active policy and its validation by policy type *PolicyEditorV2Api* | [**getDraft**](docs/PolicyEditorV2Api.md#getDraft) | **GET** /policy/draft | Get the active draft by policy type *PolicyEditorV2Api* | [**publishDraft**](docs/PolicyEditorV2Api.md#publishDraft) | **POST** /policy/draft | Send publish request for a certain draft id @@ -1262,34 +1257,6 @@ Class | Method | HTTP request | Description - [LeanAbiFunction](docs/LeanAbiFunction.md) - [LeanContractDto](docs/LeanContractDto.md) - [LeanDeployedContractResponseDto](docs/LeanDeployedContractResponseDto.md) - - [LegacyAmountAggregationTimePeriodMethod](docs/LegacyAmountAggregationTimePeriodMethod.md) - - [LegacyDraftResponse](docs/LegacyDraftResponse.md) - - [LegacyDraftReviewAndValidationResponse](docs/LegacyDraftReviewAndValidationResponse.md) - - [LegacyPolicyAndValidationResponse](docs/LegacyPolicyAndValidationResponse.md) - - [LegacyPolicyCheckResult](docs/LegacyPolicyCheckResult.md) - - [LegacyPolicyMetadata](docs/LegacyPolicyMetadata.md) - - [LegacyPolicyResponse](docs/LegacyPolicyResponse.md) - - [LegacyPolicyRule](docs/LegacyPolicyRule.md) - - [LegacyPolicyRuleAmount](docs/LegacyPolicyRuleAmount.md) - - [LegacyPolicyRuleAmountAggregation](docs/LegacyPolicyRuleAmountAggregation.md) - - [LegacyPolicyRuleAuthorizationGroups](docs/LegacyPolicyRuleAuthorizationGroups.md) - - [LegacyPolicyRuleAuthorizationGroupsGroupsInner](docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md) - - [LegacyPolicyRuleCheckResult](docs/LegacyPolicyRuleCheckResult.md) - - [LegacyPolicyRuleDesignatedSigners](docs/LegacyPolicyRuleDesignatedSigners.md) - - [LegacyPolicyRuleDst](docs/LegacyPolicyRuleDst.md) - - [LegacyPolicyRuleError](docs/LegacyPolicyRuleError.md) - - [LegacyPolicyRuleOperators](docs/LegacyPolicyRuleOperators.md) - - [LegacyPolicyRuleRawMessageSigning](docs/LegacyPolicyRuleRawMessageSigning.md) - - [LegacyPolicyRuleRawMessageSigningDerivationPath](docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md) - - [LegacyPolicyRuleSrc](docs/LegacyPolicyRuleSrc.md) - - [LegacyPolicyRules](docs/LegacyPolicyRules.md) - - [LegacyPolicySrcOrDestSubType](docs/LegacyPolicySrcOrDestSubType.md) - - [LegacyPolicySrcOrDestType](docs/LegacyPolicySrcOrDestType.md) - - [LegacyPolicyStatus](docs/LegacyPolicyStatus.md) - - [LegacyPolicyValidation](docs/LegacyPolicyValidation.md) - - [LegacyPublishDraftRequest](docs/LegacyPublishDraftRequest.md) - - [LegacyPublishResult](docs/LegacyPublishResult.md) - - [LegacySrcOrDestAttributesInner](docs/LegacySrcOrDestAttributesInner.md) - [LegalEntityRegistration](docs/LegalEntityRegistration.md) - [LeiStatus](docs/LeiStatus.md) - [LimitExecutionRequestDetails](docs/LimitExecutionRequestDetails.md) @@ -1601,8 +1568,6 @@ Class | Method | HTTP request | Description - [SepaPaymentInfo](docs/SepaPaymentInfo.md) - [SessionDTO](docs/SessionDTO.md) - [SessionMetadata](docs/SessionMetadata.md) - - [SetAdminQuorumThresholdRequest](docs/SetAdminQuorumThresholdRequest.md) - - [SetAdminQuorumThresholdResponse](docs/SetAdminQuorumThresholdResponse.md) - [SetAssetPriceRequest](docs/SetAssetPriceRequest.md) - [SetAutoFuelRequest](docs/SetAutoFuelRequest.md) - [SetConfirmationsThresholdRequest](docs/SetConfirmationsThresholdRequest.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 4a18f75c..60821cf3 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -15,56 +15,6 @@ servers: - description: Fireblocks Sandbox Environment Base URL url: https://sandbox-api.fireblocks.io/v1 paths: - /admin_quorum: - put: - description: Update admin quorum threshold - operationId: setAdminQuorumThreshold - parameters: - - description: "A unique identifier for the request. If the request is sent\ - \ multiple times with the same idempotency key, the server will return the\ - \ same response as the first request. The idempotency key is valid for 24\ - \ hours." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SetAdminQuorumThresholdRequest" - required: true - responses: - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/SetAdminQuorumThresholdResponse" - description: OK - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Update admin quorum threshold - tags: - - Admin Quorum - x-internal: true - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: result = fireblocks.set_admin_quorum_threshold(adminQuorumThreshold) - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const result = await fireblocks.setAdminQuorumThreshold(adminQuorumThreshold) - name: Fireblocks SDK Javascript example - x-content-type: application/json - x-accepts: - - application/json /management/api_users: get: description: |- @@ -470,6 +420,8 @@ paths: tags: - Approvals (Beta) x-rate-limit-category: query + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -563,6 +515,8 @@ paths: tags: - Approvals (Beta) x-rate-limit-category: query + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -635,6 +589,8 @@ paths: tags: - Approvals (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -700,6 +656,8 @@ paths: tags: - Approvals (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -777,6 +735,8 @@ paths: tags: - Approvals (Beta) x-rate-limit-category: query + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -866,6 +826,8 @@ paths: tags: - Approvals (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -958,6 +920,8 @@ paths: tags: - Approvals (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1281,6 +1245,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: query + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1348,6 +1314,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1403,6 +1371,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1453,6 +1423,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: read + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1524,6 +1496,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1594,6 +1568,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: async + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1665,6 +1641,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: async + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1714,6 +1692,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: read + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -1760,6 +1740,8 @@ paths: tags: - Blockchain link (Beta) x-rate-limit-category: read + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -2675,6 +2657,8 @@ paths: tags: - Canton (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -2792,6 +2776,8 @@ paths: tags: - Canton (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -2856,6 +2842,8 @@ paths: tags: - Compliance x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -2901,6 +2889,8 @@ paths: tags: - Compliance x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -2972,6 +2962,8 @@ paths: tags: - Compliance x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -6174,6 +6166,8 @@ paths: tags: - Compliance Orchestrator (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -6254,6 +6248,8 @@ paths: tags: - Compliance Orchestrator (Beta) x-rate-limit-category: read + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -6328,6 +6324,8 @@ paths: tags: - Compliance Orchestrator (Beta) x-rate-limit-category: read + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -6418,6 +6416,8 @@ paths: tags: - Compliance Orchestrator (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -6496,6 +6496,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -6615,6 +6617,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -6671,6 +6675,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -6721,6 +6727,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -6855,6 +6863,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -6930,6 +6940,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -6999,6 +7011,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: async + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -7072,6 +7086,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -7196,6 +7212,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -7275,6 +7293,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -7352,6 +7372,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -7459,6 +7481,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -7511,6 +7535,8 @@ paths: tags: - Connected Accounts x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -9699,6 +9725,8 @@ paths: tags: - Cosigners x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -9764,6 +9792,8 @@ paths: tags: - Cosigners x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -9824,6 +9854,8 @@ paths: tags: - Cosigners x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -9882,6 +9914,8 @@ paths: tags: - Cosigners x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -9973,6 +10007,8 @@ paths: tags: - Cosigners x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -10045,6 +10081,8 @@ paths: tags: - Cosigners x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -10110,6 +10148,8 @@ paths: tags: - Cosigners x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -10183,6 +10223,8 @@ paths: tags: - Cosigners x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -10272,6 +10314,8 @@ paths: tags: - Cosigners x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -10348,6 +10392,8 @@ paths: tags: - Cosigners x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -11584,6 +11630,7 @@ paths: - application/json /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info: get: + deprecated: true description: Gets the public key of an asset associated with a specific account within a Non-Custodial Wallet operationId: getPublicKeyInfoForAddressNcw @@ -11671,6 +11718,10 @@ paths: - Embedded Wallets x-internal: true x-rate-limit-category: read + x-lifecycle: + state: deprecated + deprecated_at: 2026-06-30T00:00:00Z + sunset_at: 2026-12-31T00:00:00Z x-readme: code-samples: - language: python @@ -13507,39 +13558,6 @@ paths: x-accepts: - application/json /exchange_accounts: - get: - deprecated: true - description: |- - DEPRECATED - Please use the `/exchange_accounts/paged` endpoint. - Endpoint Permission: Admin, Non-Signing Admin. - operationId: getExchangeAccounts - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetExchangeAccountsResponse" - description: An ExchangeAccount object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: List exchange accounts - tags: - - Exchange accounts - x-internal: true - x-rate-limit-category: high_compute - x-readme: - code-samples: - - language: python - code: exchangeAccounts = fireblocks.get_exchange_accounts() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const exchangeAccounts = await fireblocks.getExchangeAccounts(); - name: Fireblocks SDK Javascript example - x-accepts: - - application/json post: description: "Add an exchange account to exchanges. \n\nNote: This endpoint\ \ currently only supports the following exchanges `INDEPENDENT_RESERVE`,`BIT`,\ @@ -15184,6 +15202,8 @@ paths: tags: - Genie (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -15258,6 +15278,8 @@ paths: tags: - Genie (Beta) x-rate-limit-category: write + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -16035,6 +16057,8 @@ paths: tags: - Key Link x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16107,6 +16131,8 @@ paths: tags: - Key Link x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16163,6 +16189,8 @@ paths: tags: - Key Link x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16219,6 +16247,8 @@ paths: tags: - Key Link x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16278,6 +16308,8 @@ paths: tags: - Key Link x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16352,6 +16384,8 @@ paths: tags: - Key Link x-rate-limit-category: async + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16421,6 +16455,8 @@ paths: tags: - Key Link x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16478,6 +16514,8 @@ paths: tags: - Key Link x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16575,6 +16613,8 @@ paths: tags: - Key Link x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16641,6 +16681,8 @@ paths: tags: - Key Link x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16697,6 +16739,8 @@ paths: tags: - Key Link x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16758,7 +16802,7 @@ paths: x-lifecycle: state: deprecated deprecated_at: 2026-11-01T00:00:00Z - sunset_at: 2027-01-01T00:00:00Z + sunset_at: 2027-05-01T00:00:00Z migration_guide: https://developers.fireblocks.com/reference/revokevalidationkey replacement_endpoint: "/v1/key_link/validation_keys/{keyId}/revoke" x-readme: @@ -16829,6 +16873,8 @@ paths: tags: - Key Link x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16873,6 +16919,8 @@ paths: tags: - Keys x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -16926,6 +16974,8 @@ paths: tags: - Keys x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -20170,6 +20220,8 @@ paths: tags: - OTA (Beta) x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -20235,6 +20287,8 @@ paths: tags: - OTA (Beta) x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -20264,6 +20318,7 @@ paths: - application/json /payments/workflow_config: post: + deprecated: true description: "Generate a new configuration ID to be used for initiating executions\ \ in subsequent phases. This configuration should include the operations you\ \ intend to incorporate into the workflow, such as TRANSFER, CONVERT, and\ @@ -20312,11 +20367,16 @@ paths: - Payments - Flows x-internal: true x-rate-limit-category: write + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-content-type: application/json x-accepts: - application/json /payments/workflow_config/{configId}: delete: + deprecated: true description: Delete a configuration using the specified "configId". operationId: deleteFlowConfiguration parameters: @@ -20352,9 +20412,14 @@ paths: - Payments - Flows x-internal: true x-rate-limit-category: write + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-accepts: - application/json get: + deprecated: true description: Retrieve a previously created workflow configuration using the specified "configId". operationId: getFlowConfiguration @@ -20391,10 +20456,15 @@ paths: - Payments - Flows x-internal: true x-rate-limit-category: read + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-accepts: - application/json /payments/workflow_execution: post: + deprecated: true description: "Validate the \"workflow-config\" previously created by utilizing\ \ the unique \"configId\". This step requires the mandatory field amount,\ \ and allows for modifications to other fields defined via the \"workflow-config\"\ @@ -20446,11 +20516,16 @@ paths: - Payments - Flows x-internal: true x-rate-limit-category: write + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-content-type: application/json x-accepts: - application/json /payments/workflow_execution/{workflowExecutionId}: get: + deprecated: true description: Retrieve details of a previously initiated workflow execution by specifying the "workflowExecutionId" operationId: getFlowExecution @@ -20487,10 +20562,15 @@ paths: - Payments - Flows x-internal: true x-rate-limit-category: read + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-accepts: - application/json /payments/workflow_execution/{workflowExecutionId}/actions/execute: post: + deprecated: true description: "Launch the execution of a pre-configured workflow, identified\ \ by \"workflowExecutionId\", once it reaches the READY_FOR_LAUNCH state.\ \ The workflow undergoes several phases during execution - EXECUTION_IN_PROGRESS\ @@ -20541,10 +20621,15 @@ paths: - Payments - Flows x-internal: true x-rate-limit-category: write + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-accepts: - application/json /payments/payout: post: + deprecated: true description: | **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only @@ -20670,6 +20755,10 @@ paths: tags: - Payments - Payout x-rate-limit-category: write + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-readme: code-samples: - language: typescript @@ -20697,6 +20786,7 @@ paths: - application/json /payments/payout/{payoutId}: get: + deprecated: true description: "**Note:** The reference content in this section documents the\ \ Payments Engine endpoint. The Payments Engine endpoints include APIs available\ \ only for customers with Payments Engine enabled on their accounts. \nThese\ @@ -20785,6 +20875,10 @@ paths: tags: - Payments - Payout x-rate-limit-category: query + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-readme: code-samples: - language: typescript @@ -20807,6 +20901,7 @@ paths: - application/json /payments/payout/{payoutId}/actions/execute: post: + deprecated: true description: | **Note:** The reference content in this section documents the Payments Engine endpoint. The Payments Engine endpoints include APIs available only @@ -20885,6 +20980,10 @@ paths: tags: - Payments - Payout x-rate-limit-category: write + x-lifecycle: + state: deprecated + deprecated_at: 2026-01-11T00:00:00Z + sunset_at: 2027-01-11T00:00:00Z x-readme: code-samples: - language: typescript @@ -20911,347 +21010,6 @@ paths: \ idempotency_key);" x-accepts: - application/json - /tap/active_policy: - get: - description: "Legacy Endpoint – Returns the active policy and its validation.\ - \ \n**Note:** \n- This endpoint will remain available for the foreseeable\ - \ future and is not deprecated. - The `getActivePolicy` endpoint under policy/paths\ - \ provides policy type-specific operations and improved functionality. - These\ - \ endpoints are currently in beta and might be subject to changes.\nIf you\ - \ want to participate and learn more about the Fireblocks TAP, please contact\ - \ your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: getActivePolicyLegacy - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPolicyAndValidationResponse" - description: A policy object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get the active policy and its validation - tags: - - Policy Editor (Beta) - x-rate-limit-category: query - x-readme: - code-samples: - - language: python - code: policy = fireblocks.get_active_policy() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.getActivePolicy(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getActivePolicyLegacy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.policy_editor_beta.get_active_policy_legacy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getActivePolicyLegacy();" - - lang: Java - source: CompletableFuture> - response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); - - lang: Python - source: response = fireblocks.policy_editor_beta.get_active_policy_legacy(); - x-accepts: - - application/json - /tap/draft: - get: - description: "Legacy Endpoint – Returns the active draft and its validation.\ - \ \n**Note:** \n- This endpoint will remain available for the foreseeable\ - \ future and is not deprecated. - The `getDraft` endpoint under policy/paths\ - \ provides policy type-specific operations and improved functionality. - These\ - \ endpoints are currently in beta and might be subject to changes.\nIf you\ - \ want to participate and learn more about the Fireblocks TAP, please contact\ - \ your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: getDraftLegacy - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyDraftReviewAndValidationResponse" - description: A draft validation response object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Get the active draft - tags: - - Policy Editor (Beta) - x-rate-limit-category: read - x-readme: - code-samples: - - language: python - code: policy = fireblocks.get_draft() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.getDraft(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getDraftLegacy();" - name: Fireblocks SDK TypeScript example - - language: java - code: CompletableFuture> - response = fireblocks.policyEditorBeta().getDraftLegacy(); - name: Fireblocks SDK Java example - - language: python - code: response = fireblocks.policy_editor_beta.get_draft_legacy(); - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.getDraftLegacy();" - - lang: Java - source: CompletableFuture> - response = fireblocks.policyEditorBeta().getDraftLegacy(); - - lang: Python - source: response = fireblocks.policy_editor_beta.get_draft_legacy(); - x-accepts: - - application/json - post: - description: "Legacy Endpoint – Send publish request of certain draft id and\ - \ returns the response. \n**Note:** \n- This endpoint will remain available\ - \ for the foreseeable future and is not deprecated. - The `publishDraft` endpoint\ - \ under policy/paths provides improved functionality and better performance.\ - \ - These endpoints are currently in beta and might be subject to changes.\n\ - If you want to participate and learn more about the Fireblocks TAP, please\ - \ contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: publishDraftLegacy - parameters: - - description: "A unique identifier for the request. If the request is sent\ - \ multiple times with the same idempotency key, the server will return the\ - \ same response as the first request. The idempotency key is valid for 24\ - \ hours." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPublishDraftRequest" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPublishResult" - description: A policy publish result object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Send publish request for a certain draft id - tags: - - Policy Editor (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: policy = fireblocks.publish_draft() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.publishDraft(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishDraftLegacy(policyEditorBetaApiPublishDraftLegacyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_beta.publish_draft_legacy(legacy_publish_draft_request,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishDraftLegacy(policyEditorBetaApiPublishDraftLegacyRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_beta.publish_draft_legacy(legacy_publish_draft_request,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - put: - description: "Legacy Endpoint – Update the draft and return its validation.\ - \ \n**Note:** \n- This endpoint will remain available for the foreseeable\ - \ future and is not deprecated. - The `updateDraft` endpoint under policy/paths\ - \ provides policy type-specific operations and improved functionality. - These\ - \ endpoints are currently in beta and might be subject to changes.\nIf you\ - \ want to participate and learn more about the Fireblocks TAP, please contact\ - \ your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.\n" - operationId: updateDraftLegacy - parameters: - - description: "A unique identifier for the request. If the request is sent\ - \ multiple times with the same idempotency key, the server will return the\ - \ same response as the first request. The idempotency key is valid for 24\ - \ hours." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPolicyRules" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyDraftReviewAndValidationResponse" - description: A draft validation response object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Update the draft with a new set of rules - tags: - - Policy Editor (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: policy = fireblocks.update_draft() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.updateDraft(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.updateDraftLegacy(policyEditorBetaApiUpdateDraftLegacyRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture>\ - \ response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_beta.update_draft_legacy(legacy_policy_rules,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.updateDraftLegacy(policyEditorBetaApiUpdateDraftLegacyRequest);" - - lang: Java - source: "CompletableFuture>\ - \ response = fireblocks.policyEditorBeta().updateDraftLegacy(legacyPolicyRules,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_beta.update_draft_legacy(legacy_policy_rules,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json - /tap/publish: - post: - description: "Send publish request of set of policy rules and returns the response.\ - \ \n**Note:** These endpoints are currently in beta and might be subject to\ - \ changes.\nIf you want to participate and learn more about the Fireblocks\ - \ TAP, please contact your Fireblocks Customer Success Manager or send an\ - \ email to CSM@fireblocks.com.\n" - operationId: publishPolicyRules - parameters: - - description: "A unique identifier for the request. If the request is sent\ - \ multiple times with the same idempotency key, the server will return the\ - \ same response as the first request. The idempotency key is valid for 24\ - \ hours." - explode: false - in: header - name: Idempotency-Key - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPolicyRules" - required: true - responses: - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/LegacyPublishResult" - description: A policy publish result object - headers: - X-Request-ID: - $ref: "#/components/headers/X-Request-ID" - default: - $ref: "#/components/responses/Error" - summary: Send publish request for a set of policy rules - tags: - - Policy Editor (Beta) - x-rate-limit-category: write - x-readme: - code-samples: - - language: python - code: policy = fireblocks.publish_rules() - name: Fireblocks SDK Python example (Legacy) - - language: javascript - code: const policy = await fireblocks.publishRules(); - name: Fireblocks SDK Javascript example - - language: typescript - code: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" - name: Fireblocks SDK TypeScript example - - language: java - code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(legacyPolicyRules,\ - \ idempotencyKey);" - name: Fireblocks SDK Java example - - language: python - code: "response = fireblocks.policy_editor_beta.publish_policy_rules(legacy_policy_rules,\ - \ idempotency_key);" - name: Fireblocks SDK Python example - x-codeSamples: - - lang: TypeScript - source: "const response: Promise>\ - \ = fireblocks.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" - - lang: Java - source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(legacyPolicyRules,\ - \ idempotencyKey);" - - lang: Python - source: "response = fireblocks.policy_editor_beta.publish_policy_rules(legacy_policy_rules,\ - \ idempotency_key);" - x-content-type: application/json - x-accepts: - - application/json /policy/active_policy: get: description: | @@ -21621,6 +21379,8 @@ paths: tags: - Policy Editor V2 (Beta) x-rate-limit-category: query + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -21744,6 +21504,8 @@ paths: tags: - Reports (Beta) x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -21823,6 +21585,8 @@ paths: tags: - Reports (Beta) x-rate-limit-category: report + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -21890,6 +21654,8 @@ paths: tags: - Reports (Beta) x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -24370,6 +24136,8 @@ paths: tags: - Staking x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -26436,6 +26204,8 @@ paths: tags: - Tempo (Beta) x-rate-limit-category: async + x-lifecycle: + state: ea x-readme: code-samples: - language: typescript @@ -29386,6 +29156,8 @@ paths: tags: - Trading x-rate-limit-category: external_query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -29564,6 +29336,8 @@ paths: tags: - Trading x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -29682,6 +29456,8 @@ paths: tags: - Trading x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -29789,6 +29565,8 @@ paths: tags: - Trading x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -29906,6 +29684,8 @@ paths: tags: - Trading x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -30050,6 +29830,8 @@ paths: tags: - Trading x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -30196,6 +29978,8 @@ paths: tags: - Trading x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -30453,6 +30237,8 @@ paths: tags: - Trading x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -30566,6 +30352,8 @@ paths: tags: - Trading x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -30672,6 +30460,8 @@ paths: tags: - Trading x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -30785,6 +30575,8 @@ paths: tags: - Trading x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -30902,6 +30694,8 @@ paths: tags: - Trading x-rate-limit-category: external_query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -32270,6 +32064,7 @@ paths: - application/json /screening/travel_rule/transaction/validate: post: + deprecated: true description: |- Validate Travel Rule transactions. Checks what beneficiary VASP details are required by your jurisdiction and the beneficiary's jurisdiction. @@ -32321,6 +32116,11 @@ paths: - Travel Rule x-internal: true x-rate-limit-category: write + x-lifecycle: + state: deprecated + deprecated_at: 2026-11-01T00:00:00Z + sunset_at: 2027-05-01T00:00:00Z + replacement_endpoint: /v1/screening/travel_rule/transaction/validate/full x-content-type: application/json x-accepts: - application/json @@ -34916,6 +34716,8 @@ paths: tags: - User groups (Beta) x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -34979,6 +34781,8 @@ paths: tags: - User groups (Beta) x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35038,6 +34842,8 @@ paths: tags: - User groups (Beta) x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35091,6 +34897,8 @@ paths: tags: - User groups (Beta) x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35163,6 +34971,8 @@ paths: tags: - User groups (Beta) x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35331,6 +35141,8 @@ paths: tags: - UTXO Management x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35402,6 +35214,8 @@ paths: tags: - UTXO Management x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35484,6 +35298,8 @@ paths: tags: - UTXO Management x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35697,6 +35513,8 @@ paths: tags: - UTXO Management x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35752,6 +35570,8 @@ paths: tags: - UTXO Management x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35815,6 +35635,8 @@ paths: tags: - UTXO Management x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -35898,6 +35720,12 @@ paths: - Vaults x-internal: true x-rate-limit-category: high_compute + x-lifecycle: + state: deprecated + deprecated_at: 2024-05-31T00:00:00Z + sunset_at: 2026-12-31T00:00:00Z + replacement_endpoint: /v1/vault/accounts_paged + migration_guide: https://support.fireblocks.io/hc/en-us/articles/30146946176924-GET-v1-vault-accounts-API-endpoint-retirement-December-2026 x-readme: code-samples: - language: python @@ -36720,6 +36548,11 @@ paths: - Vaults x-internal: true x-rate-limit-category: query + x-lifecycle: + state: deprecated + deprecated_at: 2024-03-31T00:00:00Z + sunset_at: 2027-05-16T00:00:00Z + replacement_endpoint: "/v1/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated" x-readme: code-samples: - language: python @@ -37992,6 +37825,8 @@ paths: tags: - Vaults x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -38061,6 +37896,8 @@ paths: tags: - Vaults x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -38133,6 +37970,8 @@ paths: tags: - Vaults x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -38195,6 +38034,8 @@ paths: tags: - Vaults x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -38269,6 +38110,8 @@ paths: tags: - Vaults x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -38338,6 +38181,8 @@ paths: tags: - Vaults x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -38422,6 +38267,8 @@ paths: tags: - Vaults x-rate-limit-category: write + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -38718,6 +38565,8 @@ paths: tags: - Vaults x-rate-limit-category: high_compute + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -39106,6 +38955,8 @@ paths: tags: - Vaults x-rate-limit-category: read + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -39956,7 +39807,7 @@ paths: - Webhooks V2 x-rate-limit-category: read x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40026,7 +39877,7 @@ paths: - Webhooks V2 x-rate-limit-category: write x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40098,7 +39949,7 @@ paths: - Webhooks V2 x-rate-limit-category: read x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40189,7 +40040,7 @@ paths: - Webhooks V2 x-rate-limit-category: write x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40248,7 +40099,7 @@ paths: - Webhooks V2 x-rate-limit-category: read x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40327,7 +40178,7 @@ paths: - Webhooks V2 x-rate-limit-category: write x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40377,7 +40228,7 @@ paths: - Webhooks V2 x-rate-limit-category: read x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40441,7 +40292,7 @@ paths: - Webhooks V2 x-rate-limit-category: write x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40535,7 +40386,7 @@ paths: - Webhooks V2 x-rate-limit-category: write x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40594,7 +40445,7 @@ paths: - Webhooks V2 x-rate-limit-category: read x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -40661,7 +40512,7 @@ paths: - Webhooks V2 x-rate-limit-category: write x-lifecycle: - state: ga + state: ea x-readme: code-samples: - language: typescript @@ -41889,6 +41740,8 @@ paths: - Workspace x-internal: true x-rate-limit-category: write + x-lifecycle: + state: ga x-accepts: - application/json /management/workspace_status: @@ -41914,6 +41767,8 @@ paths: tags: - Workspace Status (Beta) x-rate-limit-category: query + x-lifecycle: + state: ga x-readme: code-samples: - language: typescript @@ -44711,197 +44566,6 @@ components: - BIT_GENERA - TRANSFERO type: string - ExchangeAsset: - example: - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - properties: - id: - deprecated: true - description: Deprecated. Use assetId or assetLegacyId instead. - type: string - balance: - type: string - lockedAmount: - type: string - total: - type: string - available: - type: string - credit: - type: string - assetId: - description: The Fireblocks asset id. Present only when Fireblocks can identify - the exchange asset. - example: 2306088f-97ed-4293-8d28-8ab627f272d7 - type: string - providerSymbol: - description: The symbol used by the exchange provider to identify the asset. - example: BTC - type: string - assetSymbol: - description: The Fireblocks asset symbol. Present only when Fireblocks can - identify the exchange asset. - example: BTC - type: string - assetLegacyId: - description: The Fireblocks legacy asset id. Present only when Fireblocks - can identify the exchange asset. - example: BTC - type: string - type: object - ExchangeTradingAccount: - example: - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - properties: - type: - type: string - name: - type: string - assets: - items: - $ref: "#/components/schemas/ExchangeAsset" - type: array - type: object - ExchangeAccount: - example: - tradingAccounts: - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - name: name - type: type - isSubaccount: true - assets: - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - - providerSymbol: BTC - total: total - lockedAmount: lockedAmount - assetSymbol: BTC - balance: balance - assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 - assetLegacyId: BTC - available: available - id: id - credit: credit - success: true - name: name - id: id - type: INDEPENDENT_RESERVE - mainAccountId: mainAccountId - status: status - properties: - id: - type: string - type: - $ref: "#/components/schemas/ExchangeType" - name: - description: Display name of the exchange account - type: string - status: - type: string - assets: - items: - $ref: "#/components/schemas/ExchangeAsset" - type: array - success: - description: Did succeed in retrieve balance data - type: boolean - tradingAccounts: - items: - $ref: "#/components/schemas/ExchangeTradingAccount" - type: array - isSubaccount: - description: True if the account is a subaccount in an exchange - type: boolean - mainAccountId: - description: "if the account is a sub-account, the ID of the main account" - type: string - type: object - GetExchangeAccountsResponse: - items: - $ref: "#/components/schemas/ExchangeAccount" - type: array AddExchangeAccountRequest: example: name: name @@ -44943,6 +44607,193 @@ components: exchangeType: $ref: "#/components/schemas/ExchangeType" type: object + ExchangeAsset: + example: + providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + properties: + id: + deprecated: true + description: Deprecated. Use assetId or assetLegacyId instead. + type: string + balance: + type: string + lockedAmount: + type: string + total: + type: string + available: + type: string + credit: + type: string + assetId: + description: The Fireblocks asset id. Present only when Fireblocks can identify + the exchange asset. + example: 2306088f-97ed-4293-8d28-8ab627f272d7 + type: string + providerSymbol: + description: The symbol used by the exchange provider to identify the asset. + example: BTC + type: string + assetSymbol: + description: The Fireblocks asset symbol. Present only when Fireblocks can + identify the exchange asset. + example: BTC + type: string + assetLegacyId: + description: The Fireblocks legacy asset id. Present only when Fireblocks + can identify the exchange asset. + example: BTC + type: string + type: object + ExchangeTradingAccount: + example: + assets: + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + name: name + type: type + properties: + type: + type: string + name: + type: string + assets: + items: + $ref: "#/components/schemas/ExchangeAsset" + type: array + type: object + ExchangeAccount: + example: + tradingAccounts: + - assets: + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + name: name + type: type + - assets: + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + name: name + type: type + isSubaccount: true + assets: + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + - providerSymbol: BTC + total: total + lockedAmount: lockedAmount + assetSymbol: BTC + balance: balance + assetId: 2306088f-97ed-4293-8d28-8ab627f272d7 + assetLegacyId: BTC + available: available + id: id + credit: credit + success: true + name: name + id: id + type: INDEPENDENT_RESERVE + mainAccountId: mainAccountId + status: status + properties: + id: + type: string + type: + $ref: "#/components/schemas/ExchangeType" + name: + description: Display name of the exchange account + type: string + status: + type: string + assets: + items: + $ref: "#/components/schemas/ExchangeAsset" + type: array + success: + description: Did succeed in retrieve balance data + type: boolean + tradingAccounts: + items: + $ref: "#/components/schemas/ExchangeTradingAccount" + type: array + isSubaccount: + description: True if the account is a subaccount in an exchange + type: boolean + mainAccountId: + description: "if the account is a sub-account, the ID of the main account" + type: string + type: object GetPagedExchangeAccountsResponse: example: prevUrl: prevUrl @@ -72788,6 +72639,8 @@ components: providerId: ACME baseAssetId: ETH quoteAssetId: USDC + baseSymbol: ETH + quoteSymbol: USDC baseChain: ETH quoteChain: ETH side: BUY @@ -72822,6 +72675,22 @@ components: example: USDC minLength: 1 type: string + baseSymbol: + description: "Display symbol of the base asset, for readability when `baseAssetId`\ + \ is not self-explanatory (a privately listed asset or a UUID). `*` when\ + \ `baseAssetId` is `*`. Absent when the asset could not be resolved. Informational\ + \ only, not an identifier." + example: ETH + minLength: 1 + type: string + quoteSymbol: + description: "Display symbol of the quote asset, for readability when `quoteAssetId`\ + \ is not self-explanatory (a privately listed asset or a UUID). `*` when\ + \ `quoteAssetId` is `*`. Absent when the asset could not be resolved.\ + \ Informational only, not an identifier." + example: USDC + minLength: 1 + type: string baseChain: description: "Blockchain `legacyId` of the base asset (e.g. `ETH`, `BASECHAIN_ETH`,\ \ `ETH-AETH`, `SOL`). Set for leaf crypto assets; absent for fiat and\ @@ -76293,21 +76162,6 @@ components: - file - fileKey type: object - SetAdminQuorumThresholdRequest: - properties: - adminQuorumThreshold: - description: The number of admins that will requires to approve an operation - type: number - type: object - SetAdminQuorumThresholdResponse: - properties: - message: - description: The message which indicates the result of the operation. - example: Admin quorum threshold request sent successfully. - type: string - required: - - message - type: object Paging: example: next: next @@ -88100,1724 +87954,6 @@ components: description: Current workspace status type: string type: object - LegacyPolicySrcOrDestType: - description: | - * EXCHANGE - A third-party exchange account connected to your workspace - * UNMANAGED - A unmanaged wallet outside of Fireblocks workspace - * VAULT - An account in your Fireblocks Vault - * NETWORK_CONNECTION - A connection in your Fireblocks network - * COMPOUND - (deprecated) An asset retrieved by using the Compound DeFI protocol - * FIAT_ACCOUNT - A third-party fiat account connected to your workspace - * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks Workspace - * "*" - All types - enum: - - EXCHANGE - - UNMANAGED - - VAULT - - NETWORK_CONNECTION - - COMPOUND - - FIAT_ACCOUNT - - ONE_TIME_ADDRESS - - '*' - type: string - LegacyPolicySrcOrDestSubType: - description: | - * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by your clients and counterparties - * INTERNAL - A whitelisted wallet assigned as internal, is typically used for addresses that you control outside of your Fireblocks workspace - * CONTRACT - A whitelisted wallet assigned as contract is for identifying and managing external smart contracts - * EXCHANGETEST - Exchanges which operate only on testnet assets - * "*" - All subtypes - enum: - - EXTERNAL - - INTERNAL - - CONTRACT - - EXCHANGETEST - - '*' - type: string - LegacyPolicySrcOrDestId: - description: | - Defines the account id, options are - * "*" - All accounts - * Specific account id - type: string - LegacySrcOrDestAttributes: - description: | - Defines source or destination component, options are: - * id only - * id and type - first item in the array MUST be id. - * id, type and subtype - first item in the array MUST be id and second item MUST be type. - items: - $ref: "#/components/schemas/LegacySrcOrDestAttributes_inner" - maxItems: 3 - minItems: 1 - type: array - LegacyAmountAggregationTimePeriodMethod: - description: | - * PER_SINGLE_MATCH - Apply the limit to each listed entity - * ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities - enum: - - PER_SINGLE_MATCH - - ACROSS_ALL_MATCHES - type: string - LegacyPolicyRule: - description: Policy rule which is enforced on transactions - example: - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - properties: - operator: - deprecated: true - description: (deprecated - replaced by "operators") | Defines users who - can initiate the type of transaction to which the rule applies. options - are * "*" - All users are allowed * Specific User id - type: string - operators: - $ref: "#/components/schemas/LegacyPolicyRule_operators" - transactionType: - description: | - Defines the type of transaction to which the rule applies. - * TRANSFER - Default. Transfers funds from one account to another - * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. - * APPROVE - Allows a smart contract to withdraw from a designated wallet. - * MINT - Perform a mint operation (increase supply) on a supported token - * BURN - Perform a burn operation (reduce supply) on a supported token - * SUPPLY - Use for DeFi to lend assets - * REDEEM - Use for DeFi to get lending back - * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. - * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. - * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. - * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. - enum: - - TRANSFER - - CONTRACT_CALL - - APPROVE - - MINT - - BURN - - SUPPLY - - REDEEM - - STAKE - - RAW - - TYPED_MESSAGE - - PROGRAM_CALL - type: string - designatedSigner: - deprecated: true - description: (deprecated - replaced by "designatedSigners") Id representing - the user who signs transactions that match a specific rule - type: string - designatedSigners: - $ref: "#/components/schemas/LegacyPolicyRule_designatedSigners" - type: - description: Policy rule type - enum: - - TRANSFER - type: string - action: - description: "Defines what occurs when a transaction meets the rule's criteria\n\ - * ALLOW - The transaction goes through and can be signed without requiring\ - \ additional approvals\n* BLOCK - The transaction is automatically blocked\n\ - * 2-TIER - Only these users or user groups can approve \n If\ - \ any of them reject the transaction before the required approval threshold\ - \ is met, the transaction doesn't go through\n The list of entities\ - \ are set is \"authorizationGroups\" field\n" - enum: - - ALLOW - - BLOCK - - 2-TIER - type: string - asset: - description: | - Defines the type of asset being transacted, options are - * "*" - All assets - * Specific asset - type: string - srcType: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" - deprecated: true - description: (deprecated - replaced by "src") source account type - srcSubType: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" - deprecated: true - description: (deprecated - replaced by "src") source sub account type - srcId: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" - deprecated: true - description: (deprecated - replaced by "src") source account id - src: - $ref: "#/components/schemas/LegacyPolicyRule_src" - dstType: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" - deprecated: true - description: (deprecated - replaced by "dst") destination account type - dstSubType: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" - deprecated: true - description: (deprecated - replaced by "dst") destination sub account type - dstId: - allOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" - deprecated: true - description: (deprecated - replaced by "dst") destination account id - dst: - $ref: "#/components/schemas/LegacyPolicyRule_dst" - dstAddressType: - description: | - Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. - By default, you can only transfer to an external address after it’s whitelisted. - * WHITELISTED - Can only be sent to whitelisted addresses. - * ONE_TIME - Can only be sent to non-whitelisted external addresses. - * "*" - can be sent to whitelisted addresses or non-whitelisted external - enum: - - WHITELISTED - - ONE_TIME - - '*' - type: string - amountCurrency: - description: | - * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. - * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. - * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. - enum: - - USD - - EUR - - NATIVE - type: string - amountScope: - description: | - * SINGLE_TX - limit applies to a single transaction - * TIMEFRAME - limit applies to all transactions within the defined time period - enum: - - SINGLE_TX - - TIMEFRAME - type: string - amount: - $ref: "#/components/schemas/LegacyPolicyRule_amount" - periodSec: - description: | - Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. - When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. - type: number - authorizers: - deprecated: true - description: (deprecated - replaced by "authorizationGroups") Allowed entities - which can approves a transaction - items: - type: string - type: array - authorizersCount: - deprecated: true - description: (deprecated - replaced by "authorizationGroups") Min amount - of entities which are needed to approve a transaction - type: number - authorizationGroups: - $ref: "#/components/schemas/LegacyPolicyRule_authorizationGroups" - amountAggregation: - $ref: "#/components/schemas/LegacyPolicyRule_amountAggregation" - rawMessageSigning: - $ref: "#/components/schemas/LegacyPolicyRule_rawMessageSigning" - applyForApprove: - description: Applying this rule over APPROVE type transactions (can only - be enabled when rule's transaction type is TRANSFER) - type: boolean - applyForTypedMessage: - description: Applying this rule over TYPED_MESSAGE type transactions (can - only be enabled when rule's transaction type is CONTRACT_CALL) - type: boolean - externalDescriptor: - description: A unique id identifying the rule - type: string - required: - - action - - amount - - amountCurrency - - amountScope - - asset - - periodSec - - type - type: object - LegacyPolicyMetadata: - description: Policy related metadata - example: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - properties: - editedBy: - description: The user id of the user who last edited the policy - type: string - editedAt: - description: The timestamp of the last edit of the policy - type: string - publishedBy: - description: The user id of the user who last published the policy - type: string - publishedAt: - description: The timestamp of the last publish of the policy - type: string - type: object - LegacyPolicyResponse: - description: Response object for policy operations - example: - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - properties: - rules: - description: A set of policy rules - items: - $ref: "#/components/schemas/LegacyPolicyRule" - type: array - metadata: - $ref: "#/components/schemas/LegacyPolicyMetadata" - required: - - metadata - - rules - type: object - LegacyPolicyRuleError: - description: Rule validation result error - example: - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - properties: - errorMessage: - description: Error message - type: string - errorCode: - description: error code - type: number - errorCodeName: - description: error code name - type: string - errorField: - description: | - The field which the error relates to - * operator - transaction initiator - * operators - transaction initiators - * authorizationGroups - transaction authorizer groups - * designatedSigner - transaction signer - * designatedSigners - transaction signers - * contractMethods - contract methods - * amountAggregation - transaction amount aggregation configuration - * src - transaction source asset configuration - * dst - transaction destination asset configuration - enum: - - operator - - operators - - authorizationGroups - - designatedSigner - - designatedSigners - - contractMethods - - amountAggregation - - src - - dst - type: string - required: - - errorCode - - errorCodeName - - errorField - - errorMessage - type: object - LegacyPolicyRuleCheckResult: - description: The rule validation result - example: - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - properties: - index: - description: Rule index number in the policy - type: number - status: - description: Validation status - enum: - - ok - - failure - type: string - errors: - description: A set of rule validation error objects - items: - $ref: "#/components/schemas/LegacyPolicyRuleError" - type: array - required: - - errors - - index - - status - type: object - LegacyPolicyCheckResult: - description: Policy rules validation result - example: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - properties: - errors: - description: Number of errors - type: number - results: - description: A set of validation results - items: - $ref: "#/components/schemas/LegacyPolicyRuleCheckResult" - type: array - required: - - errors - - results - type: object - LegacyPolicyValidation: - description: Policy validation object - example: - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: status - properties: - status: - description: Validation status - type: string - checkResult: - $ref: "#/components/schemas/LegacyPolicyCheckResult" - required: - - checkResult - - status - type: object - LegacyPolicyAndValidationResponse: - description: Policy validation - example: - validation: - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: status - policy: - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - properties: - policy: - $ref: "#/components/schemas/LegacyPolicyResponse" - validation: - $ref: "#/components/schemas/LegacyPolicyValidation" - required: - - policy - - validation - type: object - LegacyDraftResponse: - description: Response object for draft operations - example: - draftId: draftId - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - status: status - properties: - status: - description: Operation status - type: string - rules: - description: Draft rules - items: - $ref: "#/components/schemas/LegacyPolicyRule" - type: array - draftId: - description: Draft unique id - type: string - metadata: - $ref: "#/components/schemas/LegacyPolicyMetadata" - required: - - draftId - - metadata - - rules - - status - type: object - LegacyDraftReviewAndValidationResponse: - description: Draft validation - example: - draftResponse: - draftId: draftId - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - status: status - validation: - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: status - properties: - draftResponse: - $ref: "#/components/schemas/LegacyDraftResponse" - validation: - $ref: "#/components/schemas/LegacyPolicyValidation" - required: - - draftResponse - - validation - type: object - LegacyPolicyRules: - example: - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - properties: - rules: - description: Policy rules - items: - $ref: "#/components/schemas/LegacyPolicyRule" - type: array - type: object - LegacyPublishDraftRequest: - example: - draftId: draftId - properties: - draftId: - description: draft unique identifier - type: string - type: object - LegacyPolicyStatus: - description: | - * SUCCESS - success - * UNVALIDATED - not validated yet - * INVALID_CONFIGURATION - at least one rule is invalid - * PENDING - pending approval - * PENDING_CONSOLE_APPROVAL - pending approval from the console app - * AWAITING_QUORUM - pending quorum approval - * UNHANDLED_ERROR - unhandled error - enum: - - SUCCESS - - UNVALIDATED - - INVALID_CONFIGURATION - - PENDING - - PENDING_CONSOLE_APPROVAL - - AWAITING_QUORUM - - UNHANDLED_ERROR - type: string - LegacyPublishResult: - description: Response object of the publish policy operation - example: - metadata: - publishedBy: publishedBy - editedBy: editedBy - publishedAt: publishedAt - editedAt: editedAt - rules: - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - - dst: - ids: - - null - - null - designatedSigner: designatedSigner - dstAddressType: WHITELISTED - designatedSigners: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - type: TRANSFER - operator: operator - applyForApprove: true - operators: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - periodSec: 0.8008281904610115 - srcId: "" - action: ALLOW - dstSubType: "" - authorizationGroups: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - amountCurrency: USD - amount: LegacyPolicyRule_amount - src: - ids: - - - null - - null - - null - - - null - - null - - null - authorizersCount: 6.027456183070403 - dstType: "" - srcType: "" - transactionType: TRANSFER - externalDescriptor: externalDescriptor - srcSubType: "" - applyForTypedMessage: true - dstId: "" - authorizers: - - authorizers - - authorizers - rawMessageSigning: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - asset: asset - amountAggregation: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - amountScope: SINGLE_TX - checkResult: - results: - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - - index: 2.3021358869347655 - errors: - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - - errorCodeName: errorCodeName - errorField: operator - errorMessage: errorMessage - errorCode: 7.061401241503109 - status: ok - errors: 5.637376656633329 - status: SUCCESS - properties: - status: - $ref: "#/components/schemas/LegacyPolicyStatus" - rules: - items: - $ref: "#/components/schemas/LegacyPolicyRule" - type: array - checkResult: - $ref: "#/components/schemas/LegacyPolicyCheckResult" - metadata: - $ref: "#/components/schemas/LegacyPolicyMetadata" - required: - - checkResult - - metadata - - rules - - status - type: object SecurityFinding: description: A single FSPM finding properties: @@ -98807,216 +96943,6 @@ components: example: No change needed. The current status is false type: string type: object - LegacySrcOrDestAttributes_inner: - anyOf: - - $ref: "#/components/schemas/LegacyPolicySrcOrDestId" - - $ref: "#/components/schemas/LegacyPolicySrcOrDestType" - - $ref: "#/components/schemas/LegacyPolicySrcOrDestSubType" - LegacyPolicyRule_operators: - description: Defines users/groups who can initiate the type of transaction to - which the rule applies. - example: - usersGroups: - - usersGroups - - usersGroups - services: - - services - - services - users: - - users - - users - wildcard: '*' - properties: - wildcard: - description: | - If used then this property should appear as the only child property - * "*" - All users are allowed - enum: - - '*' - type: string - users: - description: Set of users ids - items: - type: string - type: array - usersGroups: - description: Set of group ids - items: - type: string - type: array - services: - description: set of services to initiate transactions - items: - type: string - type: array - type: object - LegacyPolicyRule_designatedSigners: - description: Set of ids representing the users who signs transactions that match - a specific rule - example: - usersGroups: - - usersGroups - - usersGroups - users: - - users - - users - properties: - users: - description: Set of users ids - items: - type: string - type: array - usersGroups: - description: Set of group ids - items: - type: string - type: array - type: object - LegacyPolicyRule_src: - description: Defines source accounts the rule allows transfers to originate - from - example: - ids: - - - null - - null - - null - - - null - - null - - null - properties: - ids: - description: A set of ids in a tuple format - items: - $ref: "#/components/schemas/LegacySrcOrDestAttributes" - type: array - type: object - LegacyPolicyRule_dst: - description: Defines the destination accounts the rule allows transfers to - example: - ids: - - null - - null - properties: - ids: - description: A set of ids in a tuple format - items: - $ref: "#/components/schemas/LegacySrcOrDestAttributes" - type: array - type: object - LegacyPolicyRule_amount: - anyOf: - - description: Numeric string (recommended) - type: string - - description: Number (deprecated) - type: number - description: Defines the value a transaction must exceed for the rule to apply - to it (according to the amountCurrency field) - LegacyPolicyRule_authorizationGroups_groups_inner: - example: - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - properties: - users: - description: User ids - items: - type: string - type: array - usersGroups: - description: Group ids - items: - type: string - type: array - th: - description: "Represents the min amount of entities which are required to\ - \ approve the transaction, default is 1." - type: number - type: object - LegacyPolicyRule_authorizationGroups: - description: Defines the transaction approval terms - example: - allowOperatorAsAuthorizer: true - groups: - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - - usersGroups: - - usersGroups - - usersGroups - th: 1.4658129805029452 - users: - - users - - users - logic: AND - properties: - logic: - description: | - * AND - requires approval of all authorization groups - * OR - requires approval of at least one of the authorization groups - enum: - - AND - - OR - type: string - allowOperatorAsAuthorizer: - description: Defines whether the user who initiates a transaction can approve - their own transaction and count toward the approval threshold for their - transaction - type: boolean - groups: - description: Groups of entities which can approve the transaction - items: - $ref: "#/components/schemas/LegacyPolicyRule_authorizationGroups_groups_inner" - type: array - type: object - LegacyPolicyRule_amountAggregation: - description: | - Defines the method by which the Policy Engine calculates accumulation. - It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. - example: - dstTransferPeers: null - operators: PER_SINGLE_MATCH - srcTransferPeers: null - properties: - operators: - $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" - srcTransferPeers: - $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" - dstTransferPeers: - $ref: "#/components/schemas/LegacyAmountAggregationTimePeriodMethod" - type: object - LegacyPolicyRule_rawMessageSigning_derivationPath: - example: - path: - - 5.962133916683182 - - 5.962133916683182 - properties: - path: - items: - type: number - type: array - type: object - LegacyPolicyRule_rawMessageSigning: - description: Raw message signing configuration - example: - derivationPath: - path: - - 5.962133916683182 - - 5.962133916683182 - algorithm: algorithm - properties: - algorithm: - type: string - derivationPath: - $ref: "#/components/schemas/LegacyPolicyRule_rawMessageSigning_derivationPath" - type: object AssetTypesConfig_inner: oneOf: - type: string diff --git a/build.gradle b/build.gradle index 917e835e..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 = '36.1.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/LegacyAmountAggregationTimePeriodMethod.md b/docs/LegacyAmountAggregationTimePeriodMethod.md deleted file mode 100644 index b15d55f9..00000000 --- a/docs/LegacyAmountAggregationTimePeriodMethod.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# LegacyAmountAggregationTimePeriodMethod - -## Enum - - -* `PER_SINGLE_MATCH` (value: `"PER_SINGLE_MATCH"`) - -* `ACROSS_ALL_MATCHES` (value: `"ACROSS_ALL_MATCHES"`) - - - diff --git a/docs/LegacyDraftResponse.md b/docs/LegacyDraftResponse.md deleted file mode 100644 index c3253fa9..00000000 --- a/docs/LegacyDraftResponse.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# LegacyDraftResponse - -Response object for draft operations - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **String** | Operation status | | -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | Draft rules | | -|**draftId** | **String** | Draft unique id | | -|**metadata** | [**LegacyPolicyMetadata**](LegacyPolicyMetadata.md) | | | - - - diff --git a/docs/LegacyDraftReviewAndValidationResponse.md b/docs/LegacyDraftReviewAndValidationResponse.md deleted file mode 100644 index 0a31957e..00000000 --- a/docs/LegacyDraftReviewAndValidationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyDraftReviewAndValidationResponse - -Draft validation - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**draftResponse** | [**LegacyDraftResponse**](LegacyDraftResponse.md) | | | -|**validation** | [**LegacyPolicyValidation**](LegacyPolicyValidation.md) | | | - - - diff --git a/docs/LegacyPolicyAndValidationResponse.md b/docs/LegacyPolicyAndValidationResponse.md deleted file mode 100644 index 74ae13c8..00000000 --- a/docs/LegacyPolicyAndValidationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyAndValidationResponse - -Policy validation - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**policy** | [**LegacyPolicyResponse**](LegacyPolicyResponse.md) | | | -|**validation** | [**LegacyPolicyValidation**](LegacyPolicyValidation.md) | | | - - - diff --git a/docs/LegacyPolicyCheckResult.md b/docs/LegacyPolicyCheckResult.md deleted file mode 100644 index 67f02b4a..00000000 --- a/docs/LegacyPolicyCheckResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyCheckResult - -Policy rules validation result - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**errors** | **BigDecimal** | Number of errors | | -|**results** | [**List<LegacyPolicyRuleCheckResult>**](LegacyPolicyRuleCheckResult.md) | A set of validation results | | - - - diff --git a/docs/LegacyPolicyMetadata.md b/docs/LegacyPolicyMetadata.md deleted file mode 100644 index f2df5e95..00000000 --- a/docs/LegacyPolicyMetadata.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# LegacyPolicyMetadata - -Policy related metadata - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**editedBy** | **String** | The user id of the user who last edited the policy | [optional] | -|**editedAt** | **String** | The timestamp of the last edit of the policy | [optional] | -|**publishedBy** | **String** | The user id of the user who last published the policy | [optional] | -|**publishedAt** | **String** | The timestamp of the last publish of the policy | [optional] | - - - diff --git a/docs/LegacyPolicyResponse.md b/docs/LegacyPolicyResponse.md deleted file mode 100644 index 5355792f..00000000 --- a/docs/LegacyPolicyResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyResponse - -Response object for policy operations - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | A set of policy rules | | -|**metadata** | [**LegacyPolicyMetadata**](LegacyPolicyMetadata.md) | | | - - - diff --git a/docs/LegacyPolicyRule.md b/docs/LegacyPolicyRule.md deleted file mode 100644 index b418f2e6..00000000 --- a/docs/LegacyPolicyRule.md +++ /dev/null @@ -1,107 +0,0 @@ - - -# LegacyPolicyRule - -Policy rule which is enforced on transactions - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**operator** | **String** | (deprecated - replaced by \"operators\") | Defines users who can initiate the type of transaction to which the rule applies. options are * \"*\" - All users are allowed * Specific User id | [optional] | -|**operators** | [**LegacyPolicyRuleOperators**](LegacyPolicyRuleOperators.md) | | [optional] | -|**transactionType** | [**TransactionTypeEnum**](#TransactionTypeEnum) | Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. | [optional] | -|**designatedSigner** | **String** | (deprecated - replaced by \"designatedSigners\") Id representing the user who signs transactions that match a specific rule | [optional] | -|**designatedSigners** | [**LegacyPolicyRuleDesignatedSigners**](LegacyPolicyRuleDesignatedSigners.md) | | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Policy rule type | | -|**action** | [**ActionEnum**](#ActionEnum) | Defines what occurs when a transaction meets the rule's criteria * ALLOW - The transaction goes through and can be signed without requiring additional approvals * BLOCK - The transaction is automatically blocked * 2-TIER - Only these users or user groups can approve If any of them reject the transaction before the required approval threshold is met, the transaction doesn't go through The list of entities are set is \"authorizationGroups\" field | | -|**asset** | **String** | Defines the type of asset being transacted, options are * \"*\" - All assets * Specific asset | | -|**srcType** | **LegacyPolicySrcOrDestType** | (deprecated - replaced by \"src\") source account type | [optional] | -|**srcSubType** | **LegacyPolicySrcOrDestSubType** | (deprecated - replaced by \"src\") source sub account type | [optional] | -|**srcId** | **String** | (deprecated - replaced by \"src\") source account id | [optional] | -|**src** | [**LegacyPolicyRuleSrc**](LegacyPolicyRuleSrc.md) | | [optional] | -|**dstType** | **LegacyPolicySrcOrDestType** | (deprecated - replaced by \"dst\") destination account type | [optional] | -|**dstSubType** | **LegacyPolicySrcOrDestSubType** | (deprecated - replaced by \"dst\") destination sub account type | [optional] | -|**dstId** | **String** | (deprecated - replaced by \"dst\") destination account id | [optional] | -|**dst** | [**LegacyPolicyRuleDst**](LegacyPolicyRuleDst.md) | | [optional] | -|**dstAddressType** | [**DstAddressTypeEnum**](#DstAddressTypeEnum) | Defines whether the destination to which you are sending funds must be whitelisted, to allow one-time transfers to non-whitelisted external addresses, or both. By default, you can only transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * \"*\" - can be sent to whitelisted addresses or non-whitelisted external | [optional] | -|**amountCurrency** | [**AmountCurrencyEnum**](#AmountCurrencyEnum) | * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a specific asset. | | -|**amountScope** | [**AmountScopeEnum**](#AmountScopeEnum) | * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all transactions within the defined time period | | -|**amount** | [**LegacyPolicyRuleAmount**](LegacyPolicyRuleAmount.md) | | | -|**periodSec** | **BigDecimal** | Time period in seconds applied by the amountScope field to accumulate transferred amounts in transactions that match the rule, until the total exceeds the value you specify under Minimum. When the specified amount is reached within that period, whether by one or many transactions, further transactions in that period either fail or require more approvals. | | -|**authorizers** | **List<String>** | (deprecated - replaced by \"authorizationGroups\") Allowed entities which can approves a transaction | [optional] | -|**authorizersCount** | **BigDecimal** | (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are needed to approve a transaction | [optional] | -|**authorizationGroups** | [**LegacyPolicyRuleAuthorizationGroups**](LegacyPolicyRuleAuthorizationGroups.md) | | [optional] | -|**amountAggregation** | [**LegacyPolicyRuleAmountAggregation**](LegacyPolicyRuleAmountAggregation.md) | | [optional] | -|**rawMessageSigning** | [**LegacyPolicyRuleRawMessageSigning**](LegacyPolicyRuleRawMessageSigning.md) | | [optional] | -|**applyForApprove** | **Boolean** | Applying this rule over APPROVE type transactions (can only be enabled when rule's transaction type is TRANSFER) | [optional] | -|**applyForTypedMessage** | **Boolean** | Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's transaction type is CONTRACT_CALL) | [optional] | -|**externalDescriptor** | **String** | A unique id identifying the rule | [optional] | - - - -## Enum: TransactionTypeEnum - -| Name | Value | -|---- | -----| -| TRANSFER | "TRANSFER" | -| CONTRACT_CALL | "CONTRACT_CALL" | -| APPROVE | "APPROVE" | -| MINT | "MINT" | -| BURN | "BURN" | -| SUPPLY | "SUPPLY" | -| REDEEM | "REDEEM" | -| STAKE | "STAKE" | -| RAW | "RAW" | -| TYPED_MESSAGE | "TYPED_MESSAGE" | -| PROGRAM_CALL | "PROGRAM_CALL" | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| TRANSFER | "TRANSFER" | - - - -## Enum: ActionEnum - -| Name | Value | -|---- | -----| -| ALLOW | "ALLOW" | -| BLOCK | "BLOCK" | -| _2_TIER | "2-TIER" | - - - -## Enum: DstAddressTypeEnum - -| Name | Value | -|---- | -----| -| WHITELISTED | "WHITELISTED" | -| ONE_TIME | "ONE_TIME" | -| STAR | "*" | - - - -## Enum: AmountCurrencyEnum - -| Name | Value | -|---- | -----| -| USD | "USD" | -| EUR | "EUR" | -| NATIVE | "NATIVE" | - - - -## Enum: AmountScopeEnum - -| Name | Value | -|---- | -----| -| SINGLE_TX | "SINGLE_TX" | -| TIMEFRAME | "TIMEFRAME" | - - - diff --git a/docs/LegacyPolicyRuleAmount.md b/docs/LegacyPolicyRuleAmount.md deleted file mode 100644 index fd9aa34d..00000000 --- a/docs/LegacyPolicyRuleAmount.md +++ /dev/null @@ -1,39 +0,0 @@ - - -# LegacyPolicyRuleAmount - -Defines the value a transaction must exceed for the rule to apply to it (according to the amountCurrency field) - -## anyOf schemas -* [BigDecimal](BigDecimal.md) -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.LegacyPolicyRuleAmount; -import com.fireblocks.sdk.model.BigDecimal; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - LegacyPolicyRuleAmount exampleLegacyPolicyRuleAmount = new LegacyPolicyRuleAmount(); - - // create a new BigDecimal - BigDecimal exampleBigDecimal = new BigDecimal(); - // set LegacyPolicyRuleAmount to BigDecimal - exampleLegacyPolicyRuleAmount.setActualInstance(exampleBigDecimal); - // to get back the BigDecimal set earlier - BigDecimal testBigDecimal = (BigDecimal) exampleLegacyPolicyRuleAmount.getActualInstance(); - - // create a new String - String exampleString = new String(); - // set LegacyPolicyRuleAmount to String - exampleLegacyPolicyRuleAmount.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleLegacyPolicyRuleAmount.getActualInstance(); - } -} -``` - - diff --git a/docs/LegacyPolicyRuleAmountAggregation.md b/docs/LegacyPolicyRuleAmountAggregation.md deleted file mode 100644 index cd9de811..00000000 --- a/docs/LegacyPolicyRuleAmountAggregation.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# LegacyPolicyRuleAmountAggregation - -Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, Source, and Destination to calculate accumulation toward the value under Minimum, for the time under Time Period. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**operators** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | -|**srcTransferPeers** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | -|**dstTransferPeers** | **LegacyAmountAggregationTimePeriodMethod** | | [optional] | - - - diff --git a/docs/LegacyPolicyRuleAuthorizationGroups.md b/docs/LegacyPolicyRuleAuthorizationGroups.md deleted file mode 100644 index 68921120..00000000 --- a/docs/LegacyPolicyRuleAuthorizationGroups.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# LegacyPolicyRuleAuthorizationGroups - -Defines the transaction approval terms - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**logic** | [**LogicEnum**](#LogicEnum) | * AND - requires approval of all authorization groups * OR - requires approval of at least one of the authorization groups | [optional] | -|**allowOperatorAsAuthorizer** | **Boolean** | Defines whether the user who initiates a transaction can approve their own transaction and count toward the approval threshold for their transaction | [optional] | -|**groups** | [**List<LegacyPolicyRuleAuthorizationGroupsGroupsInner>**](LegacyPolicyRuleAuthorizationGroupsGroupsInner.md) | Groups of entities which can approve the transaction | [optional] | - - - -## Enum: LogicEnum - -| Name | Value | -|---- | -----| -| AND | "AND" | -| OR | "OR" | - - - diff --git a/docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md b/docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md deleted file mode 100644 index 2b28e839..00000000 --- a/docs/LegacyPolicyRuleAuthorizationGroupsGroupsInner.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyRuleAuthorizationGroupsGroupsInner - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**users** | **List<String>** | User ids | [optional] | -|**usersGroups** | **List<String>** | Group ids | [optional] | -|**th** | **BigDecimal** | Represents the min amount of entities which are required to approve the transaction, default is 1. | [optional] | - - - diff --git a/docs/LegacyPolicyRuleCheckResult.md b/docs/LegacyPolicyRuleCheckResult.md deleted file mode 100644 index 799c0f9e..00000000 --- a/docs/LegacyPolicyRuleCheckResult.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# LegacyPolicyRuleCheckResult - -The rule validation result - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**index** | **BigDecimal** | Rule index number in the policy | | -|**status** | [**StatusEnum**](#StatusEnum) | Validation status | | -|**errors** | [**List<LegacyPolicyRuleError>**](LegacyPolicyRuleError.md) | A set of rule validation error objects | | - - - -## Enum: StatusEnum - -| Name | Value | -|---- | -----| -| OK | "ok" | -| FAILURE | "failure" | - - - diff --git a/docs/LegacyPolicyRuleDesignatedSigners.md b/docs/LegacyPolicyRuleDesignatedSigners.md deleted file mode 100644 index e46094f1..00000000 --- a/docs/LegacyPolicyRuleDesignatedSigners.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyRuleDesignatedSigners - -Set of ids representing the users who signs transactions that match a specific rule - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**users** | **List<String>** | Set of users ids | [optional] | -|**usersGroups** | **List<String>** | Set of group ids | [optional] | - - - diff --git a/docs/LegacyPolicyRuleDst.md b/docs/LegacyPolicyRuleDst.md deleted file mode 100644 index 851ac986..00000000 --- a/docs/LegacyPolicyRuleDst.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# LegacyPolicyRuleDst - -Defines the destination accounts the rule allows transfers to - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**ids** | **List<List<LegacySrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | - - - diff --git a/docs/LegacyPolicyRuleError.md b/docs/LegacyPolicyRuleError.md deleted file mode 100644 index 4a7e94d9..00000000 --- a/docs/LegacyPolicyRuleError.md +++ /dev/null @@ -1,33 +0,0 @@ - - -# LegacyPolicyRuleError - -Rule validation result error - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**errorMessage** | **String** | Error message | | -|**errorCode** | **BigDecimal** | error code | | -|**errorCodeName** | **String** | error code name | | -|**errorField** | [**ErrorFieldEnum**](#ErrorFieldEnum) | The field which the error relates to * operator - transaction initiator * operators - transaction initiators * authorizationGroups - transaction authorizer groups * designatedSigner - transaction signer * designatedSigners - transaction signers * contractMethods - contract methods * amountAggregation - transaction amount aggregation configuration * src - transaction source asset configuration * dst - transaction destination asset configuration | | - - - -## Enum: ErrorFieldEnum - -| Name | Value | -|---- | -----| -| OPERATOR | "operator" | -| OPERATORS | "operators" | -| AUTHORIZATION_GROUPS | "authorizationGroups" | -| DESIGNATED_SIGNER | "designatedSigner" | -| DESIGNATED_SIGNERS | "designatedSigners" | -| CONTRACT_METHODS | "contractMethods" | -| AMOUNT_AGGREGATION | "amountAggregation" | -| SRC | "src" | -| DST | "dst" | - - - diff --git a/docs/LegacyPolicyRuleOperators.md b/docs/LegacyPolicyRuleOperators.md deleted file mode 100644 index e24b4caa..00000000 --- a/docs/LegacyPolicyRuleOperators.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# LegacyPolicyRuleOperators - -Defines users/groups who can initiate the type of transaction to which the rule applies. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**wildcard** | [**WildcardEnum**](#WildcardEnum) | If used then this property should appear as the only child property * \"*\" - All users are allowed | [optional] | -|**users** | **List<String>** | Set of users ids | [optional] | -|**usersGroups** | **List<String>** | Set of group ids | [optional] | -|**services** | **List<String>** | set of services to initiate transactions | [optional] | - - - -## Enum: WildcardEnum - -| Name | Value | -|---- | -----| -| STAR | "*" | - - - diff --git a/docs/LegacyPolicyRuleRawMessageSigning.md b/docs/LegacyPolicyRuleRawMessageSigning.md deleted file mode 100644 index 89a75890..00000000 --- a/docs/LegacyPolicyRuleRawMessageSigning.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyRuleRawMessageSigning - -Raw message signing configuration - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**algorithm** | **String** | | [optional] | -|**derivationPath** | [**LegacyPolicyRuleRawMessageSigningDerivationPath**](LegacyPolicyRuleRawMessageSigningDerivationPath.md) | | [optional] | - - - diff --git a/docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md b/docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md deleted file mode 100644 index 2bf14b8d..00000000 --- a/docs/LegacyPolicyRuleRawMessageSigningDerivationPath.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# LegacyPolicyRuleRawMessageSigningDerivationPath - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**path** | **List<BigDecimal>** | | [optional] | - - - diff --git a/docs/LegacyPolicyRuleSrc.md b/docs/LegacyPolicyRuleSrc.md deleted file mode 100644 index 6da4afa8..00000000 --- a/docs/LegacyPolicyRuleSrc.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# LegacyPolicyRuleSrc - -Defines source accounts the rule allows transfers to originate from - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**ids** | **List<List<LegacySrcOrDestAttributesInner>>** | A set of ids in a tuple format | [optional] | - - - diff --git a/docs/LegacyPolicyRules.md b/docs/LegacyPolicyRules.md deleted file mode 100644 index 9188fb16..00000000 --- a/docs/LegacyPolicyRules.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# LegacyPolicyRules - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | Policy rules | [optional] | - - - diff --git a/docs/LegacyPolicySrcOrDestSubType.md b/docs/LegacyPolicySrcOrDestSubType.md deleted file mode 100644 index 2f300b69..00000000 --- a/docs/LegacyPolicySrcOrDestSubType.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# LegacyPolicySrcOrDestSubType - -## Enum - - -* `EXTERNAL` (value: `"EXTERNAL"`) - -* `INTERNAL` (value: `"INTERNAL"`) - -* `CONTRACT` (value: `"CONTRACT"`) - -* `EXCHANGETEST` (value: `"EXCHANGETEST"`) - -* `STAR` (value: `"*"`) - - - diff --git a/docs/LegacyPolicySrcOrDestType.md b/docs/LegacyPolicySrcOrDestType.md deleted file mode 100644 index 5b631006..00000000 --- a/docs/LegacyPolicySrcOrDestType.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# LegacyPolicySrcOrDestType - -## Enum - - -* `EXCHANGE` (value: `"EXCHANGE"`) - -* `UNMANAGED` (value: `"UNMANAGED"`) - -* `VAULT` (value: `"VAULT"`) - -* `NETWORK_CONNECTION` (value: `"NETWORK_CONNECTION"`) - -* `COMPOUND` (value: `"COMPOUND"`) - -* `FIAT_ACCOUNT` (value: `"FIAT_ACCOUNT"`) - -* `ONE_TIME_ADDRESS` (value: `"ONE_TIME_ADDRESS"`) - -* `STAR` (value: `"*"`) - - - diff --git a/docs/LegacyPolicyStatus.md b/docs/LegacyPolicyStatus.md deleted file mode 100644 index a6618ddc..00000000 --- a/docs/LegacyPolicyStatus.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# LegacyPolicyStatus - -## Enum - - -* `SUCCESS` (value: `"SUCCESS"`) - -* `UNVALIDATED` (value: `"UNVALIDATED"`) - -* `INVALID_CONFIGURATION` (value: `"INVALID_CONFIGURATION"`) - -* `PENDING` (value: `"PENDING"`) - -* `PENDING_CONSOLE_APPROVAL` (value: `"PENDING_CONSOLE_APPROVAL"`) - -* `AWAITING_QUORUM` (value: `"AWAITING_QUORUM"`) - -* `UNHANDLED_ERROR` (value: `"UNHANDLED_ERROR"`) - - - diff --git a/docs/LegacyPolicyValidation.md b/docs/LegacyPolicyValidation.md deleted file mode 100644 index aaddb73d..00000000 --- a/docs/LegacyPolicyValidation.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# LegacyPolicyValidation - -Policy validation object - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **String** | Validation status | | -|**checkResult** | [**LegacyPolicyCheckResult**](LegacyPolicyCheckResult.md) | | | - - - diff --git a/docs/LegacyPublishDraftRequest.md b/docs/LegacyPublishDraftRequest.md deleted file mode 100644 index 92947d38..00000000 --- a/docs/LegacyPublishDraftRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# LegacyPublishDraftRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**draftId** | **String** | draft unique identifier | [optional] | - - - diff --git a/docs/LegacyPublishResult.md b/docs/LegacyPublishResult.md deleted file mode 100644 index 05504fda..00000000 --- a/docs/LegacyPublishResult.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# LegacyPublishResult - -Response object of the publish policy operation - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**status** | **LegacyPolicyStatus** | | | -|**rules** | [**List<LegacyPolicyRule>**](LegacyPolicyRule.md) | | | -|**checkResult** | [**LegacyPolicyCheckResult**](LegacyPolicyCheckResult.md) | | | -|**metadata** | [**LegacyPolicyMetadata**](LegacyPolicyMetadata.md) | | | - - - diff --git a/docs/LegacySrcOrDestAttributesInner.md b/docs/LegacySrcOrDestAttributesInner.md deleted file mode 100644 index 38b79bd0..00000000 --- a/docs/LegacySrcOrDestAttributesInner.md +++ /dev/null @@ -1,46 +0,0 @@ - - -# LegacySrcOrDestAttributesInner - -## anyOf schemas -* [LegacyPolicySrcOrDestSubType](LegacyPolicySrcOrDestSubType.md) -* [LegacyPolicySrcOrDestType](LegacyPolicySrcOrDestType.md) -* [String](String.md) - -## Example -```java -// Import classes: -import com.fireblocks.sdk.model.LegacySrcOrDestAttributesInner; -import com.fireblocks.sdk.model.LegacyPolicySrcOrDestSubType; -import com.fireblocks.sdk.model.LegacyPolicySrcOrDestType; -import com.fireblocks.sdk.model.String; - -public class Example { - public static void main(String[] args) { - LegacySrcOrDestAttributesInner exampleLegacySrcOrDestAttributesInner = new LegacySrcOrDestAttributesInner(); - - // create a new LegacyPolicySrcOrDestSubType - LegacyPolicySrcOrDestSubType exampleLegacyPolicySrcOrDestSubType = new LegacyPolicySrcOrDestSubType(); - // set LegacySrcOrDestAttributesInner to LegacyPolicySrcOrDestSubType - exampleLegacySrcOrDestAttributesInner.setActualInstance(exampleLegacyPolicySrcOrDestSubType); - // to get back the LegacyPolicySrcOrDestSubType set earlier - LegacyPolicySrcOrDestSubType testLegacyPolicySrcOrDestSubType = (LegacyPolicySrcOrDestSubType) exampleLegacySrcOrDestAttributesInner.getActualInstance(); - - // create a new LegacyPolicySrcOrDestType - LegacyPolicySrcOrDestType exampleLegacyPolicySrcOrDestType = new LegacyPolicySrcOrDestType(); - // set LegacySrcOrDestAttributesInner to LegacyPolicySrcOrDestType - exampleLegacySrcOrDestAttributesInner.setActualInstance(exampleLegacyPolicySrcOrDestType); - // to get back the LegacyPolicySrcOrDestType set earlier - LegacyPolicySrcOrDestType testLegacyPolicySrcOrDestType = (LegacyPolicySrcOrDestType) exampleLegacySrcOrDestAttributesInner.getActualInstance(); - - // create a new String - String exampleString = new String(); - // set LegacySrcOrDestAttributesInner to String - exampleLegacySrcOrDestAttributesInner.setActualInstance(exampleString); - // to get back the String set earlier - String testString = (String) exampleLegacySrcOrDestAttributesInner.getActualInstance(); - } -} -``` - - diff --git a/docs/PolicyEditorBetaApi.md b/docs/PolicyEditorBetaApi.md deleted file mode 100644 index 13283232..00000000 --- a/docs/PolicyEditorBetaApi.md +++ /dev/null @@ -1,396 +0,0 @@ -# PolicyEditorBetaApi - -All URIs are relative to https://developers.fireblocks.com/reference/ - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**getActivePolicyLegacy**](PolicyEditorBetaApi.md#getActivePolicyLegacy) | **GET** /tap/active_policy | Get the active policy and its validation | -| [**getDraftLegacy**](PolicyEditorBetaApi.md#getDraftLegacy) | **GET** /tap/draft | Get the active draft | -| [**publishDraftLegacy**](PolicyEditorBetaApi.md#publishDraftLegacy) | **POST** /tap/draft | Send publish request for a certain draft id | -| [**publishPolicyRules**](PolicyEditorBetaApi.md#publishPolicyRules) | **POST** /tap/publish | Send publish request for a set of policy rules | -| [**updateDraftLegacy**](PolicyEditorBetaApi.md#updateDraftLegacy) | **PUT** /tap/draft | Update the draft with a new set of rules | - - - -## getActivePolicyLegacy - -> CompletableFuture> getActivePolicyLegacy getActivePolicyLegacy() - -Get the active policy and its validation - -Legacy Endpoint – Returns the active policy and its validation. **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated. - The `getActivePolicy` endpoint under policy/paths provides policy type-specific operations and improved functionality. - These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### 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.PolicyEditorBetaApi; -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); - - try { - CompletableFuture> response = fireblocks.policyEditorBeta().getActivePolicyLegacy(); - 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 PolicyEditorBetaApi#getActivePolicyLegacy"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### 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** | A policy object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## getDraftLegacy - -> CompletableFuture> getDraftLegacy getDraftLegacy() - -Get the active draft - -Legacy Endpoint – Returns the active draft and its validation. **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated. - The `getDraft` endpoint under policy/paths provides policy type-specific operations and improved functionality. - These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### 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.PolicyEditorBetaApi; -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); - - try { - CompletableFuture> response = fireblocks.policyEditorBeta().getDraftLegacy(); - 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 PolicyEditorBetaApi#getDraftLegacy"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -This endpoint does not need any parameter. - -### 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** | A draft validation response object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## publishDraftLegacy - -> CompletableFuture> publishDraftLegacy publishDraftLegacy(legacyPublishDraftRequest, idempotencyKey) - -Send publish request for a certain draft id - -Legacy Endpoint – Send publish request of certain draft id and returns the response. **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated. - The `publishDraft` endpoint under policy/paths provides improved functionality and better performance. - These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### 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.PolicyEditorBetaApi; -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); - - LegacyPublishDraftRequest legacyPublishDraftRequest = new LegacyPublishDraftRequest(); // LegacyPublishDraftRequest | - 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.policyEditorBeta().publishDraftLegacy(legacyPublishDraftRequest, 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 PolicyEditorBetaApi#publishDraftLegacy"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **legacyPublishDraftRequest** | [**LegacyPublishDraftRequest**](LegacyPublishDraftRequest.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> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | A policy publish result object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## publishPolicyRules - -> CompletableFuture> publishPolicyRules publishPolicyRules(legacyPolicyRules, idempotencyKey) - -Send publish request for a set of policy rules - -Send publish request of set of policy rules and returns the response. **Note:** These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### 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.PolicyEditorBetaApi; -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); - - LegacyPolicyRules legacyPolicyRules = new LegacyPolicyRules(); // LegacyPolicyRules | - 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.policyEditorBeta().publishPolicyRules(legacyPolicyRules, 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 PolicyEditorBetaApi#publishPolicyRules"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **legacyPolicyRules** | [**LegacyPolicyRules**](LegacyPolicyRules.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> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **201** | A policy publish result object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - - -## updateDraftLegacy - -> CompletableFuture> updateDraftLegacy updateDraftLegacy(legacyPolicyRules, idempotencyKey) - -Update the draft with a new set of rules - -Legacy Endpoint – Update the draft and return its validation. **Note:** - This endpoint will remain available for the foreseeable future and is not deprecated. - The `updateDraft` endpoint under policy/paths provides policy type-specific operations and improved functionality. - These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - -### 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.PolicyEditorBetaApi; -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); - - LegacyPolicyRules legacyPolicyRules = new LegacyPolicyRules(); // LegacyPolicyRules | - 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.policyEditorBeta().updateDraftLegacy(legacyPolicyRules, 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 PolicyEditorBetaApi#updateDraftLegacy"); - System.err.println("Status code: " + apiException.getCode()); - System.err.println("Response headers: " + apiException.getResponseHeaders()); - System.err.println("Reason: " + apiException.getResponseBody()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **legacyPolicyRules** | [**LegacyPolicyRules**](LegacyPolicyRules.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> - - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | A draft validation response object | * X-Request-ID -
| -| **0** | Error Response | * X-Request-ID -
| - diff --git a/docs/SetAdminQuorumThresholdRequest.md b/docs/SetAdminQuorumThresholdRequest.md deleted file mode 100644 index 4c75b6e6..00000000 --- a/docs/SetAdminQuorumThresholdRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SetAdminQuorumThresholdRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**adminQuorumThreshold** | **BigDecimal** | The number of admins that will requires to approve an operation | [optional] | - - - diff --git a/docs/SetAdminQuorumThresholdResponse.md b/docs/SetAdminQuorumThresholdResponse.md deleted file mode 100644 index b494742a..00000000 --- a/docs/SetAdminQuorumThresholdResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SetAdminQuorumThresholdResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**message** | **String** | The message which indicates the result of the operation. | | - - - diff --git a/docs/TradingPair.md b/docs/TradingPair.md index c6246dfc..30c6c3e5 100644 --- a/docs/TradingPair.md +++ b/docs/TradingPair.md @@ -12,6 +12,8 @@ A supported base/quote asset pair for a provider, optionally scoped to a specifi |**accountId** | **String** | The connected account the pair is scoped to. Absent for direct-access providers, and for provider-level pairs that describe what a provider supports before any account is connected. Its absence therefore does not imply the provider is direct-access. | [optional] | |**baseAssetId** | **String** | Fireblocks asset ID of the base asset, or `*` for any asset on `baseChain`. A `*` value always comes with `baseChain` set. | | |**quoteAssetId** | **String** | Fireblocks asset ID of the quote asset, or `*` for any asset on `quoteChain`. A `*` value always comes with `quoteChain` set. | | +|**baseSymbol** | **String** | Display symbol of the base asset, for readability when `baseAssetId` is not self-explanatory (a privately listed asset or a UUID). `*` when `baseAssetId` is `*`. Absent when the asset could not be resolved. Informational only, not an identifier. | [optional] | +|**quoteSymbol** | **String** | Display symbol of the quote asset, for readability when `quoteAssetId` is not self-explanatory (a privately listed asset or a UUID). `*` when `quoteAssetId` is `*`. Absent when the asset could not be resolved. Informational only, not an identifier. | [optional] | |**baseChain** | **String** | Blockchain `legacyId` of the base asset (e.g. `ETH`, `BASECHAIN_ETH`, `ETH-AETH`, `SOL`). Set for leaf crypto assets; absent for fiat and virtual assets. | [optional] | |**quoteChain** | **String** | Blockchain `legacyId` of the quote asset (e.g. `ETH`, `BASECHAIN_ETH`, `ETH-AETH`, `SOL`). Set for leaf crypto assets; absent for fiat and virtual assets. | [optional] | |**side** | **TradingPairSide** | | | diff --git a/pom.xml b/pom.xml index 0366200d..5c58d835 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 36.1.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 b9881b1c..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 = "36.1.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/Fireblocks.java b/src/main/java/com/fireblocks/sdk/Fireblocks.java index 5910732a..7c2206bf 100644 --- a/src/main/java/com/fireblocks/sdk/Fireblocks.java +++ b/src/main/java/com/fireblocks/sdk/Fireblocks.java @@ -69,7 +69,6 @@ public class Fireblocks { private OnchainDataApi onchainData; private OtaBetaApi otaBeta; private PaymentsPayoutApi paymentsPayout; - private PolicyEditorBetaApi policyEditorBeta; private PolicyEditorV2Api policyEditorV2; private PolicyEditorV2BetaApi policyEditorV2Beta; private ReportsBetaApi reportsBeta; @@ -464,13 +463,6 @@ public PaymentsPayoutApi paymentsPayout() { return paymentsPayout; } - public PolicyEditorBetaApi policyEditorBeta() { - if (policyEditorBeta == null) { - policyEditorBeta = new PolicyEditorBetaApi(apiClient); - } - return policyEditorBeta; - } - public PolicyEditorV2Api policyEditorV2() { if (policyEditorV2 == null) { policyEditorV2 = new PolicyEditorV2Api(apiClient); diff --git a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java index 14b78b46..3da1f94e 100644 --- a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java +++ b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java @@ -119,7 +119,9 @@ private String formatExceptionMessage(String operationId, int statusCode, String * first request. The idempotency key is valid for 24 hours. (optional) * @return CompletableFuture<ApiResponse<PayoutResponse>>, which completes * exceptionally with an {@link ApiException} if the API call fails + * @deprecated */ + @Deprecated public CompletableFuture> createPayout( CreatePayoutRequest createPayoutRequest, String idempotencyKey) { try { @@ -220,7 +222,9 @@ private HttpRequest.Builder createPayoutRequestBuilder( * first request. The idempotency key is valid for 24 hours. (optional) * @return CompletableFuture<ApiResponse<DispatchPayoutResponse>>, which completes * exceptionally with an {@link ApiException} if the API call fails + * @deprecated */ + @Deprecated public CompletableFuture> executePayoutAction( String payoutId, String idempotencyKey) { try { @@ -314,7 +318,9 @@ private HttpRequest.Builder executePayoutActionRequestBuilder( * (required) * @return CompletableFuture<ApiResponse<PayoutResponse>>, which completes * exceptionally with an {@link ApiException} if the API call fails + * @deprecated */ + @Deprecated public CompletableFuture> getPayout(String payoutId) { try { HttpRequest.Builder localVarRequestBuilder = getPayoutRequestBuilder(payoutId); diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java deleted file mode 100644 index 7902883d..00000000 --- a/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java +++ /dev/null @@ -1,577 +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.api; - - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fireblocks.sdk.ApiClient; -import com.fireblocks.sdk.ApiException; -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.LifecycleWarning; -import com.fireblocks.sdk.ValidationUtils; -import com.fireblocks.sdk.model.LegacyDraftReviewAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyRules; -import com.fireblocks.sdk.model.LegacyPublishDraftRequest; -import com.fireblocks.sdk.model.LegacyPublishResult; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; -import java.util.concurrent.CancellationException; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.CompletionException; -import java.util.concurrent.ExecutionException; -import java.util.function.Consumer; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class PolicyEditorBetaApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public PolicyEditorBetaApi() { - this(new ApiClient()); - } - - public PolicyEditorBetaApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - private ApiException getApiException(String operationId, HttpResponse response) { - String message = - formatExceptionMessage(operationId, response.statusCode(), response.body()); - return new ApiException( - response.statusCode(), message, response.headers(), response.body()); - } - - /** - * Normalizes any failure raised while performing the call into the single failure type callers - * are told to expect. Transport-level errors surfaced by {@code HttpClient.sendAsync} - - * connection refused, DNS failures, TLS errors, timeouts - would otherwise reach the caller as - * a raw {@link java.io.IOException}, which makes the documented {@code (ApiException) - * e.getCause()} throw {@link ClassCastException}. - * - *

{@link CancellationException} is passed through unchanged: a cancelled call is not an API - * failure. - */ - private static Throwable toApiFailure(Throwable throwable) { - Throwable cause = throwable; - while ((cause instanceof CompletionException || cause instanceof ExecutionException) - && cause.getCause() != null) { - cause = cause.getCause(); - } - if (cause instanceof ApiException || cause instanceof CancellationException) { - return cause; - } - return new ApiException(cause); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Get the active policy and its validation Legacy Endpoint – Returns the active policy and its - * validation. **Note:** - This endpoint will remain available for the foreseeable future and is - * not deprecated. - The `getActivePolicy` endpoint under policy/paths provides policy - * type-specific operations and improved functionality. - These endpoints are currently in beta - * and might be subject to changes. If you want to participate and learn more about the - * Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. - * - * @return CompletableFuture<ApiResponse<LegacyPolicyAndValidationResponse>>, which - * completes exceptionally with an {@link ApiException} if the API call fails - */ - public CompletableFuture> - getActivePolicyLegacy() { - try { - HttpRequest.Builder localVarRequestBuilder = getActivePolicyLegacyRequestBuilder(); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - // Ahead of the status check, which fails the future: the lifecycle - // header - // is present on allowed error responses too. - LifecycleWarning.warn( - localVarResponse.headers(), - "getActivePolicyLegacy", - localVarResponse.statusCode()); - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "getActivePolicyLegacy", 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< - LegacyPolicyAndValidationResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }) - .handle( - (localVarApiResponse, localVarThrowable) -> - localVarThrowable == null - ? CompletableFuture.completedFuture(localVarApiResponse) - : CompletableFuture - .> - failedFuture( - toApiFailure( - localVarThrowable))) - .thenCompose(localVarNormalized -> localVarNormalized); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getActivePolicyLegacyRequestBuilder() throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tap/active_policy"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Get the active draft Legacy Endpoint – Returns the active draft and its validation. **Note:** - * - This endpoint will remain available for the foreseeable future and is not deprecated. - The - * `getDraft` endpoint under policy/paths provides policy type-specific operations and - * improved functionality. - These endpoints are currently in beta and might be subject to - * changes. If you want to participate and learn more about the Fireblocks TAP, please contact - * your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - * - * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>>, - * which completes exceptionally with an {@link ApiException} if the API call fails - */ - public CompletableFuture> getDraftLegacy() { - try { - HttpRequest.Builder localVarRequestBuilder = getDraftLegacyRequestBuilder(); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - // Ahead of the status check, which fails the future: the lifecycle - // header - // is present on allowed error responses too. - LifecycleWarning.warn( - localVarResponse.headers(), - "getDraftLegacy", - localVarResponse.statusCode()); - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("getDraftLegacy", 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< - LegacyDraftReviewAndValidationResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }) - .handle( - (localVarApiResponse, localVarThrowable) -> - localVarThrowable == null - ? CompletableFuture.completedFuture(localVarApiResponse) - : CompletableFuture - .> - failedFuture( - toApiFailure( - localVarThrowable))) - .thenCompose(localVarNormalized -> localVarNormalized); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder getDraftLegacyRequestBuilder() throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tap/draft"; - - 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; - } - /** - * Send publish request for a certain draft id Legacy Endpoint – Send publish request of certain - * draft id and returns the response. **Note:** - This endpoint will remain available for the - * foreseeable future and is not deprecated. - The `publishDraft` endpoint under - * policy/paths provides improved functionality and better performance. - These endpoints are - * currently in beta and might be subject to changes. If you want to participate and learn more - * about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an - * email to CSM@fireblocks.com. - * - * @param legacyPublishDraftRequest (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<LegacyPublishResult>>, which completes - * exceptionally with an {@link ApiException} if the API call fails - */ - public CompletableFuture> publishDraftLegacy( - LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey) { - try { - HttpRequest.Builder localVarRequestBuilder = - publishDraftLegacyRequestBuilder(legacyPublishDraftRequest, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - // Ahead of the status check, which fails the future: the lifecycle - // header - // is present on allowed error responses too. - LifecycleWarning.warn( - localVarResponse.headers(), - "publishDraftLegacy", - localVarResponse.statusCode()); - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "publishDraftLegacy", 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< - LegacyPublishResult>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }) - .handle( - (localVarApiResponse, localVarThrowable) -> - localVarThrowable == null - ? CompletableFuture.completedFuture(localVarApiResponse) - : CompletableFuture - .>failedFuture( - toApiFailure(localVarThrowable))) - .thenCompose(localVarNormalized -> localVarNormalized); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder publishDraftLegacyRequestBuilder( - LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey) - throws ApiException { - ValidationUtils.assertParamExists( - "publishDraftLegacy", "legacyPublishDraftRequest", legacyPublishDraftRequest); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tap/draft"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = - memberVarObjectMapper.writeValueAsBytes(legacyPublishDraftRequest); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Send publish request for a set of policy rules Send publish request of set of policy rules - * and returns the response. **Note:** These endpoints are currently in beta and might be - * subject to changes. If you want to participate and learn more about the Fireblocks TAP, - * please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. - * - * @param legacyPolicyRules (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<LegacyPublishResult>>, which completes - * exceptionally with an {@link ApiException} if the API call fails - */ - public CompletableFuture> publishPolicyRules( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) { - try { - HttpRequest.Builder localVarRequestBuilder = - publishPolicyRulesRequestBuilder(legacyPolicyRules, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - // Ahead of the status check, which fails the future: the lifecycle - // header - // is present on allowed error responses too. - LifecycleWarning.warn( - localVarResponse.headers(), - "publishPolicyRules", - localVarResponse.statusCode()); - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException( - "publishPolicyRules", 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< - LegacyPublishResult>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }) - .handle( - (localVarApiResponse, localVarThrowable) -> - localVarThrowable == null - ? CompletableFuture.completedFuture(localVarApiResponse) - : CompletableFuture - .>failedFuture( - toApiFailure(localVarThrowable))) - .thenCompose(localVarNormalized -> localVarNormalized); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder publishPolicyRulesRequestBuilder( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "publishPolicyRules", "legacyPolicyRules", legacyPolicyRules); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tap/publish"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules); - localVarRequestBuilder.method( - "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** - * Update the draft with a new set of rules Legacy Endpoint – Update the draft and return its - * validation. **Note:** - This endpoint will remain available for the foreseeable future and is - * not deprecated. - The `updateDraft` endpoint under policy/paths provides policy - * type-specific operations and improved functionality. - These endpoints are currently in beta - * and might be subject to changes. If you want to participate and learn more about the - * Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. - * - * @param legacyPolicyRules (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<LegacyDraftReviewAndValidationResponse>>, - * which completes exceptionally with an {@link ApiException} if the API call fails - */ - public CompletableFuture> updateDraftLegacy( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) { - try { - HttpRequest.Builder localVarRequestBuilder = - updateDraftLegacyRequestBuilder(legacyPolicyRules, idempotencyKey); - return memberVarHttpClient - .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) - .thenComposeAsync( - localVarResponse -> { - if (memberVarAsyncResponseInterceptor != null) { - memberVarAsyncResponseInterceptor.accept(localVarResponse); - } - // Ahead of the status check, which fails the future: the lifecycle - // header - // is present on allowed error responses too. - LifecycleWarning.warn( - localVarResponse.headers(), - "updateDraftLegacy", - localVarResponse.statusCode()); - if (localVarResponse.statusCode() / 100 != 2) { - return CompletableFuture.failedFuture( - getApiException("updateDraftLegacy", 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< - LegacyDraftReviewAndValidationResponse>() {}))); - } catch (IOException e) { - return CompletableFuture.failedFuture(new ApiException(e)); - } - }) - .handle( - (localVarApiResponse, localVarThrowable) -> - localVarThrowable == null - ? CompletableFuture.completedFuture(localVarApiResponse) - : CompletableFuture - .> - failedFuture( - toApiFailure( - localVarThrowable))) - .thenCompose(localVarNormalized -> localVarNormalized); - } catch (ApiException e) { - return CompletableFuture.failedFuture(e); - } - } - - private HttpRequest.Builder updateDraftLegacyRequestBuilder( - LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExists( - "updateDraftLegacy", "legacyPolicyRules", legacyPolicyRules); - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/tap/draft"; - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - if (idempotencyKey != null) { - localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); - } - localVarRequestBuilder.header("Content-Type", "application/json"); - localVarRequestBuilder.header("Accept", "application/json"); - - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules); - localVarRequestBuilder.method( - "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java b/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java deleted file mode 100644 index 7e4b8bb5..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java +++ /dev/null @@ -1,68 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * * PER_SINGLE_MATCH - Apply the limit to each listed entity * ACROSS_ALL_MATCHES - Apply the limit - * to the sum of all listed entities - */ -public enum LegacyAmountAggregationTimePeriodMethod { - PER_SINGLE_MATCH("PER_SINGLE_MATCH"), - - ACROSS_ALL_MATCHES("ACROSS_ALL_MATCHES"); - - private String value; - - LegacyAmountAggregationTimePeriodMethod(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LegacyAmountAggregationTimePeriodMethod fromValue(String value) { - for (LegacyAmountAggregationTimePeriodMethod b : - LegacyAmountAggregationTimePeriodMethod.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/LegacyDraftResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java deleted file mode 100644 index b277076c..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java +++ /dev/null @@ -1,291 +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.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.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Response object for draft operations */ -@JsonPropertyOrder({ - LegacyDraftResponse.JSON_PROPERTY_STATUS, - LegacyDraftResponse.JSON_PROPERTY_RULES, - LegacyDraftResponse.JSON_PROPERTY_DRAFT_ID, - LegacyDraftResponse.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyDraftResponse { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private String status; - - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules; - - public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; - @jakarta.annotation.Nonnull private String draftId; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata; - - public LegacyDraftResponse() {} - - @JsonCreator - public LegacyDraftResponse( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status, - @JsonProperty(value = JSON_PROPERTY_RULES, required = true) - List rules, - @JsonProperty(value = JSON_PROPERTY_DRAFT_ID, required = true) String draftId, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - LegacyPolicyMetadata metadata) { - this.status = status; - this.rules = rules; - this.draftId = draftId; - this.metadata = metadata; - } - - public LegacyDraftResponse status(@jakarta.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * Operation status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull String status) { - this.status = status; - } - - public LegacyDraftResponse rules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - return this; - } - - public LegacyDraftResponse addRulesItem(LegacyPolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * Draft rules - * - * @return rules - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - } - - public LegacyDraftResponse draftId(@jakarta.annotation.Nonnull String draftId) { - this.draftId = draftId; - return this; - } - - /** - * Draft unique id - * - * @return draftId - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDraftId() { - return draftId; - } - - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDraftId(@jakarta.annotation.Nonnull String draftId) { - this.draftId = draftId; - } - - public LegacyDraftResponse metadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this LegacyDraftResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyDraftResponse legacyDraftResponse = (LegacyDraftResponse) o; - return Objects.equals(this.status, legacyDraftResponse.status) - && Objects.equals(this.rules, legacyDraftResponse.rules) - && Objects.equals(this.draftId, legacyDraftResponse.draftId) - && Objects.equals(this.metadata, legacyDraftResponse.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(status, rules, draftId, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyDraftResponse {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" draftId: ").append(toIndentedString(draftId)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `draftId` to the URL query string - if (getDraftId() != null) { - joiner.add( - String.format( - "%sdraftId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDraftId())))); - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java deleted file mode 100644 index 0a2740fe..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java +++ /dev/null @@ -1,185 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** Draft validation */ -@JsonPropertyOrder({ - LegacyDraftReviewAndValidationResponse.JSON_PROPERTY_DRAFT_RESPONSE, - LegacyDraftReviewAndValidationResponse.JSON_PROPERTY_VALIDATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyDraftReviewAndValidationResponse { - public static final String JSON_PROPERTY_DRAFT_RESPONSE = "draftResponse"; - @jakarta.annotation.Nonnull private LegacyDraftResponse draftResponse; - - public static final String JSON_PROPERTY_VALIDATION = "validation"; - @jakarta.annotation.Nonnull private LegacyPolicyValidation validation; - - public LegacyDraftReviewAndValidationResponse() {} - - @JsonCreator - public LegacyDraftReviewAndValidationResponse( - @JsonProperty(value = JSON_PROPERTY_DRAFT_RESPONSE, required = true) - LegacyDraftResponse draftResponse, - @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true) - LegacyPolicyValidation validation) { - this.draftResponse = draftResponse; - this.validation = validation; - } - - public LegacyDraftReviewAndValidationResponse draftResponse( - @jakarta.annotation.Nonnull LegacyDraftResponse draftResponse) { - this.draftResponse = draftResponse; - return this; - } - - /** - * Get draftResponse - * - * @return draftResponse - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyDraftResponse getDraftResponse() { - return draftResponse; - } - - @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDraftResponse(@jakarta.annotation.Nonnull LegacyDraftResponse draftResponse) { - this.draftResponse = draftResponse; - } - - public LegacyDraftReviewAndValidationResponse validation( - @jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - return this; - } - - /** - * Get validation - * - * @return validation - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyValidation getValidation() { - return validation; - } - - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidation(@jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - } - - /** Return true if this LegacyDraftReviewAndValidationResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyDraftReviewAndValidationResponse legacyDraftReviewAndValidationResponse = - (LegacyDraftReviewAndValidationResponse) o; - return Objects.equals( - this.draftResponse, legacyDraftReviewAndValidationResponse.draftResponse) - && Objects.equals( - this.validation, legacyDraftReviewAndValidationResponse.validation); - } - - @Override - public int hashCode() { - return Objects.hash(draftResponse, validation); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyDraftReviewAndValidationResponse {\n"); - sb.append(" draftResponse: ").append(toIndentedString(draftResponse)).append("\n"); - sb.append(" validation: ").append(toIndentedString(validation)).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 `draftResponse` to the URL query string - if (getDraftResponse() != null) { - joiner.add(getDraftResponse().toUrlQueryString(prefix + "draftResponse" + suffix)); - } - - // add `validation` to the URL query string - if (getValidation() != null) { - joiner.add(getValidation().toUrlQueryString(prefix + "validation" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java deleted file mode 100644 index 8c473285..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java +++ /dev/null @@ -1,183 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy validation */ -@JsonPropertyOrder({ - LegacyPolicyAndValidationResponse.JSON_PROPERTY_POLICY, - LegacyPolicyAndValidationResponse.JSON_PROPERTY_VALIDATION -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyAndValidationResponse { - public static final String JSON_PROPERTY_POLICY = "policy"; - @jakarta.annotation.Nonnull private LegacyPolicyResponse policy; - - public static final String JSON_PROPERTY_VALIDATION = "validation"; - @jakarta.annotation.Nonnull private LegacyPolicyValidation validation; - - public LegacyPolicyAndValidationResponse() {} - - @JsonCreator - public LegacyPolicyAndValidationResponse( - @JsonProperty(value = JSON_PROPERTY_POLICY, required = true) - LegacyPolicyResponse policy, - @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true) - LegacyPolicyValidation validation) { - this.policy = policy; - this.validation = validation; - } - - public LegacyPolicyAndValidationResponse policy( - @jakarta.annotation.Nonnull LegacyPolicyResponse policy) { - this.policy = policy; - return this; - } - - /** - * Get policy - * - * @return policy - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_POLICY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyResponse getPolicy() { - return policy; - } - - @JsonProperty(JSON_PROPERTY_POLICY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPolicy(@jakarta.annotation.Nonnull LegacyPolicyResponse policy) { - this.policy = policy; - } - - public LegacyPolicyAndValidationResponse validation( - @jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - return this; - } - - /** - * Get validation - * - * @return validation - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyValidation getValidation() { - return validation; - } - - @JsonProperty(JSON_PROPERTY_VALIDATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValidation(@jakarta.annotation.Nonnull LegacyPolicyValidation validation) { - this.validation = validation; - } - - /** Return true if this LegacyPolicyAndValidationResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyAndValidationResponse legacyPolicyAndValidationResponse = - (LegacyPolicyAndValidationResponse) o; - return Objects.equals(this.policy, legacyPolicyAndValidationResponse.policy) - && Objects.equals(this.validation, legacyPolicyAndValidationResponse.validation); - } - - @Override - public int hashCode() { - return Objects.hash(policy, validation); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyAndValidationResponse {\n"); - sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); - sb.append(" validation: ").append(toIndentedString(validation)).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 `policy` to the URL query string - if (getPolicy() != null) { - joiner.add(getPolicy().toUrlQueryString(prefix + "policy" + suffix)); - } - - // add `validation` to the URL query string - if (getValidation() != null) { - joiner.add(getValidation().toUrlQueryString(prefix + "validation" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java deleted file mode 100644 index 39b31801..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java +++ /dev/null @@ -1,215 +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.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.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy rules validation result */ -@JsonPropertyOrder({ - LegacyPolicyCheckResult.JSON_PROPERTY_ERRORS, - LegacyPolicyCheckResult.JSON_PROPERTY_RESULTS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyCheckResult { - public static final String JSON_PROPERTY_ERRORS = "errors"; - @jakarta.annotation.Nonnull private BigDecimal errors; - - public static final String JSON_PROPERTY_RESULTS = "results"; - @jakarta.annotation.Nonnull private List results; - - public LegacyPolicyCheckResult() {} - - @JsonCreator - public LegacyPolicyCheckResult( - @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) BigDecimal errors, - @JsonProperty(value = JSON_PROPERTY_RESULTS, required = true) - List results) { - this.errors = errors; - this.results = results; - } - - public LegacyPolicyCheckResult errors(@jakarta.annotation.Nonnull BigDecimal errors) { - this.errors = errors; - return this; - } - - /** - * Number of errors - * - * @return errors - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getErrors() { - return errors; - } - - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(@jakarta.annotation.Nonnull BigDecimal errors) { - this.errors = errors; - } - - public LegacyPolicyCheckResult results( - @jakarta.annotation.Nonnull List results) { - this.results = results; - return this; - } - - public LegacyPolicyCheckResult addResultsItem(LegacyPolicyRuleCheckResult resultsItem) { - if (this.results == null) { - this.results = new ArrayList<>(); - } - this.results.add(resultsItem); - return this; - } - - /** - * A set of validation results - * - * @return results - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RESULTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getResults() { - return results; - } - - @JsonProperty(JSON_PROPERTY_RESULTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResults(@jakarta.annotation.Nonnull List results) { - this.results = results; - } - - /** Return true if this LegacyPolicyCheckResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyCheckResult legacyPolicyCheckResult = (LegacyPolicyCheckResult) o; - return Objects.equals(this.errors, legacyPolicyCheckResult.errors) - && Objects.equals(this.results, legacyPolicyCheckResult.results); - } - - @Override - public int hashCode() { - return Objects.hash(errors, results); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyCheckResult {\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" results: ").append(toIndentedString(results)).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 `errors` to the URL query string - if (getErrors() != null) { - joiner.add( - String.format( - "%serrors%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrors())))); - } - - // add `results` to the URL query string - if (getResults() != null) { - for (int i = 0; i < getResults().size(); i++) { - if (getResults().get(i) != null) { - joiner.add( - getResults() - .get(i) - .toUrlQueryString( - String.format( - "%sresults%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/LegacyPolicyMetadata.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java deleted file mode 100644 index 54abc3ab..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.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; - -/** Policy related metadata */ -@JsonPropertyOrder({ - LegacyPolicyMetadata.JSON_PROPERTY_EDITED_BY, - LegacyPolicyMetadata.JSON_PROPERTY_EDITED_AT, - LegacyPolicyMetadata.JSON_PROPERTY_PUBLISHED_BY, - LegacyPolicyMetadata.JSON_PROPERTY_PUBLISHED_AT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyMetadata { - public static final String JSON_PROPERTY_EDITED_BY = "editedBy"; - @jakarta.annotation.Nullable private String editedBy; - - public static final String JSON_PROPERTY_EDITED_AT = "editedAt"; - @jakarta.annotation.Nullable private String editedAt; - - public static final String JSON_PROPERTY_PUBLISHED_BY = "publishedBy"; - @jakarta.annotation.Nullable private String publishedBy; - - public static final String JSON_PROPERTY_PUBLISHED_AT = "publishedAt"; - @jakarta.annotation.Nullable private String publishedAt; - - public LegacyPolicyMetadata() {} - - public LegacyPolicyMetadata editedBy(@jakarta.annotation.Nullable String editedBy) { - this.editedBy = editedBy; - return this; - } - - /** - * The user id of the user who last edited the policy - * - * @return editedBy - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEditedBy() { - return editedBy; - } - - @JsonProperty(JSON_PROPERTY_EDITED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditedBy(@jakarta.annotation.Nullable String editedBy) { - this.editedBy = editedBy; - } - - public LegacyPolicyMetadata editedAt(@jakarta.annotation.Nullable String editedAt) { - this.editedAt = editedAt; - return this; - } - - /** - * The timestamp of the last edit of the policy - * - * @return editedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEditedAt() { - return editedAt; - } - - @JsonProperty(JSON_PROPERTY_EDITED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditedAt(@jakarta.annotation.Nullable String editedAt) { - this.editedAt = editedAt; - } - - public LegacyPolicyMetadata publishedBy(@jakarta.annotation.Nullable String publishedBy) { - this.publishedBy = publishedBy; - return this; - } - - /** - * The user id of the user who last published the policy - * - * @return publishedBy - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PUBLISHED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPublishedBy() { - return publishedBy; - } - - @JsonProperty(JSON_PROPERTY_PUBLISHED_BY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublishedBy(@jakarta.annotation.Nullable String publishedBy) { - this.publishedBy = publishedBy; - } - - public LegacyPolicyMetadata publishedAt(@jakarta.annotation.Nullable String publishedAt) { - this.publishedAt = publishedAt; - return this; - } - - /** - * The timestamp of the last publish of the policy - * - * @return publishedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PUBLISHED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPublishedAt() { - return publishedAt; - } - - @JsonProperty(JSON_PROPERTY_PUBLISHED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPublishedAt(@jakarta.annotation.Nullable String publishedAt) { - this.publishedAt = publishedAt; - } - - /** Return true if this LegacyPolicyMetadata object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyMetadata legacyPolicyMetadata = (LegacyPolicyMetadata) o; - return Objects.equals(this.editedBy, legacyPolicyMetadata.editedBy) - && Objects.equals(this.editedAt, legacyPolicyMetadata.editedAt) - && Objects.equals(this.publishedBy, legacyPolicyMetadata.publishedBy) - && Objects.equals(this.publishedAt, legacyPolicyMetadata.publishedAt); - } - - @Override - public int hashCode() { - return Objects.hash(editedBy, editedAt, publishedBy, publishedAt); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyMetadata {\n"); - sb.append(" editedBy: ").append(toIndentedString(editedBy)).append("\n"); - sb.append(" editedAt: ").append(toIndentedString(editedAt)).append("\n"); - sb.append(" publishedBy: ").append(toIndentedString(publishedBy)).append("\n"); - sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).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 `editedBy` to the URL query string - if (getEditedBy() != null) { - joiner.add( - String.format( - "%seditedBy%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEditedBy())))); - } - - // add `editedAt` to the URL query string - if (getEditedAt() != null) { - joiner.add( - String.format( - "%seditedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getEditedAt())))); - } - - // add `publishedBy` to the URL query string - if (getPublishedBy() != null) { - joiner.add( - String.format( - "%spublishedBy%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublishedBy())))); - } - - // add `publishedAt` to the URL query string - if (getPublishedAt() != null) { - joiner.add( - String.format( - "%spublishedAt%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPublishedAt())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java deleted file mode 100644 index fd0337d5..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java +++ /dev/null @@ -1,209 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Response object for policy operations */ -@JsonPropertyOrder({ - LegacyPolicyResponse.JSON_PROPERTY_RULES, - LegacyPolicyResponse.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyResponse { - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata; - - public LegacyPolicyResponse() {} - - @JsonCreator - public LegacyPolicyResponse( - @JsonProperty(value = JSON_PROPERTY_RULES, required = true) - List rules, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - LegacyPolicyMetadata metadata) { - this.rules = rules; - this.metadata = metadata; - } - - public LegacyPolicyResponse rules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - return this; - } - - public LegacyPolicyResponse addRulesItem(LegacyPolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * A set of policy rules - * - * @return rules - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - } - - public LegacyPolicyResponse metadata( - @jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this LegacyPolicyResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyResponse legacyPolicyResponse = (LegacyPolicyResponse) o; - return Objects.equals(this.rules, legacyPolicyResponse.rules) - && Objects.equals(this.metadata, legacyPolicyResponse.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(rules, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyResponse {\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).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 `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java deleted file mode 100644 index 71c628f0..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java +++ /dev/null @@ -1,1610 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Policy rule which is enforced on transactions */ -@JsonPropertyOrder({ - LegacyPolicyRule.JSON_PROPERTY_OPERATOR, - LegacyPolicyRule.JSON_PROPERTY_OPERATORS, - LegacyPolicyRule.JSON_PROPERTY_TRANSACTION_TYPE, - LegacyPolicyRule.JSON_PROPERTY_DESIGNATED_SIGNER, - LegacyPolicyRule.JSON_PROPERTY_DESIGNATED_SIGNERS, - LegacyPolicyRule.JSON_PROPERTY_TYPE, - LegacyPolicyRule.JSON_PROPERTY_ACTION, - LegacyPolicyRule.JSON_PROPERTY_ASSET, - LegacyPolicyRule.JSON_PROPERTY_SRC_TYPE, - LegacyPolicyRule.JSON_PROPERTY_SRC_SUB_TYPE, - LegacyPolicyRule.JSON_PROPERTY_SRC_ID, - LegacyPolicyRule.JSON_PROPERTY_SRC, - LegacyPolicyRule.JSON_PROPERTY_DST_TYPE, - LegacyPolicyRule.JSON_PROPERTY_DST_SUB_TYPE, - LegacyPolicyRule.JSON_PROPERTY_DST_ID, - LegacyPolicyRule.JSON_PROPERTY_DST, - LegacyPolicyRule.JSON_PROPERTY_DST_ADDRESS_TYPE, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT_CURRENCY, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT_SCOPE, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT, - LegacyPolicyRule.JSON_PROPERTY_PERIOD_SEC, - LegacyPolicyRule.JSON_PROPERTY_AUTHORIZERS, - LegacyPolicyRule.JSON_PROPERTY_AUTHORIZERS_COUNT, - LegacyPolicyRule.JSON_PROPERTY_AUTHORIZATION_GROUPS, - LegacyPolicyRule.JSON_PROPERTY_AMOUNT_AGGREGATION, - LegacyPolicyRule.JSON_PROPERTY_RAW_MESSAGE_SIGNING, - LegacyPolicyRule.JSON_PROPERTY_APPLY_FOR_APPROVE, - LegacyPolicyRule.JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE, - LegacyPolicyRule.JSON_PROPERTY_EXTERNAL_DESCRIPTOR -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRule { - public static final String JSON_PROPERTY_OPERATOR = "operator"; - @jakarta.annotation.Nullable private String operator; - - public static final String JSON_PROPERTY_OPERATORS = "operators"; - @jakarta.annotation.Nullable private LegacyPolicyRuleOperators operators; - - /** - * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers - * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi - * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn - * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * - * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain - * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, - * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type - * that follows a predefined format, used to sign specific messages that are not actual - * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart - * contracts) to execute transactions and interact with the blockchain. - */ - public enum TransactionTypeEnum { - TRANSFER(String.valueOf("TRANSFER")), - - CONTRACT_CALL(String.valueOf("CONTRACT_CALL")), - - APPROVE(String.valueOf("APPROVE")), - - MINT(String.valueOf("MINT")), - - BURN(String.valueOf("BURN")), - - SUPPLY(String.valueOf("SUPPLY")), - - REDEEM(String.valueOf("REDEEM")), - - STAKE(String.valueOf("STAKE")), - - RAW(String.valueOf("RAW")), - - TYPED_MESSAGE(String.valueOf("TYPED_MESSAGE")), - - PROGRAM_CALL(String.valueOf("PROGRAM_CALL")); - - private String value; - - TransactionTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TransactionTypeEnum fromValue(String value) { - for (TransactionTypeEnum b : TransactionTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TRANSACTION_TYPE = "transactionType"; - @jakarta.annotation.Nullable private TransactionTypeEnum transactionType; - - public static final String JSON_PROPERTY_DESIGNATED_SIGNER = "designatedSigner"; - @jakarta.annotation.Nullable private String designatedSigner; - - public static final String JSON_PROPERTY_DESIGNATED_SIGNERS = "designatedSigners"; - @jakarta.annotation.Nullable private LegacyPolicyRuleDesignatedSigners designatedSigners; - - /** Policy rule type */ - public enum TypeEnum { - TRANSFER(String.valueOf("TRANSFER")); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nonnull private TypeEnum type; - - /** - * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The - * transaction goes through and can be signed without requiring additional approvals * BLOCK - - * The transaction is automatically blocked * 2-TIER - Only these users or user groups can - * approve If any of them reject the transaction before the required approval threshold is met, - * the transaction doesn't go through The list of entities are set is - * \"authorizationGroups\" field - */ - public enum ActionEnum { - ALLOW(String.valueOf("ALLOW")), - - BLOCK(String.valueOf("BLOCK")), - - _2_TIER(String.valueOf("2-TIER")); - - private String value; - - ActionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ActionEnum fromValue(String value) { - for (ActionEnum b : ActionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ACTION = "action"; - @jakarta.annotation.Nonnull private ActionEnum action; - - public static final String JSON_PROPERTY_ASSET = "asset"; - @jakarta.annotation.Nonnull private String asset; - - public static final String JSON_PROPERTY_SRC_TYPE = "srcType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestType srcType; - - public static final String JSON_PROPERTY_SRC_SUB_TYPE = "srcSubType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestSubType srcSubType; - - public static final String JSON_PROPERTY_SRC_ID = "srcId"; - @jakarta.annotation.Nullable private String srcId; - - public static final String JSON_PROPERTY_SRC = "src"; - @jakarta.annotation.Nullable private LegacyPolicyRuleSrc src; - - public static final String JSON_PROPERTY_DST_TYPE = "dstType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestType dstType; - - public static final String JSON_PROPERTY_DST_SUB_TYPE = "dstSubType"; - @jakarta.annotation.Nullable private LegacyPolicySrcOrDestSubType dstSubType; - - public static final String JSON_PROPERTY_DST_ID = "dstId"; - @jakarta.annotation.Nullable private String dstId; - - public static final String JSON_PROPERTY_DST = "dst"; - @jakarta.annotation.Nullable private LegacyPolicyRuleDst dst; - - /** - * Defines whether the destination to which you are sending funds must be whitelisted, to allow - * one-time transfers to non-whitelisted external addresses, or both. By default, you can only - * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to - * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * - * \"*\" - can be sent to whitelisted addresses or non-whitelisted external - */ - public enum DstAddressTypeEnum { - WHITELISTED(String.valueOf("WHITELISTED")), - - ONE_TIME(String.valueOf("ONE_TIME")), - - STAR(String.valueOf("*")); - - private String value; - - DstAddressTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DstAddressTypeEnum fromValue(String value) { - for (DstAddressTypeEnum b : DstAddressTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_DST_ADDRESS_TYPE = "dstAddressType"; - @jakarta.annotation.Nullable private DstAddressTypeEnum dstAddressType; - - /** - * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the - * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent - * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a - * specific asset. - */ - public enum AmountCurrencyEnum { - USD(String.valueOf("USD")), - - EUR(String.valueOf("EUR")), - - NATIVE(String.valueOf("NATIVE")); - - private String value; - - AmountCurrencyEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AmountCurrencyEnum fromValue(String value) { - for (AmountCurrencyEnum b : AmountCurrencyEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amountCurrency"; - @jakarta.annotation.Nonnull private AmountCurrencyEnum amountCurrency; - - /** - * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all - * transactions within the defined time period - */ - public enum AmountScopeEnum { - SINGLE_TX(String.valueOf("SINGLE_TX")), - - TIMEFRAME(String.valueOf("TIMEFRAME")); - - private String value; - - AmountScopeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AmountScopeEnum fromValue(String value) { - for (AmountScopeEnum b : AmountScopeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_AMOUNT_SCOPE = "amountScope"; - @jakarta.annotation.Nonnull private AmountScopeEnum amountScope; - - public static final String JSON_PROPERTY_AMOUNT = "amount"; - @jakarta.annotation.Nonnull private LegacyPolicyRuleAmount amount; - - public static final String JSON_PROPERTY_PERIOD_SEC = "periodSec"; - @jakarta.annotation.Nonnull private BigDecimal periodSec; - - public static final String JSON_PROPERTY_AUTHORIZERS = "authorizers"; - @jakarta.annotation.Nullable private List authorizers; - - public static final String JSON_PROPERTY_AUTHORIZERS_COUNT = "authorizersCount"; - @jakarta.annotation.Nullable private BigDecimal authorizersCount; - - public static final String JSON_PROPERTY_AUTHORIZATION_GROUPS = "authorizationGroups"; - @jakarta.annotation.Nullable private LegacyPolicyRuleAuthorizationGroups authorizationGroups; - - public static final String JSON_PROPERTY_AMOUNT_AGGREGATION = "amountAggregation"; - @jakarta.annotation.Nullable private LegacyPolicyRuleAmountAggregation amountAggregation; - - public static final String JSON_PROPERTY_RAW_MESSAGE_SIGNING = "rawMessageSigning"; - @jakarta.annotation.Nullable private LegacyPolicyRuleRawMessageSigning rawMessageSigning; - - public static final String JSON_PROPERTY_APPLY_FOR_APPROVE = "applyForApprove"; - @jakarta.annotation.Nullable private Boolean applyForApprove; - - public static final String JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE = "applyForTypedMessage"; - @jakarta.annotation.Nullable private Boolean applyForTypedMessage; - - public static final String JSON_PROPERTY_EXTERNAL_DESCRIPTOR = "externalDescriptor"; - @jakarta.annotation.Nullable private String externalDescriptor; - - public LegacyPolicyRule() {} - - @JsonCreator - public LegacyPolicyRule( - @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type, - @JsonProperty(value = JSON_PROPERTY_ACTION, required = true) ActionEnum action, - @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset, - @JsonProperty(value = JSON_PROPERTY_AMOUNT_CURRENCY, required = true) - AmountCurrencyEnum amountCurrency, - @JsonProperty(value = JSON_PROPERTY_AMOUNT_SCOPE, required = true) - AmountScopeEnum amountScope, - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) - LegacyPolicyRuleAmount amount, - @JsonProperty(value = JSON_PROPERTY_PERIOD_SEC, required = true) BigDecimal periodSec) { - this.type = type; - this.action = action; - this.asset = asset; - this.amountCurrency = amountCurrency; - this.amountScope = amountScope; - this.amount = amount; - this.periodSec = periodSec; - } - - public LegacyPolicyRule operator(@jakarta.annotation.Nullable String operator) { - this.operator = operator; - return this; - } - - /** - * (deprecated - replaced by \"operators\") | Defines users who can initiate the type - * of transaction to which the rule applies. options are * \"*\" - All users are - * allowed * Specific User id - * - * @return operator - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOperator() { - return operator; - } - - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperator(@jakarta.annotation.Nullable String operator) { - this.operator = operator; - } - - public LegacyPolicyRule operators( - @jakarta.annotation.Nullable LegacyPolicyRuleOperators operators) { - this.operators = operators; - return this; - } - - /** - * Get operators - * - * @return operators - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleOperators getOperators() { - return operators; - } - - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperators(@jakarta.annotation.Nullable LegacyPolicyRuleOperators operators) { - this.operators = operators; - } - - public LegacyPolicyRule transactionType( - @jakarta.annotation.Nullable TransactionTypeEnum transactionType) { - this.transactionType = transactionType; - return this; - } - - /** - * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers - * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi - * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn - * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * - * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain - * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, - * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type - * that follows a predefined format, used to sign specific messages that are not actual - * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart - * contracts) to execute transactions and interact with the blockchain. - * - * @return transactionType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransactionTypeEnum getTransactionType() { - return transactionType; - } - - @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTransactionType( - @jakarta.annotation.Nullable TransactionTypeEnum transactionType) { - this.transactionType = transactionType; - } - - public LegacyPolicyRule designatedSigner(@jakarta.annotation.Nullable String designatedSigner) { - this.designatedSigner = designatedSigner; - return this; - } - - /** - * (deprecated - replaced by \"designatedSigners\") Id representing the user who signs - * transactions that match a specific rule - * - * @return designatedSigner - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesignatedSigner() { - return designatedSigner; - } - - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDesignatedSigner(@jakarta.annotation.Nullable String designatedSigner) { - this.designatedSigner = designatedSigner; - } - - public LegacyPolicyRule designatedSigners( - @jakarta.annotation.Nullable LegacyPolicyRuleDesignatedSigners designatedSigners) { - this.designatedSigners = designatedSigners; - return this; - } - - /** - * Get designatedSigners - * - * @return designatedSigners - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleDesignatedSigners getDesignatedSigners() { - return designatedSigners; - } - - @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDesignatedSigners( - @jakarta.annotation.Nullable LegacyPolicyRuleDesignatedSigners designatedSigners) { - this.designatedSigners = designatedSigners; - } - - public LegacyPolicyRule type(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - return this; - } - - /** - * Policy rule type - * - * @return type - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { - return type; - } - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(@jakarta.annotation.Nonnull TypeEnum type) { - this.type = type; - } - - public LegacyPolicyRule action(@jakarta.annotation.Nonnull ActionEnum action) { - this.action = action; - return this; - } - - /** - * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The - * transaction goes through and can be signed without requiring additional approvals * BLOCK - - * The transaction is automatically blocked * 2-TIER - Only these users or user groups can - * approve If any of them reject the transaction before the required approval threshold is met, - * the transaction doesn't go through The list of entities are set is - * \"authorizationGroups\" field - * - * @return action - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ActionEnum getAction() { - return action; - } - - @JsonProperty(JSON_PROPERTY_ACTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAction(@jakarta.annotation.Nonnull ActionEnum action) { - this.action = action; - } - - public LegacyPolicyRule asset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - return this; - } - - /** - * Defines the type of asset being transacted, options are * \"*\" - All assets * - * Specific asset - * - * @return asset - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAsset() { - return asset; - } - - @JsonProperty(JSON_PROPERTY_ASSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAsset(@jakarta.annotation.Nonnull String asset) { - this.asset = asset; - } - - public LegacyPolicyRule srcType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestType srcType) { - this.srcType = srcType; - return this; - } - - /** - * (deprecated - replaced by \"src\") source account type - * - * @return srcType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestType getSrcType() { - return srcType; - } - - @JsonProperty(JSON_PROPERTY_SRC_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcType(@jakarta.annotation.Nullable LegacyPolicySrcOrDestType srcType) { - this.srcType = srcType; - } - - public LegacyPolicyRule srcSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType srcSubType) { - this.srcSubType = srcSubType; - return this; - } - - /** - * (deprecated - replaced by \"src\") source sub account type - * - * @return srcSubType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestSubType getSrcSubType() { - return srcSubType; - } - - @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType srcSubType) { - this.srcSubType = srcSubType; - } - - public LegacyPolicyRule srcId(@jakarta.annotation.Nullable String srcId) { - this.srcId = srcId; - return this; - } - - /** - * (deprecated - replaced by \"src\") source account id - * - * @return srcId - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSrcId() { - return srcId; - } - - @JsonProperty(JSON_PROPERTY_SRC_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcId(@jakarta.annotation.Nullable String srcId) { - this.srcId = srcId; - } - - public LegacyPolicyRule src(@jakarta.annotation.Nullable LegacyPolicyRuleSrc src) { - this.src = src; - return this; - } - - /** - * Get src - * - * @return src - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleSrc getSrc() { - return src; - } - - @JsonProperty(JSON_PROPERTY_SRC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrc(@jakarta.annotation.Nullable LegacyPolicyRuleSrc src) { - this.src = src; - } - - public LegacyPolicyRule dstType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestType dstType) { - this.dstType = dstType; - return this; - } - - /** - * (deprecated - replaced by \"dst\") destination account type - * - * @return dstType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestType getDstType() { - return dstType; - } - - @JsonProperty(JSON_PROPERTY_DST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstType(@jakarta.annotation.Nullable LegacyPolicySrcOrDestType dstType) { - this.dstType = dstType; - } - - public LegacyPolicyRule dstSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType dstSubType) { - this.dstSubType = dstSubType; - return this; - } - - /** - * (deprecated - replaced by \"dst\") destination sub account type - * - * @return dstSubType - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicySrcOrDestSubType getDstSubType() { - return dstSubType; - } - - @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstSubType( - @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType dstSubType) { - this.dstSubType = dstSubType; - } - - public LegacyPolicyRule dstId(@jakarta.annotation.Nullable String dstId) { - this.dstId = dstId; - return this; - } - - /** - * (deprecated - replaced by \"dst\") destination account id - * - * @return dstId - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDstId() { - return dstId; - } - - @JsonProperty(JSON_PROPERTY_DST_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstId(@jakarta.annotation.Nullable String dstId) { - this.dstId = dstId; - } - - public LegacyPolicyRule dst(@jakarta.annotation.Nullable LegacyPolicyRuleDst dst) { - this.dst = dst; - return this; - } - - /** - * Get dst - * - * @return dst - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleDst getDst() { - return dst; - } - - @JsonProperty(JSON_PROPERTY_DST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDst(@jakarta.annotation.Nullable LegacyPolicyRuleDst dst) { - this.dst = dst; - } - - public LegacyPolicyRule dstAddressType( - @jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) { - this.dstAddressType = dstAddressType; - return this; - } - - /** - * Defines whether the destination to which you are sending funds must be whitelisted, to allow - * one-time transfers to non-whitelisted external addresses, or both. By default, you can only - * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to - * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. * - * \"*\" - can be sent to whitelisted addresses or non-whitelisted external - * - * @return dstAddressType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DstAddressTypeEnum getDstAddressType() { - return dstAddressType; - } - - @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstAddressType(@jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) { - this.dstAddressType = dstAddressType; - } - - public LegacyPolicyRule amountCurrency( - @jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) { - this.amountCurrency = amountCurrency; - return this; - } - - /** - * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the - * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent - * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a - * specific asset. - * - * @return amountCurrency - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountCurrencyEnum getAmountCurrency() { - return amountCurrency; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountCurrency(@jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) { - this.amountCurrency = amountCurrency; - } - - public LegacyPolicyRule amountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) { - this.amountScope = amountScope; - return this; - } - - /** - * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all - * transactions within the defined time period - * - * @return amountScope - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AmountScopeEnum getAmountScope() { - return amountScope; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) { - this.amountScope = amountScope; - } - - public LegacyPolicyRule amount(@jakarta.annotation.Nonnull LegacyPolicyRuleAmount amount) { - this.amount = amount; - return this; - } - - /** - * Get amount - * - * @return amount - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyRuleAmount getAmount() { - return amount; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@jakarta.annotation.Nonnull LegacyPolicyRuleAmount amount) { - this.amount = amount; - } - - public LegacyPolicyRule periodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) { - this.periodSec = periodSec; - return this; - } - - /** - * Time period in seconds applied by the amountScope field to accumulate transferred amounts in - * transactions that match the rule, until the total exceeds the value you specify under - * Minimum. When the specified amount is reached within that period, whether by one or many - * transactions, further transactions in that period either fail or require more approvals. - * - * @return periodSec - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PERIOD_SEC) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getPeriodSec() { - return periodSec; - } - - @JsonProperty(JSON_PROPERTY_PERIOD_SEC) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPeriodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) { - this.periodSec = periodSec; - } - - public LegacyPolicyRule authorizers(@jakarta.annotation.Nullable List authorizers) { - this.authorizers = authorizers; - return this; - } - - public LegacyPolicyRule addAuthorizersItem(String authorizersItem) { - if (this.authorizers == null) { - this.authorizers = new ArrayList<>(); - } - this.authorizers.add(authorizersItem); - return this; - } - - /** - * (deprecated - replaced by \"authorizationGroups\") Allowed entities which can - * approves a transaction - * - * @return authorizers - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAuthorizers() { - return authorizers; - } - - @JsonProperty(JSON_PROPERTY_AUTHORIZERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizers(@jakarta.annotation.Nullable List authorizers) { - this.authorizers = authorizers; - } - - public LegacyPolicyRule authorizersCount( - @jakarta.annotation.Nullable BigDecimal authorizersCount) { - this.authorizersCount = authorizersCount; - return this; - } - - /** - * (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are - * needed to approve a transaction - * - * @return authorizersCount - * @deprecated - */ - @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getAuthorizersCount() { - return authorizersCount; - } - - @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizersCount(@jakarta.annotation.Nullable BigDecimal authorizersCount) { - this.authorizersCount = authorizersCount; - } - - public LegacyPolicyRule authorizationGroups( - @jakarta.annotation.Nullable LegacyPolicyRuleAuthorizationGroups authorizationGroups) { - this.authorizationGroups = authorizationGroups; - return this; - } - - /** - * Get authorizationGroups - * - * @return authorizationGroups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleAuthorizationGroups getAuthorizationGroups() { - return authorizationGroups; - } - - @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAuthorizationGroups( - @jakarta.annotation.Nullable LegacyPolicyRuleAuthorizationGroups authorizationGroups) { - this.authorizationGroups = authorizationGroups; - } - - public LegacyPolicyRule amountAggregation( - @jakarta.annotation.Nullable LegacyPolicyRuleAmountAggregation amountAggregation) { - this.amountAggregation = amountAggregation; - return this; - } - - /** - * Get amountAggregation - * - * @return amountAggregation - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleAmountAggregation getAmountAggregation() { - return amountAggregation; - } - - @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmountAggregation( - @jakarta.annotation.Nullable LegacyPolicyRuleAmountAggregation amountAggregation) { - this.amountAggregation = amountAggregation; - } - - public LegacyPolicyRule rawMessageSigning( - @jakarta.annotation.Nullable LegacyPolicyRuleRawMessageSigning rawMessageSigning) { - this.rawMessageSigning = rawMessageSigning; - return this; - } - - /** - * Get rawMessageSigning - * - * @return rawMessageSigning - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleRawMessageSigning getRawMessageSigning() { - return rawMessageSigning; - } - - @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRawMessageSigning( - @jakarta.annotation.Nullable LegacyPolicyRuleRawMessageSigning rawMessageSigning) { - this.rawMessageSigning = rawMessageSigning; - } - - public LegacyPolicyRule applyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) { - this.applyForApprove = applyForApprove; - return this; - } - - /** - * Applying this rule over APPROVE type transactions (can only be enabled when rule's - * transaction type is TRANSFER) - * - * @return applyForApprove - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getApplyForApprove() { - return applyForApprove; - } - - @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApplyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) { - this.applyForApprove = applyForApprove; - } - - public LegacyPolicyRule applyForTypedMessage( - @jakarta.annotation.Nullable Boolean applyForTypedMessage) { - this.applyForTypedMessage = applyForTypedMessage; - return this; - } - - /** - * Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's - * transaction type is CONTRACT_CALL) - * - * @return applyForTypedMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getApplyForTypedMessage() { - return applyForTypedMessage; - } - - @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApplyForTypedMessage(@jakarta.annotation.Nullable Boolean applyForTypedMessage) { - this.applyForTypedMessage = applyForTypedMessage; - } - - public LegacyPolicyRule externalDescriptor( - @jakarta.annotation.Nullable String externalDescriptor) { - this.externalDescriptor = externalDescriptor; - return this; - } - - /** - * A unique id identifying the rule - * - * @return externalDescriptor - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExternalDescriptor() { - return externalDescriptor; - } - - @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExternalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) { - this.externalDescriptor = externalDescriptor; - } - - /** Return true if this LegacyPolicyRule object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRule legacyPolicyRule = (LegacyPolicyRule) o; - return Objects.equals(this.operator, legacyPolicyRule.operator) - && Objects.equals(this.operators, legacyPolicyRule.operators) - && Objects.equals(this.transactionType, legacyPolicyRule.transactionType) - && Objects.equals(this.designatedSigner, legacyPolicyRule.designatedSigner) - && Objects.equals(this.designatedSigners, legacyPolicyRule.designatedSigners) - && Objects.equals(this.type, legacyPolicyRule.type) - && Objects.equals(this.action, legacyPolicyRule.action) - && Objects.equals(this.asset, legacyPolicyRule.asset) - && Objects.equals(this.srcType, legacyPolicyRule.srcType) - && Objects.equals(this.srcSubType, legacyPolicyRule.srcSubType) - && Objects.equals(this.srcId, legacyPolicyRule.srcId) - && Objects.equals(this.src, legacyPolicyRule.src) - && Objects.equals(this.dstType, legacyPolicyRule.dstType) - && Objects.equals(this.dstSubType, legacyPolicyRule.dstSubType) - && Objects.equals(this.dstId, legacyPolicyRule.dstId) - && Objects.equals(this.dst, legacyPolicyRule.dst) - && Objects.equals(this.dstAddressType, legacyPolicyRule.dstAddressType) - && Objects.equals(this.amountCurrency, legacyPolicyRule.amountCurrency) - && Objects.equals(this.amountScope, legacyPolicyRule.amountScope) - && Objects.equals(this.amount, legacyPolicyRule.amount) - && Objects.equals(this.periodSec, legacyPolicyRule.periodSec) - && Objects.equals(this.authorizers, legacyPolicyRule.authorizers) - && Objects.equals(this.authorizersCount, legacyPolicyRule.authorizersCount) - && Objects.equals(this.authorizationGroups, legacyPolicyRule.authorizationGroups) - && Objects.equals(this.amountAggregation, legacyPolicyRule.amountAggregation) - && Objects.equals(this.rawMessageSigning, legacyPolicyRule.rawMessageSigning) - && Objects.equals(this.applyForApprove, legacyPolicyRule.applyForApprove) - && Objects.equals(this.applyForTypedMessage, legacyPolicyRule.applyForTypedMessage) - && Objects.equals(this.externalDescriptor, legacyPolicyRule.externalDescriptor); - } - - @Override - public int hashCode() { - return Objects.hash( - operator, - operators, - transactionType, - designatedSigner, - designatedSigners, - type, - action, - asset, - srcType, - srcSubType, - srcId, - src, - dstType, - dstSubType, - dstId, - dst, - dstAddressType, - amountCurrency, - amountScope, - amount, - periodSec, - authorizers, - authorizersCount, - authorizationGroups, - amountAggregation, - rawMessageSigning, - applyForApprove, - applyForTypedMessage, - externalDescriptor); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRule {\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" operators: ").append(toIndentedString(operators)).append("\n"); - sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n"); - sb.append(" designatedSigner: ").append(toIndentedString(designatedSigner)).append("\n"); - sb.append(" designatedSigners: ") - .append(toIndentedString(designatedSigners)) - .append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); - sb.append(" srcType: ").append(toIndentedString(srcType)).append("\n"); - sb.append(" srcSubType: ").append(toIndentedString(srcSubType)).append("\n"); - sb.append(" srcId: ").append(toIndentedString(srcId)).append("\n"); - sb.append(" src: ").append(toIndentedString(src)).append("\n"); - sb.append(" dstType: ").append(toIndentedString(dstType)).append("\n"); - sb.append(" dstSubType: ").append(toIndentedString(dstSubType)).append("\n"); - sb.append(" dstId: ").append(toIndentedString(dstId)).append("\n"); - sb.append(" dst: ").append(toIndentedString(dst)).append("\n"); - sb.append(" dstAddressType: ").append(toIndentedString(dstAddressType)).append("\n"); - sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n"); - sb.append(" amountScope: ").append(toIndentedString(amountScope)).append("\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); - sb.append(" periodSec: ").append(toIndentedString(periodSec)).append("\n"); - sb.append(" authorizers: ").append(toIndentedString(authorizers)).append("\n"); - sb.append(" authorizersCount: ").append(toIndentedString(authorizersCount)).append("\n"); - sb.append(" authorizationGroups: ") - .append(toIndentedString(authorizationGroups)) - .append("\n"); - sb.append(" amountAggregation: ") - .append(toIndentedString(amountAggregation)) - .append("\n"); - sb.append(" rawMessageSigning: ") - .append(toIndentedString(rawMessageSigning)) - .append("\n"); - sb.append(" applyForApprove: ").append(toIndentedString(applyForApprove)).append("\n"); - sb.append(" applyForTypedMessage: ") - .append(toIndentedString(applyForTypedMessage)) - .append("\n"); - sb.append(" externalDescriptor: ") - .append(toIndentedString(externalDescriptor)) - .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 `operator` to the URL query string - if (getOperator() != null) { - joiner.add( - String.format( - "%soperator%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperator())))); - } - - // add `operators` to the URL query string - if (getOperators() != null) { - joiner.add(getOperators().toUrlQueryString(prefix + "operators" + suffix)); - } - - // add `transactionType` to the URL query string - if (getTransactionType() != null) { - joiner.add( - String.format( - "%stransactionType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getTransactionType())))); - } - - // add `designatedSigner` to the URL query string - if (getDesignatedSigner() != null) { - joiner.add( - String.format( - "%sdesignatedSigner%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDesignatedSigner())))); - } - - // add `designatedSigners` to the URL query string - if (getDesignatedSigners() != null) { - joiner.add( - getDesignatedSigners().toUrlQueryString(prefix + "designatedSigners" + suffix)); - } - - // add `type` to the URL query string - if (getType() != null) { - joiner.add( - String.format( - "%stype%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getType())))); - } - - // add `action` to the URL query string - if (getAction() != null) { - joiner.add( - String.format( - "%saction%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAction())))); - } - - // add `asset` to the URL query string - if (getAsset() != null) { - joiner.add( - String.format( - "%sasset%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAsset())))); - } - - // add `srcType` to the URL query string - if (getSrcType() != null) { - joiner.add( - String.format( - "%ssrcType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcType())))); - } - - // add `srcSubType` to the URL query string - if (getSrcSubType() != null) { - joiner.add( - String.format( - "%ssrcSubType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcSubType())))); - } - - // add `srcId` to the URL query string - if (getSrcId() != null) { - joiner.add( - String.format( - "%ssrcId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcId())))); - } - - // add `src` to the URL query string - if (getSrc() != null) { - joiner.add(getSrc().toUrlQueryString(prefix + "src" + suffix)); - } - - // add `dstType` to the URL query string - if (getDstType() != null) { - joiner.add( - String.format( - "%sdstType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstType())))); - } - - // add `dstSubType` to the URL query string - if (getDstSubType() != null) { - joiner.add( - String.format( - "%sdstSubType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstSubType())))); - } - - // add `dstId` to the URL query string - if (getDstId() != null) { - joiner.add( - String.format( - "%sdstId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstId())))); - } - - // add `dst` to the URL query string - if (getDst() != null) { - joiner.add(getDst().toUrlQueryString(prefix + "dst" + suffix)); - } - - // add `dstAddressType` to the URL query string - if (getDstAddressType() != null) { - joiner.add( - String.format( - "%sdstAddressType%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstAddressType())))); - } - - // add `amountCurrency` to the URL query string - if (getAmountCurrency() != null) { - joiner.add( - String.format( - "%samountCurrency%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmountCurrency())))); - } - - // add `amountScope` to the URL query string - if (getAmountScope() != null) { - joiner.add( - String.format( - "%samountScope%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAmountScope())))); - } - - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add(getAmount().toUrlQueryString(prefix + "amount" + suffix)); - } - - // add `periodSec` to the URL query string - if (getPeriodSec() != null) { - joiner.add( - String.format( - "%speriodSec%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getPeriodSec())))); - } - - // add `authorizers` to the URL query string - if (getAuthorizers() != null) { - for (int i = 0; i < getAuthorizers().size(); i++) { - joiner.add( - String.format( - "%sauthorizers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getAuthorizers().get(i))))); - } - } - - // add `authorizersCount` to the URL query string - if (getAuthorizersCount() != null) { - joiner.add( - String.format( - "%sauthorizersCount%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAuthorizersCount())))); - } - - // add `authorizationGroups` to the URL query string - if (getAuthorizationGroups() != null) { - joiner.add( - getAuthorizationGroups() - .toUrlQueryString(prefix + "authorizationGroups" + suffix)); - } - - // add `amountAggregation` to the URL query string - if (getAmountAggregation() != null) { - joiner.add( - getAmountAggregation().toUrlQueryString(prefix + "amountAggregation" + suffix)); - } - - // add `rawMessageSigning` to the URL query string - if (getRawMessageSigning() != null) { - joiner.add( - getRawMessageSigning().toUrlQueryString(prefix + "rawMessageSigning" + suffix)); - } - - // add `applyForApprove` to the URL query string - if (getApplyForApprove() != null) { - joiner.add( - String.format( - "%sapplyForApprove%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getApplyForApprove())))); - } - - // add `applyForTypedMessage` to the URL query string - if (getApplyForTypedMessage() != null) { - joiner.add( - String.format( - "%sapplyForTypedMessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getApplyForTypedMessage())))); - } - - // add `externalDescriptor` to the URL query string - if (getExternalDescriptor() != null) { - joiner.add( - String.format( - "%sexternalDescriptor%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getExternalDescriptor())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java deleted file mode 100644 index bc40d9b3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java +++ /dev/null @@ -1,233 +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.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -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.math.BigDecimal; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize(using = LegacyPolicyRuleAmount.LegacyPolicyRuleAmountDeserializer.class) -@JsonSerialize(using = LegacyPolicyRuleAmount.LegacyPolicyRuleAmountSerializer.class) -public class LegacyPolicyRuleAmount extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(LegacyPolicyRuleAmount.class.getName()); - - public static class LegacyPolicyRuleAmountSerializer - extends StdSerializer { - public LegacyPolicyRuleAmountSerializer(Class t) { - super(t); - } - - public LegacyPolicyRuleAmountSerializer() { - this(null); - } - - @Override - public void serialize( - LegacyPolicyRuleAmount value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class LegacyPolicyRuleAmountDeserializer - extends StdDeserializer { - public LegacyPolicyRuleAmountDeserializer() { - this(LegacyPolicyRuleAmount.class); - } - - public LegacyPolicyRuleAmountDeserializer(Class vc) { - super(vc); - } - - @Override - public LegacyPolicyRuleAmount deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - - Object deserialized = null; - // deserialize BigDecimal - try { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BigDecimal.class); - LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount(); - ret.setActualInstance(deserialized); - return ret; - } catch (Exception e) { - // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e); - } - - // deserialize String - try { - deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount(); - ret.setActualInstance(deserialized); - return ret; - } catch (Exception e) { - // deserialization failed, continue, log to help debugging - log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e); - } - - throw new IOException( - String.format( - "Failed deserialization for LegacyPolicyRuleAmount: no match found")); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public LegacyPolicyRuleAmount getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "LegacyPolicyRuleAmount cannot be null"); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public LegacyPolicyRuleAmount() { - super("anyOf", Boolean.FALSE); - } - - public LegacyPolicyRuleAmount(BigDecimal o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - public LegacyPolicyRuleAmount(String o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("BigDecimal", BigDecimal.class); - schemas.put("String", String.class); - JSON.registerDescendants( - LegacyPolicyRuleAmount.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return LegacyPolicyRuleAmount.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check the instance parameter is valid - * against the anyOf child schemas: BigDecimal, String - * - *

It could be an instance of the 'anyOf' schemas. The anyOf child schemas may themselves be - * a composed schema (allOf, anyOf, anyOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(BigDecimal.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException("Invalid instance type. Must be BigDecimal, String"); - } - - /** - * Get the actual instance, which can be the following: BigDecimal, String - * - * @return The actual instance (BigDecimal, String) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `BigDecimal`. If the actual instance is not `BigDecimal`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `BigDecimal` - * @throws ClassCastException if the instance is not `BigDecimal` - */ - public BigDecimal getBigDecimal() throws ClassCastException { - return (BigDecimal) super.getActualInstance(); - } - - /** - * Get the actual instance of `String`. If the actual instance is not `String`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` - */ - public String getString() throws ClassCastException { - return (String) super.getActualInstance(); - } - - /** - * 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("&"); - - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java deleted file mode 100644 index 01a18228..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java +++ /dev/null @@ -1,232 +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; - -/** - * Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator, - * Source, and Destination to calculate accumulation toward the value under Minimum, for the time - * under Time Period. - */ -@JsonPropertyOrder({ - LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_OPERATORS, - LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_SRC_TRANSFER_PEERS, - LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_DST_TRANSFER_PEERS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleAmountAggregation { - public static final String JSON_PROPERTY_OPERATORS = "operators"; - @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod operators; - - public static final String JSON_PROPERTY_SRC_TRANSFER_PEERS = "srcTransferPeers"; - @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod srcTransferPeers; - - public static final String JSON_PROPERTY_DST_TRANSFER_PEERS = "dstTransferPeers"; - @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod dstTransferPeers; - - public LegacyPolicyRuleAmountAggregation() {} - - public LegacyPolicyRuleAmountAggregation operators( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) { - this.operators = operators; - return this; - } - - /** - * Get operators - * - * @return operators - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyAmountAggregationTimePeriodMethod getOperators() { - return operators; - } - - @JsonProperty(JSON_PROPERTY_OPERATORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperators( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) { - this.operators = operators; - } - - public LegacyPolicyRuleAmountAggregation srcTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) { - this.srcTransferPeers = srcTransferPeers; - return this; - } - - /** - * Get srcTransferPeers - * - * @return srcTransferPeers - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyAmountAggregationTimePeriodMethod getSrcTransferPeers() { - return srcTransferPeers; - } - - @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSrcTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) { - this.srcTransferPeers = srcTransferPeers; - } - - public LegacyPolicyRuleAmountAggregation dstTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) { - this.dstTransferPeers = dstTransferPeers; - return this; - } - - /** - * Get dstTransferPeers - * - * @return dstTransferPeers - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyAmountAggregationTimePeriodMethod getDstTransferPeers() { - return dstTransferPeers; - } - - @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDstTransferPeers( - @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) { - this.dstTransferPeers = dstTransferPeers; - } - - /** Return true if this LegacyPolicyRule_amountAggregation object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleAmountAggregation legacyPolicyRuleAmountAggregation = - (LegacyPolicyRuleAmountAggregation) o; - return Objects.equals(this.operators, legacyPolicyRuleAmountAggregation.operators) - && Objects.equals( - this.srcTransferPeers, legacyPolicyRuleAmountAggregation.srcTransferPeers) - && Objects.equals( - this.dstTransferPeers, legacyPolicyRuleAmountAggregation.dstTransferPeers); - } - - @Override - public int hashCode() { - return Objects.hash(operators, srcTransferPeers, dstTransferPeers); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleAmountAggregation {\n"); - sb.append(" operators: ").append(toIndentedString(operators)).append("\n"); - sb.append(" srcTransferPeers: ").append(toIndentedString(srcTransferPeers)).append("\n"); - sb.append(" dstTransferPeers: ").append(toIndentedString(dstTransferPeers)).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 `operators` to the URL query string - if (getOperators() != null) { - joiner.add( - String.format( - "%soperators%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getOperators())))); - } - - // add `srcTransferPeers` to the URL query string - if (getSrcTransferPeers() != null) { - joiner.add( - String.format( - "%ssrcTransferPeers%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getSrcTransferPeers())))); - } - - // add `dstTransferPeers` to the URL query string - if (getDstTransferPeers() != null) { - joiner.add( - String.format( - "%sdstTransferPeers%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDstTransferPeers())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java deleted file mode 100644 index d60bd1d7..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java +++ /dev/null @@ -1,298 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Defines the transaction approval terms */ -@JsonPropertyOrder({ - LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_LOGIC, - LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER, - LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_GROUPS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleAuthorizationGroups { - /** - * * AND - requires approval of all authorization groups * OR - requires approval of at least - * one of the authorization groups - */ - public enum LogicEnum { - AND(String.valueOf("AND")), - - OR(String.valueOf("OR")); - - private String value; - - LogicEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LogicEnum fromValue(String value) { - for (LogicEnum b : LogicEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_LOGIC = "logic"; - @jakarta.annotation.Nullable private LogicEnum logic; - - public static final String JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER = - "allowOperatorAsAuthorizer"; - @jakarta.annotation.Nullable private Boolean allowOperatorAsAuthorizer; - - public static final String JSON_PROPERTY_GROUPS = "groups"; - - @jakarta.annotation.Nullable - private List groups; - - public LegacyPolicyRuleAuthorizationGroups() {} - - public LegacyPolicyRuleAuthorizationGroups logic(@jakarta.annotation.Nullable LogicEnum logic) { - this.logic = logic; - return this; - } - - /** - * * AND - requires approval of all authorization groups * OR - requires approval of at least - * one of the authorization groups - * - * @return logic - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOGIC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LogicEnum getLogic() { - return logic; - } - - @JsonProperty(JSON_PROPERTY_LOGIC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogic(@jakarta.annotation.Nullable LogicEnum logic) { - this.logic = logic; - } - - public LegacyPolicyRuleAuthorizationGroups allowOperatorAsAuthorizer( - @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { - this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; - return this; - } - - /** - * Defines whether the user who initiates a transaction can approve their own transaction and - * count toward the approval threshold for their transaction - * - * @return allowOperatorAsAuthorizer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getAllowOperatorAsAuthorizer() { - return allowOperatorAsAuthorizer; - } - - @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowOperatorAsAuthorizer( - @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) { - this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer; - } - - public LegacyPolicyRuleAuthorizationGroups groups( - @jakarta.annotation.Nullable - List groups) { - this.groups = groups; - return this; - } - - public LegacyPolicyRuleAuthorizationGroups addGroupsItem( - LegacyPolicyRuleAuthorizationGroupsGroupsInner groupsItem) { - if (this.groups == null) { - this.groups = new ArrayList<>(); - } - this.groups.add(groupsItem); - return this; - } - - /** - * Groups of entities which can approve the transaction - * - * @return groups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGroups() { - return groups; - } - - @JsonProperty(JSON_PROPERTY_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroups( - @jakarta.annotation.Nullable - List groups) { - this.groups = groups; - } - - /** Return true if this LegacyPolicyRule_authorizationGroups object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleAuthorizationGroups legacyPolicyRuleAuthorizationGroups = - (LegacyPolicyRuleAuthorizationGroups) o; - return Objects.equals(this.logic, legacyPolicyRuleAuthorizationGroups.logic) - && Objects.equals( - this.allowOperatorAsAuthorizer, - legacyPolicyRuleAuthorizationGroups.allowOperatorAsAuthorizer) - && Objects.equals(this.groups, legacyPolicyRuleAuthorizationGroups.groups); - } - - @Override - public int hashCode() { - return Objects.hash(logic, allowOperatorAsAuthorizer, groups); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleAuthorizationGroups {\n"); - sb.append(" logic: ").append(toIndentedString(logic)).append("\n"); - sb.append(" allowOperatorAsAuthorizer: ") - .append(toIndentedString(allowOperatorAsAuthorizer)) - .append("\n"); - sb.append(" groups: ").append(toIndentedString(groups)).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 `logic` to the URL query string - if (getLogic() != null) { - joiner.add( - String.format( - "%slogic%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getLogic())))); - } - - // add `allowOperatorAsAuthorizer` to the URL query string - if (getAllowOperatorAsAuthorizer() != null) { - joiner.add( - String.format( - "%sallowOperatorAsAuthorizer%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAllowOperatorAsAuthorizer())))); - } - - // add `groups` to the URL query string - if (getGroups() != null) { - for (int i = 0; i < getGroups().size(); i++) { - if (getGroups().get(i) != null) { - joiner.add( - getGroups() - .get(i) - .toUrlQueryString( - String.format( - "%sgroups%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/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java deleted file mode 100644 index 371b8ce3..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java +++ /dev/null @@ -1,260 +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.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** LegacyPolicyRuleAuthorizationGroupsGroupsInner */ -@JsonPropertyOrder({ - LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS, - LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS_GROUPS, - LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_TH -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleAuthorizationGroupsGroupsInner { - public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users; - - public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - @jakarta.annotation.Nullable private List usersGroups; - - public static final String JSON_PROPERTY_TH = "th"; - @jakarta.annotation.Nullable private BigDecimal th; - - public LegacyPolicyRuleAuthorizationGroupsGroupsInner() {} - - public LegacyPolicyRuleAuthorizationGroupsGroupsInner users( - @jakarta.annotation.Nullable List users) { - this.users = users; - return this; - } - - public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersItem(String usersItem) { - if (this.users == null) { - this.users = new ArrayList<>(); - } - this.users.add(usersItem); - return this; - } - - /** - * User ids - * - * @return users - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsers() { - return users; - } - - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(@jakarta.annotation.Nullable List users) { - this.users = users; - } - - public LegacyPolicyRuleAuthorizationGroupsGroupsInner usersGroups( - @jakarta.annotation.Nullable List usersGroups) { - this.usersGroups = usersGroups; - return this; - } - - public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersGroupsItem( - String usersGroupsItem) { - if (this.usersGroups == null) { - this.usersGroups = new ArrayList<>(); - } - this.usersGroups.add(usersGroupsItem); - return this; - } - - /** - * Group ids - * - * @return usersGroups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsersGroups() { - return usersGroups; - } - - @JsonProperty(JSON_PROPERTY_USERS_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) { - this.usersGroups = usersGroups; - } - - public LegacyPolicyRuleAuthorizationGroupsGroupsInner th( - @jakarta.annotation.Nullable BigDecimal th) { - this.th = th; - return this; - } - - /** - * Represents the min amount of entities which are required to approve the transaction, default - * is 1. - * - * @return th - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getTh() { - return th; - } - - @JsonProperty(JSON_PROPERTY_TH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTh(@jakarta.annotation.Nullable BigDecimal th) { - this.th = th; - } - - /** - * Return true if this LegacyPolicyRule_authorizationGroups_groups_inner object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleAuthorizationGroupsGroupsInner - legacyPolicyRuleAuthorizationGroupsGroupsInner = - (LegacyPolicyRuleAuthorizationGroupsGroupsInner) o; - return Objects.equals(this.users, legacyPolicyRuleAuthorizationGroupsGroupsInner.users) - && Objects.equals( - this.usersGroups, - legacyPolicyRuleAuthorizationGroupsGroupsInner.usersGroups) - && Objects.equals(this.th, legacyPolicyRuleAuthorizationGroupsGroupsInner.th); - } - - @Override - public int hashCode() { - return Objects.hash(users, usersGroups, th); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleAuthorizationGroupsGroupsInner {\n"); - sb.append(" users: ").append(toIndentedString(users)).append("\n"); - sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n"); - sb.append(" th: ").append(toIndentedString(th)).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 `users` to the URL query string - if (getUsers() != null) { - for (int i = 0; i < getUsers().size(); i++) { - joiner.add( - String.format( - "%susers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); - } - } - - // add `usersGroups` to the URL query string - if (getUsersGroups() != null) { - for (int i = 0; i < getUsersGroups().size(); i++) { - joiner.add( - String.format( - "%susersGroups%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getUsersGroups().get(i))))); - } - } - - // add `th` to the URL query string - if (getTh() != null) { - joiner.add( - String.format( - "%sth%s=%s", - prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTh())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java deleted file mode 100644 index 08319b66..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java +++ /dev/null @@ -1,290 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** The rule validation result */ -@JsonPropertyOrder({ - LegacyPolicyRuleCheckResult.JSON_PROPERTY_INDEX, - LegacyPolicyRuleCheckResult.JSON_PROPERTY_STATUS, - LegacyPolicyRuleCheckResult.JSON_PROPERTY_ERRORS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleCheckResult { - public static final String JSON_PROPERTY_INDEX = "index"; - @jakarta.annotation.Nonnull private BigDecimal index; - - /** Validation status */ - public enum StatusEnum { - OK(String.valueOf("ok")), - - FAILURE(String.valueOf("failure")); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private StatusEnum status; - - public static final String JSON_PROPERTY_ERRORS = "errors"; - @jakarta.annotation.Nonnull private List errors; - - public LegacyPolicyRuleCheckResult() {} - - @JsonCreator - public LegacyPolicyRuleCheckResult( - @JsonProperty(value = JSON_PROPERTY_INDEX, required = true) BigDecimal index, - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status, - @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) - List errors) { - this.index = index; - this.status = status; - this.errors = errors; - } - - public LegacyPolicyRuleCheckResult index(@jakarta.annotation.Nonnull BigDecimal index) { - this.index = index; - return this; - } - - /** - * Rule index number in the policy - * - * @return index - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getIndex() { - return index; - } - - @JsonProperty(JSON_PROPERTY_INDEX) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIndex(@jakarta.annotation.Nonnull BigDecimal index) { - this.index = index; - } - - public LegacyPolicyRuleCheckResult status(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - return this; - } - - /** - * Validation status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) { - this.status = status; - } - - public LegacyPolicyRuleCheckResult errors( - @jakarta.annotation.Nonnull List errors) { - this.errors = errors; - return this; - } - - public LegacyPolicyRuleCheckResult addErrorsItem(LegacyPolicyRuleError errorsItem) { - if (this.errors == null) { - this.errors = new ArrayList<>(); - } - this.errors.add(errorsItem); - return this; - } - - /** - * A set of rule validation error objects - * - * @return errors - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getErrors() { - return errors; - } - - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrors(@jakarta.annotation.Nonnull List errors) { - this.errors = errors; - } - - /** Return true if this LegacyPolicyRuleCheckResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleCheckResult legacyPolicyRuleCheckResult = (LegacyPolicyRuleCheckResult) o; - return Objects.equals(this.index, legacyPolicyRuleCheckResult.index) - && Objects.equals(this.status, legacyPolicyRuleCheckResult.status) - && Objects.equals(this.errors, legacyPolicyRuleCheckResult.errors); - } - - @Override - public int hashCode() { - return Objects.hash(index, status, errors); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleCheckResult {\n"); - sb.append(" index: ").append(toIndentedString(index)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).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 `index` to the URL query string - if (getIndex() != null) { - joiner.add( - String.format( - "%sindex%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getIndex())))); - } - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `errors` to the URL query string - if (getErrors() != null) { - for (int i = 0; i < getErrors().size(); i++) { - if (getErrors().get(i) != null) { - joiner.add( - getErrors() - .get(i) - .toUrlQueryString( - String.format( - "%serrors%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/LegacyPolicyRuleDesignatedSigners.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java deleted file mode 100644 index 79737164..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java +++ /dev/null @@ -1,214 +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.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Set of ids representing the users who signs transactions that match a specific rule */ -@JsonPropertyOrder({ - LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS, - LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS_GROUPS -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleDesignatedSigners { - public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users; - - public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - @jakarta.annotation.Nullable private List usersGroups; - - public LegacyPolicyRuleDesignatedSigners() {} - - public LegacyPolicyRuleDesignatedSigners users( - @jakarta.annotation.Nullable List users) { - this.users = users; - return this; - } - - public LegacyPolicyRuleDesignatedSigners addUsersItem(String usersItem) { - if (this.users == null) { - this.users = new ArrayList<>(); - } - this.users.add(usersItem); - return this; - } - - /** - * Set of users ids - * - * @return users - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsers() { - return users; - } - - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(@jakarta.annotation.Nullable List users) { - this.users = users; - } - - public LegacyPolicyRuleDesignatedSigners usersGroups( - @jakarta.annotation.Nullable List usersGroups) { - this.usersGroups = usersGroups; - return this; - } - - public LegacyPolicyRuleDesignatedSigners addUsersGroupsItem(String usersGroupsItem) { - if (this.usersGroups == null) { - this.usersGroups = new ArrayList<>(); - } - this.usersGroups.add(usersGroupsItem); - return this; - } - - /** - * Set of group ids - * - * @return usersGroups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsersGroups() { - return usersGroups; - } - - @JsonProperty(JSON_PROPERTY_USERS_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) { - this.usersGroups = usersGroups; - } - - /** Return true if this LegacyPolicyRule_designatedSigners object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleDesignatedSigners legacyPolicyRuleDesignatedSigners = - (LegacyPolicyRuleDesignatedSigners) o; - return Objects.equals(this.users, legacyPolicyRuleDesignatedSigners.users) - && Objects.equals(this.usersGroups, legacyPolicyRuleDesignatedSigners.usersGroups); - } - - @Override - public int hashCode() { - return Objects.hash(users, usersGroups); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleDesignatedSigners {\n"); - sb.append(" users: ").append(toIndentedString(users)).append("\n"); - sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).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 `users` to the URL query string - if (getUsers() != null) { - for (int i = 0; i < getUsers().size(); i++) { - joiner.add( - String.format( - "%susers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); - } - } - - // add `usersGroups` to the URL query string - if (getUsersGroups() != null) { - for (int i = 0; i < getUsersGroups().size(); i++) { - joiner.add( - String.format( - "%susersGroups%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getUsersGroups().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java deleted file mode 100644 index 2ba88cdd..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java +++ /dev/null @@ -1,159 +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.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Defines the destination accounts the rule allows transfers to */ -@JsonPropertyOrder({LegacyPolicyRuleDst.JSON_PROPERTY_IDS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleDst { - public static final String JSON_PROPERTY_IDS = "ids"; - @jakarta.annotation.Nullable private List> ids; - - public LegacyPolicyRuleDst() {} - - public LegacyPolicyRuleDst ids( - @jakarta.annotation.Nullable List> ids) { - this.ids = ids; - return this; - } - - public LegacyPolicyRuleDst addIdsItem(List idsItem) { - if (this.ids == null) { - this.ids = new ArrayList<>(); - } - this.ids.add(idsItem); - return this; - } - - /** - * A set of ids in a tuple format - * - * @return ids - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getIds() { - return ids; - } - - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds( - @jakarta.annotation.Nullable List> ids) { - this.ids = ids; - } - - /** Return true if this LegacyPolicyRule_dst object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleDst legacyPolicyRuleDst = (LegacyPolicyRuleDst) o; - return Objects.equals(this.ids, legacyPolicyRuleDst.ids); - } - - @Override - public int hashCode() { - return Objects.hash(ids); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleDst {\n"); - sb.append(" ids: ").append(toIndentedString(ids)).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 `ids` to the URL query string - if (getIds() != null) { - for (int i = 0; i < getIds().size(); i++) { - if (getIds().get(i) != null) { - joiner.add( - String.format( - "%sids%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java deleted file mode 100644 index 4270bbe6..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java +++ /dev/null @@ -1,334 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** Rule validation result error */ -@JsonPropertyOrder({ - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_MESSAGE, - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_CODE, - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_CODE_NAME, - LegacyPolicyRuleError.JSON_PROPERTY_ERROR_FIELD -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleError { - public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage"; - @jakarta.annotation.Nonnull private String errorMessage; - - public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; - @jakarta.annotation.Nonnull private BigDecimal errorCode; - - public static final String JSON_PROPERTY_ERROR_CODE_NAME = "errorCodeName"; - @jakarta.annotation.Nonnull private String errorCodeName; - - /** - * The field which the error relates to * operator - transaction initiator * operators - - * transaction initiators * authorizationGroups - transaction authorizer groups * - * designatedSigner - transaction signer * designatedSigners - transaction signers * - * contractMethods - contract methods * amountAggregation - transaction amount aggregation - * configuration * src - transaction source asset configuration * dst - transaction destination - * asset configuration - */ - public enum ErrorFieldEnum { - OPERATOR(String.valueOf("operator")), - - OPERATORS(String.valueOf("operators")), - - AUTHORIZATION_GROUPS(String.valueOf("authorizationGroups")), - - DESIGNATED_SIGNER(String.valueOf("designatedSigner")), - - DESIGNATED_SIGNERS(String.valueOf("designatedSigners")), - - CONTRACT_METHODS(String.valueOf("contractMethods")), - - AMOUNT_AGGREGATION(String.valueOf("amountAggregation")), - - SRC(String.valueOf("src")), - - DST(String.valueOf("dst")); - - private String value; - - ErrorFieldEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ErrorFieldEnum fromValue(String value) { - for (ErrorFieldEnum b : ErrorFieldEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_ERROR_FIELD = "errorField"; - @jakarta.annotation.Nonnull private ErrorFieldEnum errorField; - - public LegacyPolicyRuleError() {} - - @JsonCreator - public LegacyPolicyRuleError( - @JsonProperty(value = JSON_PROPERTY_ERROR_MESSAGE, required = true) String errorMessage, - @JsonProperty(value = JSON_PROPERTY_ERROR_CODE, required = true) BigDecimal errorCode, - @JsonProperty(value = JSON_PROPERTY_ERROR_CODE_NAME, required = true) - String errorCodeName, - @JsonProperty(value = JSON_PROPERTY_ERROR_FIELD, required = true) - ErrorFieldEnum errorField) { - this.errorMessage = errorMessage; - this.errorCode = errorCode; - this.errorCodeName = errorCodeName; - this.errorField = errorField; - } - - public LegacyPolicyRuleError errorMessage(@jakarta.annotation.Nonnull String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Error message - * - * @return errorMessage - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getErrorMessage() { - return errorMessage; - } - - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorMessage(@jakarta.annotation.Nonnull String errorMessage) { - this.errorMessage = errorMessage; - } - - public LegacyPolicyRuleError errorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) { - this.errorCode = errorCode; - return this; - } - - /** - * error code - * - * @return errorCode - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getErrorCode() { - return errorCode; - } - - @JsonProperty(JSON_PROPERTY_ERROR_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) { - this.errorCode = errorCode; - } - - public LegacyPolicyRuleError errorCodeName(@jakarta.annotation.Nonnull String errorCodeName) { - this.errorCodeName = errorCodeName; - return this; - } - - /** - * error code name - * - * @return errorCodeName - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_CODE_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getErrorCodeName() { - return errorCodeName; - } - - @JsonProperty(JSON_PROPERTY_ERROR_CODE_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorCodeName(@jakarta.annotation.Nonnull String errorCodeName) { - this.errorCodeName = errorCodeName; - } - - public LegacyPolicyRuleError errorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) { - this.errorField = errorField; - return this; - } - - /** - * The field which the error relates to * operator - transaction initiator * operators - - * transaction initiators * authorizationGroups - transaction authorizer groups * - * designatedSigner - transaction signer * designatedSigners - transaction signers * - * contractMethods - contract methods * amountAggregation - transaction amount aggregation - * configuration * src - transaction source asset configuration * dst - transaction destination - * asset configuration - * - * @return errorField - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_FIELD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ErrorFieldEnum getErrorField() { - return errorField; - } - - @JsonProperty(JSON_PROPERTY_ERROR_FIELD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) { - this.errorField = errorField; - } - - /** Return true if this LegacyPolicyRuleError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleError legacyPolicyRuleError = (LegacyPolicyRuleError) o; - return Objects.equals(this.errorMessage, legacyPolicyRuleError.errorMessage) - && Objects.equals(this.errorCode, legacyPolicyRuleError.errorCode) - && Objects.equals(this.errorCodeName, legacyPolicyRuleError.errorCodeName) - && Objects.equals(this.errorField, legacyPolicyRuleError.errorField); - } - - @Override - public int hashCode() { - return Objects.hash(errorMessage, errorCode, errorCodeName, errorField); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleError {\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); - sb.append(" errorCodeName: ").append(toIndentedString(errorCodeName)).append("\n"); - sb.append(" errorField: ").append(toIndentedString(errorField)).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 `errorMessage` to the URL query string - if (getErrorMessage() != null) { - joiner.add( - String.format( - "%serrorMessage%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorMessage())))); - } - - // add `errorCode` to the URL query string - if (getErrorCode() != null) { - joiner.add( - String.format( - "%serrorCode%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorCode())))); - } - - // add `errorCodeName` to the URL query string - if (getErrorCodeName() != null) { - joiner.add( - String.format( - "%serrorCodeName%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorCodeName())))); - } - - // add `errorField` to the URL query string - if (getErrorField() != null) { - joiner.add( - String.format( - "%serrorField%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getErrorField())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java deleted file mode 100644 index 1e674def..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java +++ /dev/null @@ -1,342 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fireblocks.sdk.ApiClient; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Defines users/groups who can initiate the type of transaction to which the rule applies. */ -@JsonPropertyOrder({ - LegacyPolicyRuleOperators.JSON_PROPERTY_WILDCARD, - LegacyPolicyRuleOperators.JSON_PROPERTY_USERS, - LegacyPolicyRuleOperators.JSON_PROPERTY_USERS_GROUPS, - LegacyPolicyRuleOperators.JSON_PROPERTY_SERVICES -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleOperators { - /** - * If used then this property should appear as the only child property * \"*\" - All - * users are allowed - */ - public enum WildcardEnum { - STAR(String.valueOf("*")); - - private String value; - - WildcardEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static WildcardEnum fromValue(String value) { - for (WildcardEnum b : WildcardEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_WILDCARD = "wildcard"; - @jakarta.annotation.Nullable private WildcardEnum wildcard; - - public static final String JSON_PROPERTY_USERS = "users"; - @jakarta.annotation.Nullable private List users; - - public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups"; - @jakarta.annotation.Nullable private List usersGroups; - - public static final String JSON_PROPERTY_SERVICES = "services"; - @jakarta.annotation.Nullable private List services; - - public LegacyPolicyRuleOperators() {} - - public LegacyPolicyRuleOperators wildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) { - this.wildcard = wildcard; - return this; - } - - /** - * If used then this property should appear as the only child property * \"*\" - All - * users are allowed - * - * @return wildcard - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WILDCARD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WildcardEnum getWildcard() { - return wildcard; - } - - @JsonProperty(JSON_PROPERTY_WILDCARD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) { - this.wildcard = wildcard; - } - - public LegacyPolicyRuleOperators users(@jakarta.annotation.Nullable List users) { - this.users = users; - return this; - } - - public LegacyPolicyRuleOperators addUsersItem(String usersItem) { - if (this.users == null) { - this.users = new ArrayList<>(); - } - this.users.add(usersItem); - return this; - } - - /** - * Set of users ids - * - * @return users - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsers() { - return users; - } - - @JsonProperty(JSON_PROPERTY_USERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsers(@jakarta.annotation.Nullable List users) { - this.users = users; - } - - public LegacyPolicyRuleOperators usersGroups( - @jakarta.annotation.Nullable List usersGroups) { - this.usersGroups = usersGroups; - return this; - } - - public LegacyPolicyRuleOperators addUsersGroupsItem(String usersGroupsItem) { - if (this.usersGroups == null) { - this.usersGroups = new ArrayList<>(); - } - this.usersGroups.add(usersGroupsItem); - return this; - } - - /** - * Set of group ids - * - * @return usersGroups - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERS_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUsersGroups() { - return usersGroups; - } - - @JsonProperty(JSON_PROPERTY_USERS_GROUPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) { - this.usersGroups = usersGroups; - } - - public LegacyPolicyRuleOperators services(@jakarta.annotation.Nullable List services) { - this.services = services; - return this; - } - - public LegacyPolicyRuleOperators addServicesItem(String servicesItem) { - if (this.services == null) { - this.services = new ArrayList<>(); - } - this.services.add(servicesItem); - return this; - } - - /** - * set of services to initiate transactions - * - * @return services - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SERVICES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getServices() { - return services; - } - - @JsonProperty(JSON_PROPERTY_SERVICES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setServices(@jakarta.annotation.Nullable List services) { - this.services = services; - } - - /** Return true if this LegacyPolicyRule_operators object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleOperators legacyPolicyRuleOperators = (LegacyPolicyRuleOperators) o; - return Objects.equals(this.wildcard, legacyPolicyRuleOperators.wildcard) - && Objects.equals(this.users, legacyPolicyRuleOperators.users) - && Objects.equals(this.usersGroups, legacyPolicyRuleOperators.usersGroups) - && Objects.equals(this.services, legacyPolicyRuleOperators.services); - } - - @Override - public int hashCode() { - return Objects.hash(wildcard, users, usersGroups, services); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleOperators {\n"); - sb.append(" wildcard: ").append(toIndentedString(wildcard)).append("\n"); - sb.append(" users: ").append(toIndentedString(users)).append("\n"); - sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n"); - sb.append(" services: ").append(toIndentedString(services)).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 `wildcard` to the URL query string - if (getWildcard() != null) { - joiner.add( - String.format( - "%swildcard%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getWildcard())))); - } - - // add `users` to the URL query string - if (getUsers() != null) { - for (int i = 0; i < getUsers().size(); i++) { - joiner.add( - String.format( - "%susers%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i))))); - } - } - - // add `usersGroups` to the URL query string - if (getUsersGroups() != null) { - for (int i = 0; i < getUsersGroups().size(); i++) { - joiner.add( - String.format( - "%susersGroups%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getUsersGroups().get(i))))); - } - } - - // add `services` to the URL query string - if (getServices() != null) { - for (int i = 0; i < getServices().size(); i++) { - joiner.add( - String.format( - "%sservices%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getServices().get(i))))); - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java deleted file mode 100644 index bb880f85..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java +++ /dev/null @@ -1,184 +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; - -/** Raw message signing configuration */ -@JsonPropertyOrder({ - LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_ALGORITHM, - LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_DERIVATION_PATH -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleRawMessageSigning { - public static final String JSON_PROPERTY_ALGORITHM = "algorithm"; - @jakarta.annotation.Nullable private String algorithm; - - public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath"; - - @jakarta.annotation.Nullable - private LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath; - - public LegacyPolicyRuleRawMessageSigning() {} - - public LegacyPolicyRuleRawMessageSigning algorithm( - @jakarta.annotation.Nullable String algorithm) { - this.algorithm = algorithm; - return this; - } - - /** - * Get algorithm - * - * @return algorithm - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAlgorithm() { - return algorithm; - } - - @JsonProperty(JSON_PROPERTY_ALGORITHM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAlgorithm(@jakarta.annotation.Nullable String algorithm) { - this.algorithm = algorithm; - } - - public LegacyPolicyRuleRawMessageSigning derivationPath( - @jakarta.annotation.Nullable - LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) { - this.derivationPath = derivationPath; - return this; - } - - /** - * Get derivationPath - * - * @return derivationPath - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LegacyPolicyRuleRawMessageSigningDerivationPath getDerivationPath() { - return derivationPath; - } - - @JsonProperty(JSON_PROPERTY_DERIVATION_PATH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDerivationPath( - @jakarta.annotation.Nullable - LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) { - this.derivationPath = derivationPath; - } - - /** Return true if this LegacyPolicyRule_rawMessageSigning object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleRawMessageSigning legacyPolicyRuleRawMessageSigning = - (LegacyPolicyRuleRawMessageSigning) o; - return Objects.equals(this.algorithm, legacyPolicyRuleRawMessageSigning.algorithm) - && Objects.equals( - this.derivationPath, legacyPolicyRuleRawMessageSigning.derivationPath); - } - - @Override - public int hashCode() { - return Objects.hash(algorithm, derivationPath); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleRawMessageSigning {\n"); - sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); - sb.append(" derivationPath: ").append(toIndentedString(derivationPath)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `algorithm` to the URL query string - if (getAlgorithm() != null) { - joiner.add( - String.format( - "%salgorithm%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm())))); - } - - // add `derivationPath` to the URL query string - if (getDerivationPath() != null) { - joiner.add(getDerivationPath().toUrlQueryString(prefix + "derivationPath" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java deleted file mode 100644 index 77a08f00..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java +++ /dev/null @@ -1,164 +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.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** LegacyPolicyRuleRawMessageSigningDerivationPath */ -@JsonPropertyOrder({LegacyPolicyRuleRawMessageSigningDerivationPath.JSON_PROPERTY_PATH}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleRawMessageSigningDerivationPath { - public static final String JSON_PROPERTY_PATH = "path"; - @jakarta.annotation.Nullable private List path; - - public LegacyPolicyRuleRawMessageSigningDerivationPath() {} - - public LegacyPolicyRuleRawMessageSigningDerivationPath path( - @jakarta.annotation.Nullable List path) { - this.path = path; - return this; - } - - public LegacyPolicyRuleRawMessageSigningDerivationPath addPathItem(BigDecimal pathItem) { - if (this.path == null) { - this.path = new ArrayList<>(); - } - this.path.add(pathItem); - return this; - } - - /** - * Get path - * - * @return path - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPath() { - return path; - } - - @JsonProperty(JSON_PROPERTY_PATH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPath(@jakarta.annotation.Nullable List path) { - this.path = path; - } - - /** - * Return true if this LegacyPolicyRule_rawMessageSigning_derivationPath object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleRawMessageSigningDerivationPath - legacyPolicyRuleRawMessageSigningDerivationPath = - (LegacyPolicyRuleRawMessageSigningDerivationPath) o; - return Objects.equals(this.path, legacyPolicyRuleRawMessageSigningDerivationPath.path); - } - - @Override - public int hashCode() { - return Objects.hash(path); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleRawMessageSigningDerivationPath {\n"); - sb.append(" path: ").append(toIndentedString(path)).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 `path` to the URL query string - if (getPath() != null) { - for (int i = 0; i < getPath().size(); i++) { - if (getPath().get(i) != null) { - joiner.add( - String.format( - "%spath%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode( - ApiClient.valueToString(getPath().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java deleted file mode 100644 index 8d43f1f2..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java +++ /dev/null @@ -1,159 +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.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Defines source accounts the rule allows transfers to originate from */ -@JsonPropertyOrder({LegacyPolicyRuleSrc.JSON_PROPERTY_IDS}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRuleSrc { - public static final String JSON_PROPERTY_IDS = "ids"; - @jakarta.annotation.Nullable private List> ids; - - public LegacyPolicyRuleSrc() {} - - public LegacyPolicyRuleSrc ids( - @jakarta.annotation.Nullable List> ids) { - this.ids = ids; - return this; - } - - public LegacyPolicyRuleSrc addIdsItem(List idsItem) { - if (this.ids == null) { - this.ids = new ArrayList<>(); - } - this.ids.add(idsItem); - return this; - } - - /** - * A set of ids in a tuple format - * - * @return ids - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getIds() { - return ids; - } - - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIds( - @jakarta.annotation.Nullable List> ids) { - this.ids = ids; - } - - /** Return true if this LegacyPolicyRule_src object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRuleSrc legacyPolicyRuleSrc = (LegacyPolicyRuleSrc) o; - return Objects.equals(this.ids, legacyPolicyRuleSrc.ids); - } - - @Override - public int hashCode() { - return Objects.hash(ids); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRuleSrc {\n"); - sb.append(" ids: ").append(toIndentedString(ids)).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 `ids` to the URL query string - if (getIds() != null) { - for (int i = 0; i < getIds().size(); i++) { - if (getIds().get(i) != null) { - joiner.add( - String.format( - "%sids%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", containerPrefix, i, containerSuffix), - ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i))))); - } - } - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java deleted file mode 100644 index 47f2de65..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java +++ /dev/null @@ -1,161 +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 java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** LegacyPolicyRules */ -@JsonPropertyOrder({LegacyPolicyRules.JSON_PROPERTY_RULES}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyRules { - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nullable private List rules; - - public LegacyPolicyRules() {} - - public LegacyPolicyRules rules(@jakarta.annotation.Nullable List rules) { - this.rules = rules; - return this; - } - - public LegacyPolicyRules addRulesItem(LegacyPolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * Policy rules - * - * @return rules - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRules(@jakarta.annotation.Nullable List rules) { - this.rules = rules; - } - - /** Return true if this LegacyPolicyRules object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyRules legacyPolicyRules = (LegacyPolicyRules) o; - return Objects.equals(this.rules, legacyPolicyRules.rules); - } - - @Override - public int hashCode() { - return Objects.hash(rules); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyRules {\n"); - sb.append(" rules: ").append(toIndentedString(rules)).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 `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%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/LegacyPolicySrcOrDestSubType.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java deleted file mode 100644 index 23cc4e33..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java +++ /dev/null @@ -1,76 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by - * your clients and counterparties * INTERNAL - A whitelisted wallet assigned as internal, is - * typically used for addresses that you control outside of your Fireblocks workspace * CONTRACT - A - * whitelisted wallet assigned as contract is for identifying and managing external smart contracts - * * EXCHANGETEST - Exchanges which operate only on testnet assets * \"*\" - All subtypes - */ -public enum LegacyPolicySrcOrDestSubType { - EXTERNAL("EXTERNAL"), - - INTERNAL("INTERNAL"), - - CONTRACT("CONTRACT"), - - EXCHANGETEST("EXCHANGETEST"), - - STAR("*"); - - private String value; - - LegacyPolicySrcOrDestSubType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LegacyPolicySrcOrDestSubType fromValue(String value) { - for (LegacyPolicySrcOrDestSubType b : LegacyPolicySrcOrDestSubType.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/LegacyPolicySrcOrDestType.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java deleted file mode 100644 index 1caa2ded..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java +++ /dev/null @@ -1,83 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * * EXCHANGE - A third-party exchange account connected to your workspace * UNMANAGED - A unmanaged - * wallet outside of Fireblocks workspace * VAULT - An account in your Fireblocks Vault * - * NETWORK_CONNECTION - A connection in your Fireblocks network * COMPOUND - (deprecated) An asset - * retrieved by using the Compound DeFI protocol * FIAT_ACCOUNT - A third-party fiat account - * connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks - * Workspace * \"*\" - All types - */ -public enum LegacyPolicySrcOrDestType { - EXCHANGE("EXCHANGE"), - - UNMANAGED("UNMANAGED"), - - VAULT("VAULT"), - - NETWORK_CONNECTION("NETWORK_CONNECTION"), - - COMPOUND("COMPOUND"), - - FIAT_ACCOUNT("FIAT_ACCOUNT"), - - ONE_TIME_ADDRESS("ONE_TIME_ADDRESS"), - - STAR("*"); - - private String value; - - LegacyPolicySrcOrDestType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LegacyPolicySrcOrDestType fromValue(String value) { - for (LegacyPolicySrcOrDestType b : LegacyPolicySrcOrDestType.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/LegacyPolicyStatus.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java deleted file mode 100644 index c6399c67..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java +++ /dev/null @@ -1,78 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * * SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule - * is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the - * console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error - */ -public enum LegacyPolicyStatus { - SUCCESS("SUCCESS"), - - UNVALIDATED("UNVALIDATED"), - - INVALID_CONFIGURATION("INVALID_CONFIGURATION"), - - PENDING("PENDING"), - - PENDING_CONSOLE_APPROVAL("PENDING_CONSOLE_APPROVAL"), - - AWAITING_QUORUM("AWAITING_QUORUM"), - - UNHANDLED_ERROR("UNHANDLED_ERROR"); - - private String value; - - LegacyPolicyStatus(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static LegacyPolicyStatus fromValue(String value) { - for (LegacyPolicyStatus b : LegacyPolicyStatus.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/LegacyPolicyValidation.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java deleted file mode 100644 index f1bb4aa8..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java +++ /dev/null @@ -1,186 +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.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; - -/** Policy validation object */ -@JsonPropertyOrder({ - LegacyPolicyValidation.JSON_PROPERTY_STATUS, - LegacyPolicyValidation.JSON_PROPERTY_CHECK_RESULT -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPolicyValidation { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private String status; - - public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult"; - @jakarta.annotation.Nonnull private LegacyPolicyCheckResult checkResult; - - public LegacyPolicyValidation() {} - - @JsonCreator - public LegacyPolicyValidation( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status, - @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true) - LegacyPolicyCheckResult checkResult) { - this.status = status; - this.checkResult = checkResult; - } - - public LegacyPolicyValidation status(@jakarta.annotation.Nonnull String status) { - this.status = status; - return this; - } - - /** - * Validation status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull String status) { - this.status = status; - } - - public LegacyPolicyValidation checkResult( - @jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - return this; - } - - /** - * Get checkResult - * - * @return checkResult - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyCheckResult getCheckResult() { - return checkResult; - } - - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCheckResult(@jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - } - - /** Return true if this LegacyPolicyValidation object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPolicyValidation legacyPolicyValidation = (LegacyPolicyValidation) o; - return Objects.equals(this.status, legacyPolicyValidation.status) - && Objects.equals(this.checkResult, legacyPolicyValidation.checkResult); - } - - @Override - public int hashCode() { - return Objects.hash(status, checkResult); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPolicyValidation {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" checkResult: ").append(toIndentedString(checkResult)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `checkResult` to the URL query string - if (getCheckResult() != null) { - joiner.add(getCheckResult().toUrlQueryString(prefix + "checkResult" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java b/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java deleted file mode 100644 index aacf9977..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java +++ /dev/null @@ -1,139 +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; - -/** LegacyPublishDraftRequest */ -@JsonPropertyOrder({LegacyPublishDraftRequest.JSON_PROPERTY_DRAFT_ID}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPublishDraftRequest { - public static final String JSON_PROPERTY_DRAFT_ID = "draftId"; - @jakarta.annotation.Nullable private String draftId; - - public LegacyPublishDraftRequest() {} - - public LegacyPublishDraftRequest draftId(@jakarta.annotation.Nullable String draftId) { - this.draftId = draftId; - return this; - } - - /** - * draft unique identifier - * - * @return draftId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDraftId() { - return draftId; - } - - @JsonProperty(JSON_PROPERTY_DRAFT_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDraftId(@jakarta.annotation.Nullable String draftId) { - this.draftId = draftId; - } - - /** Return true if this LegacyPublishDraftRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPublishDraftRequest legacyPublishDraftRequest = (LegacyPublishDraftRequest) o; - return Objects.equals(this.draftId, legacyPublishDraftRequest.draftId); - } - - @Override - public int hashCode() { - return Objects.hash(draftId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPublishDraftRequest {\n"); - sb.append(" draftId: ").append(toIndentedString(draftId)).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 `draftId` to the URL query string - if (getDraftId() != null) { - joiner.add( - String.format( - "%sdraftId%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getDraftId())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java deleted file mode 100644 index d845a173..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java +++ /dev/null @@ -1,288 +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.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.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.StringJoiner; - -/** Response object of the publish policy operation */ -@JsonPropertyOrder({ - LegacyPublishResult.JSON_PROPERTY_STATUS, - LegacyPublishResult.JSON_PROPERTY_RULES, - LegacyPublishResult.JSON_PROPERTY_CHECK_RESULT, - LegacyPublishResult.JSON_PROPERTY_METADATA -}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class LegacyPublishResult { - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nonnull private LegacyPolicyStatus status; - - public static final String JSON_PROPERTY_RULES = "rules"; - @jakarta.annotation.Nonnull private List rules; - - public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult"; - @jakarta.annotation.Nonnull private LegacyPolicyCheckResult checkResult; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata; - - public LegacyPublishResult() {} - - @JsonCreator - public LegacyPublishResult( - @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) LegacyPolicyStatus status, - @JsonProperty(value = JSON_PROPERTY_RULES, required = true) - List rules, - @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true) - LegacyPolicyCheckResult checkResult, - @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) - LegacyPolicyMetadata metadata) { - this.status = status; - this.rules = rules; - this.checkResult = checkResult; - this.metadata = metadata; - } - - public LegacyPublishResult status(@jakarta.annotation.Nonnull LegacyPolicyStatus status) { - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyStatus getStatus() { - return status; - } - - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@jakarta.annotation.Nonnull LegacyPolicyStatus status) { - this.status = status; - } - - public LegacyPublishResult rules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - return this; - } - - public LegacyPublishResult addRulesItem(LegacyPolicyRule rulesItem) { - if (this.rules == null) { - this.rules = new ArrayList<>(); - } - this.rules.add(rulesItem); - return this; - } - - /** - * Get rules - * - * @return rules - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getRules() { - return rules; - } - - @JsonProperty(JSON_PROPERTY_RULES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRules(@jakarta.annotation.Nonnull List rules) { - this.rules = rules; - } - - public LegacyPublishResult checkResult( - @jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - return this; - } - - /** - * Get checkResult - * - * @return checkResult - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyCheckResult getCheckResult() { - return checkResult; - } - - @JsonProperty(JSON_PROPERTY_CHECK_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCheckResult(@jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) { - this.checkResult = checkResult; - } - - public LegacyPublishResult metadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Get metadata - * - * @return metadata - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LegacyPolicyMetadata getMetadata() { - return metadata; - } - - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) { - this.metadata = metadata; - } - - /** Return true if this LegacyPublishResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LegacyPublishResult legacyPublishResult = (LegacyPublishResult) o; - return Objects.equals(this.status, legacyPublishResult.status) - && Objects.equals(this.rules, legacyPublishResult.rules) - && Objects.equals(this.checkResult, legacyPublishResult.checkResult) - && Objects.equals(this.metadata, legacyPublishResult.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(status, rules, checkResult, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LegacyPublishResult {\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); - sb.append(" checkResult: ").append(toIndentedString(checkResult)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `status` to the URL query string - if (getStatus() != null) { - joiner.add( - String.format( - "%sstatus%s=%s", - prefix, - suffix, - ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); - } - - // add `rules` to the URL query string - if (getRules() != null) { - for (int i = 0; i < getRules().size(); i++) { - if (getRules().get(i) != null) { - joiner.add( - getRules() - .get(i) - .toUrlQueryString( - String.format( - "%srules%s%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format( - "%s%d%s", - containerPrefix, - i, - containerSuffix)))); - } - } - } - - // add `checkResult` to the URL query string - if (getCheckResult() != null) { - joiner.add(getCheckResult().toUrlQueryString(prefix + "checkResult" + suffix)); - } - - // add `metadata` to the URL query string - if (getMetadata() != null) { - joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix)); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java b/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java deleted file mode 100644 index 7ff1bbb4..00000000 --- a/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java +++ /dev/null @@ -1,290 +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.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -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 java.util.StringJoiner; -import java.util.logging.Level; -import java.util.logging.Logger; - -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -@JsonDeserialize( - using = LegacySrcOrDestAttributesInner.LegacySrcOrDestAttributesInnerDeserializer.class) -@JsonSerialize( - using = LegacySrcOrDestAttributesInner.LegacySrcOrDestAttributesInnerSerializer.class) -public class LegacySrcOrDestAttributesInner extends AbstractOpenApiSchema { - private static final Logger log = - Logger.getLogger(LegacySrcOrDestAttributesInner.class.getName()); - - public static class LegacySrcOrDestAttributesInnerSerializer - extends StdSerializer { - public LegacySrcOrDestAttributesInnerSerializer(Class t) { - super(t); - } - - public LegacySrcOrDestAttributesInnerSerializer() { - this(null); - } - - @Override - public void serialize( - LegacySrcOrDestAttributesInner value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); - } - } - - public static class LegacySrcOrDestAttributesInnerDeserializer - extends StdDeserializer { - public LegacySrcOrDestAttributesInnerDeserializer() { - this(LegacySrcOrDestAttributesInner.class); - } - - public LegacySrcOrDestAttributesInnerDeserializer(Class vc) { - super(vc); - } - - @Override - public LegacySrcOrDestAttributesInner deserialize( - JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); - - Object deserialized = null; - // deserialize LegacyPolicySrcOrDestSubType - try { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(LegacyPolicySrcOrDestSubType.class); - LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); - ret.setActualInstance(deserialized); - return ret; - } catch (Exception e) { - // deserialization failed, continue, log to help debugging - log.log( - Level.FINER, - "Input data does not match 'LegacySrcOrDestAttributesInner'", - e); - } - - // deserialize LegacyPolicySrcOrDestType - try { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(LegacyPolicySrcOrDestType.class); - LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); - ret.setActualInstance(deserialized); - return ret; - } catch (Exception e) { - // deserialization failed, continue, log to help debugging - log.log( - Level.FINER, - "Input data does not match 'LegacySrcOrDestAttributesInner'", - e); - } - - // deserialize String - try { - deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); - LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner(); - ret.setActualInstance(deserialized); - return ret; - } catch (Exception e) { - // deserialization failed, continue, log to help debugging - log.log( - Level.FINER, - "Input data does not match 'LegacySrcOrDestAttributesInner'", - e); - } - - throw new IOException( - String.format( - "Failed deserialization for LegacySrcOrDestAttributesInner: no match" - + " found")); - } - - /** Handle deserialization of the 'null' value. */ - @Override - public LegacySrcOrDestAttributesInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "LegacySrcOrDestAttributesInner cannot be null"); - } - } - - // store a list of schema names defined in anyOf - public static final Map> schemas = new HashMap>(); - - public LegacySrcOrDestAttributesInner() { - super("anyOf", Boolean.FALSE); - } - - public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestSubType o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestType o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - public LegacySrcOrDestAttributesInner(String o) { - super("anyOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("LegacyPolicySrcOrDestSubType", LegacyPolicySrcOrDestSubType.class); - schemas.put("LegacyPolicySrcOrDestType", LegacyPolicySrcOrDestType.class); - schemas.put("String", String.class); - JSON.registerDescendants( - LegacySrcOrDestAttributesInner.class, Collections.unmodifiableMap(schemas)); - } - - @Override - public Map> getSchemas() { - return LegacySrcOrDestAttributesInner.schemas; - } - - /** - * Set the instance that matches the anyOf child schema, check the instance parameter is valid - * against the anyOf child schemas: LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType, - * String - * - *

It could be an instance of the 'anyOf' schemas. The anyOf child schemas may themselves be - * a composed schema (allOf, anyOf, anyOf). - */ - @Override - public void setActualInstance(Object instance) { - if (JSON.isInstanceOf( - LegacyPolicySrcOrDestSubType.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(LegacyPolicySrcOrDestType.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - if (JSON.isInstanceOf(String.class, instance, new HashSet>())) { - super.setActualInstance(instance); - return; - } - - throw new RuntimeException( - "Invalid instance type. Must be LegacyPolicySrcOrDestSubType," - + " LegacyPolicySrcOrDestType, String"); - } - - /** - * Get the actual instance, which can be the following: LegacyPolicySrcOrDestSubType, - * LegacyPolicySrcOrDestType, String - * - * @return The actual instance (LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType, String) - */ - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `LegacyPolicySrcOrDestSubType`. If the actual instance is not - * `LegacyPolicySrcOrDestSubType`, the ClassCastException will be thrown. - * - * @return The actual instance of `LegacyPolicySrcOrDestSubType` - * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestSubType` - */ - public LegacyPolicySrcOrDestSubType getLegacyPolicySrcOrDestSubType() - throws ClassCastException { - return (LegacyPolicySrcOrDestSubType) super.getActualInstance(); - } - - /** - * Get the actual instance of `LegacyPolicySrcOrDestType`. If the actual instance is not - * `LegacyPolicySrcOrDestType`, the ClassCastException will be thrown. - * - * @return The actual instance of `LegacyPolicySrcOrDestType` - * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestType` - */ - public LegacyPolicySrcOrDestType getLegacyPolicySrcOrDestType() throws ClassCastException { - return (LegacyPolicySrcOrDestType) super.getActualInstance(); - } - - /** - * Get the actual instance of `String`. If the actual instance is not `String`, the - * ClassCastException will be thrown. - * - * @return The actual instance of `String` - * @throws ClassCastException if the instance is not `String` - */ - public String getString() throws ClassCastException { - return (String) super.getActualInstance(); - } - - /** - * 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("&"); - - return null; - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java deleted file mode 100644 index f0309eb4..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java +++ /dev/null @@ -1,147 +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.math.BigDecimal; -import java.util.Objects; -import java.util.StringJoiner; - -/** SetAdminQuorumThresholdRequest */ -@JsonPropertyOrder({SetAdminQuorumThresholdRequest.JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SetAdminQuorumThresholdRequest { - public static final String JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD = "adminQuorumThreshold"; - @jakarta.annotation.Nullable private BigDecimal adminQuorumThreshold; - - public SetAdminQuorumThresholdRequest() {} - - public SetAdminQuorumThresholdRequest adminQuorumThreshold( - @jakarta.annotation.Nullable BigDecimal adminQuorumThreshold) { - this.adminQuorumThreshold = adminQuorumThreshold; - return this; - } - - /** - * The number of admins that will requires to approve an operation - * - * @return adminQuorumThreshold - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getAdminQuorumThreshold() { - return adminQuorumThreshold; - } - - @JsonProperty(JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAdminQuorumThreshold( - @jakarta.annotation.Nullable BigDecimal adminQuorumThreshold) { - this.adminQuorumThreshold = adminQuorumThreshold; - } - - /** Return true if this SetAdminQuorumThresholdRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetAdminQuorumThresholdRequest setAdminQuorumThresholdRequest = - (SetAdminQuorumThresholdRequest) o; - return Objects.equals( - this.adminQuorumThreshold, setAdminQuorumThresholdRequest.adminQuorumThreshold); - } - - @Override - public int hashCode() { - return Objects.hash(adminQuorumThreshold); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetAdminQuorumThresholdRequest {\n"); - sb.append(" adminQuorumThreshold: ") - .append(toIndentedString(adminQuorumThreshold)) - .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 `adminQuorumThreshold` to the URL query string - if (getAdminQuorumThreshold() != null) { - joiner.add( - String.format( - "%sadminQuorumThreshold%s=%s", - prefix, - suffix, - ApiClient.urlEncode( - ApiClient.valueToString(getAdminQuorumThreshold())))); - } - - return joiner.toString(); - } -} diff --git a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java deleted file mode 100644 index 383eb7bd..00000000 --- a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java +++ /dev/null @@ -1,147 +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.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; - -/** SetAdminQuorumThresholdResponse */ -@JsonPropertyOrder({SetAdminQuorumThresholdResponse.JSON_PROPERTY_MESSAGE}) -@jakarta.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.14.0") -public class SetAdminQuorumThresholdResponse { - public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nonnull private String message; - - public SetAdminQuorumThresholdResponse() {} - - @JsonCreator - public SetAdminQuorumThresholdResponse( - @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) { - this.message = message; - } - - public SetAdminQuorumThresholdResponse message(@jakarta.annotation.Nonnull String message) { - this.message = message; - return this; - } - - /** - * The message which indicates the result of the operation. - * - * @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 SetAdminQuorumThresholdResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SetAdminQuorumThresholdResponse setAdminQuorumThresholdResponse = - (SetAdminQuorumThresholdResponse) o; - return Objects.equals(this.message, setAdminQuorumThresholdResponse.message); - } - - @Override - public int hashCode() { - return Objects.hash(message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SetAdminQuorumThresholdResponse {\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 `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/TradingPair.java b/src/main/java/com/fireblocks/sdk/model/TradingPair.java index fb87475f..8fc8c37e 100644 --- a/src/main/java/com/fireblocks/sdk/model/TradingPair.java +++ b/src/main/java/com/fireblocks/sdk/model/TradingPair.java @@ -33,6 +33,8 @@ TradingPair.JSON_PROPERTY_ACCOUNT_ID, TradingPair.JSON_PROPERTY_BASE_ASSET_ID, TradingPair.JSON_PROPERTY_QUOTE_ASSET_ID, + TradingPair.JSON_PROPERTY_BASE_SYMBOL, + TradingPair.JSON_PROPERTY_QUOTE_SYMBOL, TradingPair.JSON_PROPERTY_BASE_CHAIN, TradingPair.JSON_PROPERTY_QUOTE_CHAIN, TradingPair.JSON_PROPERTY_SIDE, @@ -59,6 +61,12 @@ public class TradingPair { public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId"; @jakarta.annotation.Nonnull private String quoteAssetId; + public static final String JSON_PROPERTY_BASE_SYMBOL = "baseSymbol"; + @jakarta.annotation.Nullable private String baseSymbol; + + public static final String JSON_PROPERTY_QUOTE_SYMBOL = "quoteSymbol"; + @jakarta.annotation.Nullable private String quoteSymbol; + public static final String JSON_PROPERTY_BASE_CHAIN = "baseChain"; @jakarta.annotation.Nullable private String baseChain; @@ -200,6 +208,58 @@ public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) { this.quoteAssetId = quoteAssetId; } + public TradingPair baseSymbol(@jakarta.annotation.Nullable String baseSymbol) { + this.baseSymbol = baseSymbol; + return this; + } + + /** + * Display symbol of the base asset, for readability when `baseAssetId` is not + * self-explanatory (a privately listed asset or a UUID). `*` when + * `baseAssetId` is `*`. Absent when the asset could not be resolved. + * Informational only, not an identifier. + * + * @return baseSymbol + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BASE_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaseSymbol() { + return baseSymbol; + } + + @JsonProperty(JSON_PROPERTY_BASE_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBaseSymbol(@jakarta.annotation.Nullable String baseSymbol) { + this.baseSymbol = baseSymbol; + } + + public TradingPair quoteSymbol(@jakarta.annotation.Nullable String quoteSymbol) { + this.quoteSymbol = quoteSymbol; + return this; + } + + /** + * Display symbol of the quote asset, for readability when `quoteAssetId` is not + * self-explanatory (a privately listed asset or a UUID). `*` when + * `quoteAssetId` is `*`. Absent when the asset could not be resolved. + * Informational only, not an identifier. + * + * @return quoteSymbol + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUOTE_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuoteSymbol() { + return quoteSymbol; + } + + @JsonProperty(JSON_PROPERTY_QUOTE_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setQuoteSymbol(@jakarta.annotation.Nullable String quoteSymbol) { + this.quoteSymbol = quoteSymbol; + } + public TradingPair baseChain(@jakarta.annotation.Nullable String baseChain) { this.baseChain = baseChain; return this; @@ -426,6 +486,8 @@ public boolean equals(Object o) { && Objects.equals(this.accountId, tradingPair.accountId) && Objects.equals(this.baseAssetId, tradingPair.baseAssetId) && Objects.equals(this.quoteAssetId, tradingPair.quoteAssetId) + && Objects.equals(this.baseSymbol, tradingPair.baseSymbol) + && Objects.equals(this.quoteSymbol, tradingPair.quoteSymbol) && Objects.equals(this.baseChain, tradingPair.baseChain) && Objects.equals(this.quoteChain, tradingPair.quoteChain) && Objects.equals(this.side, tradingPair.side) @@ -444,6 +506,8 @@ public int hashCode() { accountId, baseAssetId, quoteAssetId, + baseSymbol, + quoteSymbol, baseChain, quoteChain, side, @@ -463,6 +527,8 @@ public String toString() { sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n"); sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n"); + sb.append(" baseSymbol: ").append(toIndentedString(baseSymbol)).append("\n"); + sb.append(" quoteSymbol: ").append(toIndentedString(quoteSymbol)).append("\n"); sb.append(" baseChain: ").append(toIndentedString(baseChain)).append("\n"); sb.append(" quoteChain: ").append(toIndentedString(quoteChain)).append("\n"); sb.append(" side: ").append(toIndentedString(side)).append("\n"); @@ -559,6 +625,26 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId())))); } + // add `baseSymbol` to the URL query string + if (getBaseSymbol() != null) { + joiner.add( + String.format( + "%sbaseSymbol%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getBaseSymbol())))); + } + + // add `quoteSymbol` to the URL query string + if (getQuoteSymbol() != null) { + joiner.add( + String.format( + "%squoteSymbol%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getQuoteSymbol())))); + } + // add `baseChain` to the URL query string if (getBaseChain() != null) { joiner.add( diff --git a/src/test/java/com/fireblocks/sdk/FireblocksTest.java b/src/test/java/com/fireblocks/sdk/FireblocksTest.java index 1b6bf785..115744ba 100644 --- a/src/test/java/com/fireblocks/sdk/FireblocksTest.java +++ b/src/test/java/com/fireblocks/sdk/FireblocksTest.java @@ -622,14 +622,6 @@ public void testGetPaymentsPayoutApi() { Assert.assertSame(paymentsPayout, fireblocks.paymentsPayout()); } - @Test - public void testGetPolicyEditorBetaApi() { - setupFireblocks(true, null, null); - PolicyEditorBetaApi policyEditorBeta = fireblocks.policyEditorBeta(); - Assert.assertNotNull(policyEditorBeta); - Assert.assertSame(policyEditorBeta, fireblocks.policyEditorBeta()); - } - @Test public void testGetPolicyEditorV2Api() { setupFireblocks(true, null, null); diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java deleted file mode 100644 index c7c29531..00000000 --- a/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java +++ /dev/null @@ -1,117 +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.api; - - -import com.fireblocks.sdk.ApiResponse; -import com.fireblocks.sdk.model.LegacyDraftReviewAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyAndValidationResponse; -import com.fireblocks.sdk.model.LegacyPolicyRules; -import com.fireblocks.sdk.model.LegacyPublishDraftRequest; -import com.fireblocks.sdk.model.LegacyPublishResult; -import java.util.concurrent.CompletableFuture; -import org.junit.Ignore; -import org.junit.Test; - -/** API tests for PolicyEditorBetaApi */ -@Ignore -public class PolicyEditorBetaApiTest { - - private final PolicyEditorBetaApi api = new PolicyEditorBetaApi(); - - /** - * Get the active policy and its validation - * - *

Legacy Endpoint – Returns the active policy and its validation. **Note:** - This endpoint - * will remain available for the foreseeable future and is not deprecated. - The - * `getActivePolicy` endpoint under policy/paths provides policy type-specific - * operations and improved functionality. - These endpoints are currently in beta and might be - * subject to changes. If you want to participate and learn more about the Fireblocks TAP, - * please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. - */ - @Test - public void getActivePolicyLegacyTest() { - CompletableFuture> response = - api.getActivePolicyLegacy(); - } - - /** - * Get the active draft - * - *

Legacy Endpoint – Returns the active draft and its validation. **Note:** - This endpoint - * will remain available for the foreseeable future and is not deprecated. - The - * `getDraft` endpoint under policy/paths provides policy type-specific operations and - * improved functionality. - These endpoints are currently in beta and might be subject to - * changes. If you want to participate and learn more about the Fireblocks TAP, please contact - * your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - */ - @Test - public void getDraftLegacyTest() { - CompletableFuture> response = - api.getDraftLegacy(); - } - - /** - * Send publish request for a certain draft id - * - *

Legacy Endpoint – Send publish request of certain draft id and returns the response. - * **Note:** - This endpoint will remain available for the foreseeable future and is not - * deprecated. - The `publishDraft` endpoint under policy/paths provides improved - * functionality and better performance. - These endpoints are currently in beta and might be - * subject to changes. If you want to participate and learn more about the Fireblocks TAP, - * please contact your Fireblocks Customer Success Manager or send an email to - * CSM@fireblocks.com. - */ - @Test - public void publishDraftLegacyTest() { - LegacyPublishDraftRequest legacyPublishDraftRequest = null; - String idempotencyKey = null; - CompletableFuture> response = - api.publishDraftLegacy(legacyPublishDraftRequest, idempotencyKey); - } - - /** - * Send publish request for a set of policy rules - * - *

Send publish request of set of policy rules and returns the response. **Note:** These - * endpoints are currently in beta and might be subject to changes. If you want to participate - * and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success - * Manager or send an email to CSM@fireblocks.com. - */ - @Test - public void publishPolicyRulesTest() { - LegacyPolicyRules legacyPolicyRules = null; - String idempotencyKey = null; - CompletableFuture> response = - api.publishPolicyRules(legacyPolicyRules, idempotencyKey); - } - - /** - * Update the draft with a new set of rules - * - *

Legacy Endpoint – Update the draft and return its validation. **Note:** - This endpoint - * will remain available for the foreseeable future and is not deprecated. - The - * `updateDraft` endpoint under policy/paths provides policy type-specific operations - * and improved functionality. - These endpoints are currently in beta and might be subject to - * changes. If you want to participate and learn more about the Fireblocks TAP, please contact - * your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. - */ - @Test - public void updateDraftLegacyTest() { - LegacyPolicyRules legacyPolicyRules = null; - String idempotencyKey = null; - CompletableFuture> response = - api.updateDraftLegacy(legacyPolicyRules, idempotencyKey); - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java deleted file mode 100644 index 9f4896e7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java +++ /dev/null @@ -1,25 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyAmountAggregationTimePeriodMethod */ -class LegacyAmountAggregationTimePeriodMethodTest { - /** Model tests for LegacyAmountAggregationTimePeriodMethod */ - @Test - void testLegacyAmountAggregationTimePeriodMethod() { - // TODO: test LegacyAmountAggregationTimePeriodMethod - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java deleted file mode 100644 index bd3116d9..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java +++ /dev/null @@ -1,51 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyDraftResponse */ -class LegacyDraftResponseTest { - private final LegacyDraftResponse model = new LegacyDraftResponse(); - - /** Model tests for LegacyDraftResponse */ - @Test - void testLegacyDraftResponse() { - // TODO: test LegacyDraftResponse - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } - - /** Test the property 'draftId' */ - @Test - void draftIdTest() { - // TODO: test draftId - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java deleted file mode 100644 index 968a3632..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java +++ /dev/null @@ -1,40 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyDraftReviewAndValidationResponse */ -class LegacyDraftReviewAndValidationResponseTest { - private final LegacyDraftReviewAndValidationResponse model = - new LegacyDraftReviewAndValidationResponse(); - - /** Model tests for LegacyDraftReviewAndValidationResponse */ - @Test - void testLegacyDraftReviewAndValidationResponse() { - // TODO: test LegacyDraftReviewAndValidationResponse - } - - /** Test the property 'draftResponse' */ - @Test - void draftResponseTest() { - // TODO: test draftResponse - } - - /** Test the property 'validation' */ - @Test - void validationTest() { - // TODO: test validation - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java deleted file mode 100644 index 1f0c4576..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java +++ /dev/null @@ -1,39 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyAndValidationResponse */ -class LegacyPolicyAndValidationResponseTest { - private final LegacyPolicyAndValidationResponse model = new LegacyPolicyAndValidationResponse(); - - /** Model tests for LegacyPolicyAndValidationResponse */ - @Test - void testLegacyPolicyAndValidationResponse() { - // TODO: test LegacyPolicyAndValidationResponse - } - - /** Test the property 'policy' */ - @Test - void policyTest() { - // TODO: test policy - } - - /** Test the property 'validation' */ - @Test - void validationTest() { - // TODO: test validation - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java deleted file mode 100644 index 9f8f6c58..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java +++ /dev/null @@ -1,39 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyCheckResult */ -class LegacyPolicyCheckResultTest { - private final LegacyPolicyCheckResult model = new LegacyPolicyCheckResult(); - - /** Model tests for LegacyPolicyCheckResult */ - @Test - void testLegacyPolicyCheckResult() { - // TODO: test LegacyPolicyCheckResult - } - - /** Test the property 'errors' */ - @Test - void errorsTest() { - // TODO: test errors - } - - /** Test the property 'results' */ - @Test - void resultsTest() { - // TODO: test results - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java deleted file mode 100644 index 09f9c238..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java +++ /dev/null @@ -1,51 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyMetadata */ -class LegacyPolicyMetadataTest { - private final LegacyPolicyMetadata model = new LegacyPolicyMetadata(); - - /** Model tests for LegacyPolicyMetadata */ - @Test - void testLegacyPolicyMetadata() { - // TODO: test LegacyPolicyMetadata - } - - /** Test the property 'editedBy' */ - @Test - void editedByTest() { - // TODO: test editedBy - } - - /** Test the property 'editedAt' */ - @Test - void editedAtTest() { - // TODO: test editedAt - } - - /** Test the property 'publishedBy' */ - @Test - void publishedByTest() { - // TODO: test publishedBy - } - - /** Test the property 'publishedAt' */ - @Test - void publishedAtTest() { - // TODO: test publishedAt - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java deleted file mode 100644 index 12397aa9..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java +++ /dev/null @@ -1,39 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyResponse */ -class LegacyPolicyResponseTest { - private final LegacyPolicyResponse model = new LegacyPolicyResponse(); - - /** Model tests for LegacyPolicyResponse */ - @Test - void testLegacyPolicyResponse() { - // TODO: test LegacyPolicyResponse - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java deleted file mode 100644 index e0ce08f4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java +++ /dev/null @@ -1,45 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleAmountAggregation */ -class LegacyPolicyRuleAmountAggregationTest { - private final LegacyPolicyRuleAmountAggregation model = new LegacyPolicyRuleAmountAggregation(); - - /** Model tests for LegacyPolicyRuleAmountAggregation */ - @Test - void testLegacyPolicyRuleAmountAggregation() { - // TODO: test LegacyPolicyRuleAmountAggregation - } - - /** Test the property 'operators' */ - @Test - void operatorsTest() { - // TODO: test operators - } - - /** Test the property 'srcTransferPeers' */ - @Test - void srcTransferPeersTest() { - // TODO: test srcTransferPeers - } - - /** Test the property 'dstTransferPeers' */ - @Test - void dstTransferPeersTest() { - // TODO: test dstTransferPeers - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java deleted file mode 100644 index 464c9841..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java +++ /dev/null @@ -1,27 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleAmount */ -class LegacyPolicyRuleAmountTest { - private final LegacyPolicyRuleAmount model = new LegacyPolicyRuleAmount(); - - /** Model tests for LegacyPolicyRuleAmount */ - @Test - void testLegacyPolicyRuleAmount() { - // TODO: test LegacyPolicyRuleAmount - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java deleted file mode 100644 index 47c4462e..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java +++ /dev/null @@ -1,46 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */ -class LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest { - private final LegacyPolicyRuleAuthorizationGroupsGroupsInner model = - new LegacyPolicyRuleAuthorizationGroupsGroupsInner(); - - /** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */ - @Test - void testLegacyPolicyRuleAuthorizationGroupsGroupsInner() { - // TODO: test LegacyPolicyRuleAuthorizationGroupsGroupsInner - } - - /** Test the property 'users' */ - @Test - void usersTest() { - // TODO: test users - } - - /** Test the property 'usersGroups' */ - @Test - void usersGroupsTest() { - // TODO: test usersGroups - } - - /** Test the property 'th' */ - @Test - void thTest() { - // TODO: test th - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java deleted file mode 100644 index 75c6e4e7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java +++ /dev/null @@ -1,46 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleAuthorizationGroups */ -class LegacyPolicyRuleAuthorizationGroupsTest { - private final LegacyPolicyRuleAuthorizationGroups model = - new LegacyPolicyRuleAuthorizationGroups(); - - /** Model tests for LegacyPolicyRuleAuthorizationGroups */ - @Test - void testLegacyPolicyRuleAuthorizationGroups() { - // TODO: test LegacyPolicyRuleAuthorizationGroups - } - - /** Test the property 'logic' */ - @Test - void logicTest() { - // TODO: test logic - } - - /** Test the property 'allowOperatorAsAuthorizer' */ - @Test - void allowOperatorAsAuthorizerTest() { - // TODO: test allowOperatorAsAuthorizer - } - - /** Test the property 'groups' */ - @Test - void groupsTest() { - // TODO: test groups - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java deleted file mode 100644 index 2cd2d31d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java +++ /dev/null @@ -1,45 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleCheckResult */ -class LegacyPolicyRuleCheckResultTest { - private final LegacyPolicyRuleCheckResult model = new LegacyPolicyRuleCheckResult(); - - /** Model tests for LegacyPolicyRuleCheckResult */ - @Test - void testLegacyPolicyRuleCheckResult() { - // TODO: test LegacyPolicyRuleCheckResult - } - - /** Test the property 'index' */ - @Test - void indexTest() { - // TODO: test index - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'errors' */ - @Test - void errorsTest() { - // TODO: test errors - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java deleted file mode 100644 index de23c3ba..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java +++ /dev/null @@ -1,39 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleDesignatedSigners */ -class LegacyPolicyRuleDesignatedSignersTest { - private final LegacyPolicyRuleDesignatedSigners model = new LegacyPolicyRuleDesignatedSigners(); - - /** Model tests for LegacyPolicyRuleDesignatedSigners */ - @Test - void testLegacyPolicyRuleDesignatedSigners() { - // TODO: test LegacyPolicyRuleDesignatedSigners - } - - /** Test the property 'users' */ - @Test - void usersTest() { - // TODO: test users - } - - /** Test the property 'usersGroups' */ - @Test - void usersGroupsTest() { - // TODO: test usersGroups - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java deleted file mode 100644 index 24903274..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java +++ /dev/null @@ -1,33 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleDst */ -class LegacyPolicyRuleDstTest { - private final LegacyPolicyRuleDst model = new LegacyPolicyRuleDst(); - - /** Model tests for LegacyPolicyRuleDst */ - @Test - void testLegacyPolicyRuleDst() { - // TODO: test LegacyPolicyRuleDst - } - - /** Test the property 'ids' */ - @Test - void idsTest() { - // TODO: test ids - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java deleted file mode 100644 index 8c937fed..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java +++ /dev/null @@ -1,51 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleError */ -class LegacyPolicyRuleErrorTest { - private final LegacyPolicyRuleError model = new LegacyPolicyRuleError(); - - /** Model tests for LegacyPolicyRuleError */ - @Test - void testLegacyPolicyRuleError() { - // TODO: test LegacyPolicyRuleError - } - - /** Test the property 'errorMessage' */ - @Test - void errorMessageTest() { - // TODO: test errorMessage - } - - /** Test the property 'errorCode' */ - @Test - void errorCodeTest() { - // TODO: test errorCode - } - - /** Test the property 'errorCodeName' */ - @Test - void errorCodeNameTest() { - // TODO: test errorCodeName - } - - /** Test the property 'errorField' */ - @Test - void errorFieldTest() { - // TODO: test errorField - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java deleted file mode 100644 index ce3a8c3f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java +++ /dev/null @@ -1,51 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleOperators */ -class LegacyPolicyRuleOperatorsTest { - private final LegacyPolicyRuleOperators model = new LegacyPolicyRuleOperators(); - - /** Model tests for LegacyPolicyRuleOperators */ - @Test - void testLegacyPolicyRuleOperators() { - // TODO: test LegacyPolicyRuleOperators - } - - /** Test the property 'wildcard' */ - @Test - void wildcardTest() { - // TODO: test wildcard - } - - /** Test the property 'users' */ - @Test - void usersTest() { - // TODO: test users - } - - /** Test the property 'usersGroups' */ - @Test - void usersGroupsTest() { - // TODO: test usersGroups - } - - /** Test the property 'services' */ - @Test - void servicesTest() { - // TODO: test services - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java deleted file mode 100644 index 21b9512d..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java +++ /dev/null @@ -1,34 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleRawMessageSigningDerivationPath */ -class LegacyPolicyRuleRawMessageSigningDerivationPathTest { - private final LegacyPolicyRuleRawMessageSigningDerivationPath model = - new LegacyPolicyRuleRawMessageSigningDerivationPath(); - - /** Model tests for LegacyPolicyRuleRawMessageSigningDerivationPath */ - @Test - void testLegacyPolicyRuleRawMessageSigningDerivationPath() { - // TODO: test LegacyPolicyRuleRawMessageSigningDerivationPath - } - - /** Test the property 'path' */ - @Test - void pathTest() { - // TODO: test path - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java deleted file mode 100644 index 770253b7..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java +++ /dev/null @@ -1,39 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleRawMessageSigning */ -class LegacyPolicyRuleRawMessageSigningTest { - private final LegacyPolicyRuleRawMessageSigning model = new LegacyPolicyRuleRawMessageSigning(); - - /** Model tests for LegacyPolicyRuleRawMessageSigning */ - @Test - void testLegacyPolicyRuleRawMessageSigning() { - // TODO: test LegacyPolicyRuleRawMessageSigning - } - - /** Test the property 'algorithm' */ - @Test - void algorithmTest() { - // TODO: test algorithm - } - - /** Test the property 'derivationPath' */ - @Test - void derivationPathTest() { - // TODO: test derivationPath - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java deleted file mode 100644 index c3ecc5fb..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java +++ /dev/null @@ -1,33 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRuleSrc */ -class LegacyPolicyRuleSrcTest { - private final LegacyPolicyRuleSrc model = new LegacyPolicyRuleSrc(); - - /** Model tests for LegacyPolicyRuleSrc */ - @Test - void testLegacyPolicyRuleSrc() { - // TODO: test LegacyPolicyRuleSrc - } - - /** Test the property 'ids' */ - @Test - void idsTest() { - // TODO: test ids - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java deleted file mode 100644 index eeb9e0f3..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java +++ /dev/null @@ -1,201 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRule */ -class LegacyPolicyRuleTest { - private final LegacyPolicyRule model = new LegacyPolicyRule(); - - /** Model tests for LegacyPolicyRule */ - @Test - void testLegacyPolicyRule() { - // TODO: test LegacyPolicyRule - } - - /** Test the property 'operator' */ - @Test - void operatorTest() { - // TODO: test operator - } - - /** Test the property 'operators' */ - @Test - void operatorsTest() { - // TODO: test operators - } - - /** Test the property 'transactionType' */ - @Test - void transactionTypeTest() { - // TODO: test transactionType - } - - /** Test the property 'designatedSigner' */ - @Test - void designatedSignerTest() { - // TODO: test designatedSigner - } - - /** Test the property 'designatedSigners' */ - @Test - void designatedSignersTest() { - // TODO: test designatedSigners - } - - /** Test the property 'type' */ - @Test - void typeTest() { - // TODO: test type - } - - /** Test the property 'action' */ - @Test - void actionTest() { - // TODO: test action - } - - /** Test the property 'asset' */ - @Test - void assetTest() { - // TODO: test asset - } - - /** Test the property 'srcType' */ - @Test - void srcTypeTest() { - // TODO: test srcType - } - - /** Test the property 'srcSubType' */ - @Test - void srcSubTypeTest() { - // TODO: test srcSubType - } - - /** Test the property 'srcId' */ - @Test - void srcIdTest() { - // TODO: test srcId - } - - /** Test the property 'src' */ - @Test - void srcTest() { - // TODO: test src - } - - /** Test the property 'dstType' */ - @Test - void dstTypeTest() { - // TODO: test dstType - } - - /** Test the property 'dstSubType' */ - @Test - void dstSubTypeTest() { - // TODO: test dstSubType - } - - /** Test the property 'dstId' */ - @Test - void dstIdTest() { - // TODO: test dstId - } - - /** Test the property 'dst' */ - @Test - void dstTest() { - // TODO: test dst - } - - /** Test the property 'dstAddressType' */ - @Test - void dstAddressTypeTest() { - // TODO: test dstAddressType - } - - /** Test the property 'amountCurrency' */ - @Test - void amountCurrencyTest() { - // TODO: test amountCurrency - } - - /** Test the property 'amountScope' */ - @Test - void amountScopeTest() { - // TODO: test amountScope - } - - /** Test the property 'amount' */ - @Test - void amountTest() { - // TODO: test amount - } - - /** Test the property 'periodSec' */ - @Test - void periodSecTest() { - // TODO: test periodSec - } - - /** Test the property 'authorizers' */ - @Test - void authorizersTest() { - // TODO: test authorizers - } - - /** Test the property 'authorizersCount' */ - @Test - void authorizersCountTest() { - // TODO: test authorizersCount - } - - /** Test the property 'authorizationGroups' */ - @Test - void authorizationGroupsTest() { - // TODO: test authorizationGroups - } - - /** Test the property 'amountAggregation' */ - @Test - void amountAggregationTest() { - // TODO: test amountAggregation - } - - /** Test the property 'rawMessageSigning' */ - @Test - void rawMessageSigningTest() { - // TODO: test rawMessageSigning - } - - /** Test the property 'applyForApprove' */ - @Test - void applyForApproveTest() { - // TODO: test applyForApprove - } - - /** Test the property 'applyForTypedMessage' */ - @Test - void applyForTypedMessageTest() { - // TODO: test applyForTypedMessage - } - - /** Test the property 'externalDescriptor' */ - @Test - void externalDescriptorTest() { - // TODO: test externalDescriptor - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java deleted file mode 100644 index f6722507..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java +++ /dev/null @@ -1,33 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyRules */ -class LegacyPolicyRulesTest { - private final LegacyPolicyRules model = new LegacyPolicyRules(); - - /** Model tests for LegacyPolicyRules */ - @Test - void testLegacyPolicyRules() { - // TODO: test LegacyPolicyRules - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java deleted file mode 100644 index 246d9aa4..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java +++ /dev/null @@ -1,25 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicySrcOrDestSubType */ -class LegacyPolicySrcOrDestSubTypeTest { - /** Model tests for LegacyPolicySrcOrDestSubType */ - @Test - void testLegacyPolicySrcOrDestSubType() { - // TODO: test LegacyPolicySrcOrDestSubType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java deleted file mode 100644 index 17eaa673..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java +++ /dev/null @@ -1,25 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicySrcOrDestType */ -class LegacyPolicySrcOrDestTypeTest { - /** Model tests for LegacyPolicySrcOrDestType */ - @Test - void testLegacyPolicySrcOrDestType() { - // TODO: test LegacyPolicySrcOrDestType - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java deleted file mode 100644 index 400c6278..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java +++ /dev/null @@ -1,25 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyStatus */ -class LegacyPolicyStatusTest { - /** Model tests for LegacyPolicyStatus */ - @Test - void testLegacyPolicyStatus() { - // TODO: test LegacyPolicyStatus - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java deleted file mode 100644 index ff45e5ec..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java +++ /dev/null @@ -1,39 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPolicyValidation */ -class LegacyPolicyValidationTest { - private final LegacyPolicyValidation model = new LegacyPolicyValidation(); - - /** Model tests for LegacyPolicyValidation */ - @Test - void testLegacyPolicyValidation() { - // TODO: test LegacyPolicyValidation - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'checkResult' */ - @Test - void checkResultTest() { - // TODO: test checkResult - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java deleted file mode 100644 index 7ab43b3f..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java +++ /dev/null @@ -1,33 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPublishDraftRequest */ -class LegacyPublishDraftRequestTest { - private final LegacyPublishDraftRequest model = new LegacyPublishDraftRequest(); - - /** Model tests for LegacyPublishDraftRequest */ - @Test - void testLegacyPublishDraftRequest() { - // TODO: test LegacyPublishDraftRequest - } - - /** Test the property 'draftId' */ - @Test - void draftIdTest() { - // TODO: test draftId - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java deleted file mode 100644 index 74d827f1..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java +++ /dev/null @@ -1,51 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacyPublishResult */ -class LegacyPublishResultTest { - private final LegacyPublishResult model = new LegacyPublishResult(); - - /** Model tests for LegacyPublishResult */ - @Test - void testLegacyPublishResult() { - // TODO: test LegacyPublishResult - } - - /** Test the property 'status' */ - @Test - void statusTest() { - // TODO: test status - } - - /** Test the property 'rules' */ - @Test - void rulesTest() { - // TODO: test rules - } - - /** Test the property 'checkResult' */ - @Test - void checkResultTest() { - // TODO: test checkResult - } - - /** Test the property 'metadata' */ - @Test - void metadataTest() { - // TODO: test metadata - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java b/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java deleted file mode 100644 index 56437c93..00000000 --- a/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java +++ /dev/null @@ -1,27 +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 org.junit.jupiter.api.Test; - -/** Model tests for LegacySrcOrDestAttributesInner */ -class LegacySrcOrDestAttributesInnerTest { - private final LegacySrcOrDestAttributesInner model = new LegacySrcOrDestAttributesInner(); - - /** Model tests for LegacySrcOrDestAttributesInner */ - @Test - void testLegacySrcOrDestAttributesInner() { - // TODO: test LegacySrcOrDestAttributesInner - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java deleted file mode 100644 index d3e407aa..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java +++ /dev/null @@ -1,33 +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 org.junit.jupiter.api.Test; - -/** Model tests for SetAdminQuorumThresholdRequest */ -class SetAdminQuorumThresholdRequestTest { - private final SetAdminQuorumThresholdRequest model = new SetAdminQuorumThresholdRequest(); - - /** Model tests for SetAdminQuorumThresholdRequest */ - @Test - void testSetAdminQuorumThresholdRequest() { - // TODO: test SetAdminQuorumThresholdRequest - } - - /** Test the property 'adminQuorumThreshold' */ - @Test - void adminQuorumThresholdTest() { - // TODO: test adminQuorumThreshold - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java deleted file mode 100644 index 2b054d28..00000000 --- a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java +++ /dev/null @@ -1,33 +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 org.junit.jupiter.api.Test; - -/** Model tests for SetAdminQuorumThresholdResponse */ -class SetAdminQuorumThresholdResponseTest { - private final SetAdminQuorumThresholdResponse model = new SetAdminQuorumThresholdResponse(); - - /** Model tests for SetAdminQuorumThresholdResponse */ - @Test - void testSetAdminQuorumThresholdResponse() { - // TODO: test SetAdminQuorumThresholdResponse - } - - /** Test the property 'message' */ - @Test - void messageTest() { - // TODO: test message - } -} diff --git a/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java b/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java index 959320b7..2e6bfe2e 100644 --- a/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java @@ -49,6 +49,18 @@ void quoteAssetIdTest() { // TODO: test quoteAssetId } + /** Test the property 'baseSymbol' */ + @Test + void baseSymbolTest() { + // TODO: test baseSymbol + } + + /** Test the property 'quoteSymbol' */ + @Test + void quoteSymbolTest() { + // TODO: test quoteSymbol + } + /** Test the property 'baseChain' */ @Test void baseChainTest() {