From fd4ed6ddfc5d5b84fb630eadde814eb6c641399d Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Tue, 2 Jun 2026 11:42:48 +0000 Subject: [PATCH] Generated SDK #2839 --- CHANGELOG.md | 239 ------------------ README.md | 8 +- api/openapi.yaml | 89 ++++--- build.gradle | 2 +- docs/EarnBetaApi.md | 10 +- docs/TransactionRequest.md | 1 + docs/TransactionResponse.md | 1 + docs/VaultsApi.md | 6 +- docs/WebhookEvent.md | 52 ++++ pom.xml | 2 +- .../com/fireblocks/sdk/Configuration.java | 2 +- .../com/fireblocks/sdk/api/EarnBetaApi.java | 29 +-- .../com/fireblocks/sdk/api/VaultsApi.java | 9 +- .../sdk/model/TransactionRequest.java | 54 +++- .../sdk/model/TransactionResponse.java | 41 +++ .../fireblocks/sdk/model/WebhookEvent.java | 54 +++- .../fireblocks/sdk/api/EarnBetaApiTest.java | 14 +- .../com/fireblocks/sdk/api/VaultsApiTest.java | 12 +- .../sdk/model/TransactionRequestTest.java | 6 + .../sdk/model/TransactionResponseTest.java | 6 + 20 files changed, 309 insertions(+), 328 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 55d4459c..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). - -## [v19.1.0](https://github.com/fireblocks/java-sdk/compare/v15.0.0...v19.1.0) - 2026-05-27 - -### Merged - -- Generated SDK #2710 (minor) [`#135`](https://github.com/fireblocks/java-sdk/pull/135) - -## [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 bdf22a82..7adda738 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 19.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:19.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-19.1.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` @@ -237,7 +237,7 @@ Class | Method | HTTP request | Description *DeployedContractsApi* | [**getDeployedContractByAddress**](docs/DeployedContractsApi.md#getDeployedContractByAddress) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data *DeployedContractsApi* | [**getDeployedContractById**](docs/DeployedContractsApi.md#getDeployedContractById) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id *DeployedContractsApi* | [**getDeployedContracts**](docs/DeployedContractsApi.md#getDeployedContracts) | **GET** /tokenization/contracts | List deployed contracts data -*EarnBetaApi* | [**approveTermsOfService**](docs/EarnBetaApi.md#approveTermsOfService) | **POST** /earn/providers/{providerId}/approve_terms_of_service | Approve earn provider terms of service +*EarnBetaApi* | [**approveTermsOfService**](docs/EarnBetaApi.md#approveTermsOfService) | **POST** /earn/providers/approve_terms_of_service | Approve earn provider terms of service *EarnBetaApi* | [**createEarnAction**](docs/EarnBetaApi.md#createEarnAction) | **POST** /earn/actions | Create and execute a lending action (deposit or withdraw) *EarnBetaApi* | [**getEarnAction**](docs/EarnBetaApi.md#getEarnAction) | **GET** /earn/actions/{id} | Get a single earn lending action *EarnBetaApi* | [**getEarnActions**](docs/EarnBetaApi.md#getEarnActions) | **GET** /earn/actions | List earn lending actions diff --git a/api/openapi.yaml b/api/openapi.yaml index 5c296bfc..7af2511b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -997,7 +997,7 @@ paths: description: |- Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. -
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. operationId: getUsdcGatewayWalletInfoBeta parameters: - description: The ID of the vault account @@ -1054,10 +1054,8 @@ paths: post: description: |- Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. - - **Note:** This endpoint is currently in beta and might be subject to changes. - -
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + **Note:** This endpoint is currently in beta and might be subject to changes. + Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. operationId: activateUsdcGatewayWalletBeta parameters: - description: The ID of the vault account @@ -1128,10 +1126,8 @@ paths: post: description: |- Deactivates the USDC Gateway wallet associated with the given vault account. - - **Note:** This endpoint is currently in beta and might be subject to changes. - -
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + **Note:** This endpoint is currently in beta and might be subject to changes. + Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. operationId: deactivateUsdcGatewayWalletBeta parameters: - description: The ID of the vault account @@ -21519,29 +21515,17 @@ paths: \ sort_by, order);" x-accepts: - application/json - /earn/providers/{providerId}/approve_terms_of_service: + /earn/providers/approve_terms_of_service: post: description: | - Approves the lending provider's terms of service for this workspace. When - `isTermsApprovalRequired` is true on the provider (see list providers), - call this once before creating or executing earn actions with that provider. + Approves earn provider terms of service for this workspace (one-time per tenant). + When `isTermsApprovalRequired` is true on a provider (see list providers), + call this once before creating or executing earn actions with providers that require it. After success, `GET /earn/providers` reflects `isTermsOfServiceApproved`. **Note:** This endpoint is currently in beta and might be subject to changes. operationId: approveTermsOfService parameters: - - description: Stable protocol identifier for the earn provider (`MORPHO` or - `AAVE`). - explode: false - in: path - name: providerId - required: true - schema: - enum: - - MORPHO - - AAVE - type: string - style: simple - description: "A unique identifier for the request. If the request is sent\ \ multiple times with the same idempotency key, the server will return the\ \ same response as the first request. The idempotency key is valid for 24\ @@ -21619,22 +21603,18 @@ paths: code: "const response: Promise> = fireblocks.earnBeta.approveTermsOfService(earnBetaApiApproveTermsOfServiceRequest);" name: Fireblocks SDK TypeScript example - language: java - code: "CompletableFuture> response = fireblocks.earnBeta().approveTermsOfService(providerId,\ - \ idempotencyKey);" + code: CompletableFuture> response = fireblocks.earnBeta().approveTermsOfService(idempotencyKey); name: Fireblocks SDK Java example - language: python - code: "response = fireblocks.earn_beta.approve_terms_of_service(provider_id,\ - \ idempotency_key);" + code: response = fireblocks.earn_beta.approve_terms_of_service(idempotency_key); name: Fireblocks SDK Python example x-codeSamples: - lang: TypeScript source: "const response: Promise> = fireblocks.earnBeta.approveTermsOfService(earnBetaApiApproveTermsOfServiceRequest);" - lang: Java - source: "CompletableFuture> response = fireblocks.earnBeta().approveTermsOfService(providerId,\ - \ idempotencyKey);" + source: CompletableFuture> response = fireblocks.earnBeta().approveTermsOfService(idempotencyKey); - lang: Python - source: "response = fireblocks.earn_beta.approve_terms_of_service(provider_id,\ - \ idempotency_key);" + source: response = fireblocks.earn_beta.approve_terms_of_service(idempotency_key); x-accepts: - application/json /trading/providers: @@ -42662,6 +42642,7 @@ components: amount: 2.027123023002322 sourceAddress: sourceAddress netAmount: 4.145608029883936 + expiresAt: 1735689600000 systemMessages: - type: WARN message: Slow transaction processing. Outgoing transactions might be stuck. @@ -43397,6 +43378,11 @@ components: lastUpdated: description: "The transaction’s last update date and time, in unix timestamp." type: number + expiresAt: + description: "The transaction’s expiration date and time, in unix timestamp.\ + \ Only returned for transactions that have an expiration set." + example: 1735689600000 + type: number createdBy: description: User ID of the initiator of the transaction. type: string @@ -46396,6 +46382,7 @@ components: customerRefId: abcdef travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 useGasless: true + expiresAfterSeconds: 3600 travelRuleMessage: originatorRef: ORG123456 travelRuleBehaviorRef: TRB987654 @@ -47695,6 +47682,14 @@ components: useGasless: description: '- Override the default gasless configuration by sending true\false' type: boolean + expiresAfterSeconds: + description: "The number of seconds the transaction is valid for before\ + \ it expires. After the specified duration, the transaction will expire\ + \ if it has not been broadcasted." + example: 3600 + maximum: 86400 + minimum: 600 + type: number type: object CreateTransactionResponse: example: @@ -49614,6 +49609,7 @@ components: customerRefId: abcdef travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 useGasless: true + expiresAfterSeconds: 3600 travelRuleMessage: originatorRef: ORG123456 travelRuleBehaviorRef: TRB987654 @@ -50877,6 +50873,7 @@ components: customerRefId: abcdef travelRuleMessageId: trm_12345678-1234-1234-1234-123456789012 useGasless: true + expiresAfterSeconds: 3600 travelRuleMessage: originatorRef: ORG123456 travelRuleBehaviorRef: TRB987654 @@ -52223,6 +52220,7 @@ components: - vault_account.created - vault_account.asset.added - vault_account.asset.balance_updated + - vault_account.nft.balance_updated - embedded_wallet.status.updated - embedded_wallet.created - embedded_wallet.asset.balance_updated @@ -52234,6 +52232,31 @@ components: - connection.removed - connection.request.waiting_peer_approval - connection.request.rejected_by_peer + - exchange_account.connected + - fiat_account.connected + - connected_account.connected + - ticket.created + - ticket.submitted + - ticket.expired + - ticket.canceled + - ticket.fulfilled + - ticket.counterparty.added + - ticket.counterparty_external_id.set + - ticket.note.added + - ticket.expires_at.set + - ticket.expires_in.set + - ticket.term.added + - ticket.term.updated + - ticket.term.deleted + - ticket.term.funded + - ticket.term.manually_funded + - ticket.term.funding_canceled + - ticket.term.funding_failed + - ticket.term.funding_completed + - ticket.term.transaction_status_changed + - settlement.created + - order.updated + - automation_execution.update type: string Webhook: example: diff --git a/build.gradle b/build.gradle index 3c4082af..62baedca 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '19.1.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/EarnBetaApi.md b/docs/EarnBetaApi.md index af8c0884..5df33ef5 100644 --- a/docs/EarnBetaApi.md +++ b/docs/EarnBetaApi.md @@ -4,7 +4,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**approveTermsOfService**](EarnBetaApi.md#approveTermsOfService) | **POST** /earn/providers/{providerId}/approve_terms_of_service | Approve earn provider terms of service | +| [**approveTermsOfService**](EarnBetaApi.md#approveTermsOfService) | **POST** /earn/providers/approve_terms_of_service | Approve earn provider terms of service | | [**createEarnAction**](EarnBetaApi.md#createEarnAction) | **POST** /earn/actions | Create and execute a lending action (deposit or withdraw) | | [**getEarnAction**](EarnBetaApi.md#getEarnAction) | **GET** /earn/actions/{id} | Get a single earn lending action | | [**getEarnActions**](EarnBetaApi.md#getEarnActions) | **GET** /earn/actions | List earn lending actions | @@ -16,11 +16,11 @@ All URIs are relative to https://developers.fireblocks.com/reference/ ## approveTermsOfService -> CompletableFuture> approveTermsOfService approveTermsOfService(providerId, idempotencyKey) +> CompletableFuture> approveTermsOfService approveTermsOfService(idempotencyKey) Approve earn provider terms of service -Approves the lending provider's terms of service for this workspace. When `isTermsApprovalRequired` is true on the provider (see list providers), call this once before creating or executing earn actions with that provider. After success, `GET /earn/providers` reflects `isTermsOfServiceApproved`. **Note:** This endpoint is currently in beta and might be subject to changes. +Approves earn provider terms of service for this workspace (one-time per tenant). When `isTermsApprovalRequired` is true on a provider (see list providers), call this once before creating or executing earn actions with providers that require it. After success, `GET /earn/providers` reflects `isTermsOfServiceApproved`. **Note:** This endpoint is currently in beta and might be subject to changes. ### Example @@ -45,10 +45,9 @@ public class Example { .secretKey("my-secret-key"); Fireblocks fireblocks = new Fireblocks(configurationOptions); - String providerId = "MORPHO"; // String | Stable protocol identifier for the earn provider (`MORPHO` or `AAVE`). 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.earnBeta().approveTermsOfService(providerId, idempotencyKey); + CompletableFuture> response = fireblocks.earnBeta().approveTermsOfService(idempotencyKey); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); } catch (InterruptedException | ExecutionException e) { @@ -74,7 +73,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **providerId** | **String**| Stable protocol identifier for the earn provider (`MORPHO` or `AAVE`). | [enum: MORPHO, AAVE] | | **idempotencyKey** | **String**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] | ### Return type diff --git a/docs/TransactionRequest.md b/docs/TransactionRequest.md index 828c2373..5c605823 100644 --- a/docs/TransactionRequest.md +++ b/docs/TransactionRequest.md @@ -36,6 +36,7 @@ |**networkStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] | |**cpuStaking** | [**TransactionRequestNetworkStaking**](TransactionRequestNetworkStaking.md) | | [optional] | |**useGasless** | **Boolean** | - Override the default gasless configuration by sending true\\false | [optional] | +|**expiresAfterSeconds** | **BigDecimal** | The number of seconds the transaction is valid for before it expires. After the specified duration, the transaction will expire if it has not been broadcasted. | [optional] | diff --git a/docs/TransactionResponse.md b/docs/TransactionResponse.md index a9cca01c..680e6aaf 100644 --- a/docs/TransactionResponse.md +++ b/docs/TransactionResponse.md @@ -32,6 +32,7 @@ |**networkRecords** | [**List<NetworkRecord>**](NetworkRecord.md) | In case a single transaction resulted with multiple transfers, for example a result of a contract call, then this parameter specifies each transfer that took place on the blockchain. In case of a single transfer transaction, this parameter is empty. | [optional] | |**createdAt** | **BigDecimal** | The transaction’s creation date and time, in unix timestamp. | [optional] | |**lastUpdated** | **BigDecimal** | The transaction’s last update date and time, in unix timestamp. | [optional] | +|**expiresAt** | **BigDecimal** | The transaction’s expiration date and time, in unix timestamp. Only returned for transactions that have an expiration set. | [optional] | |**createdBy** | **String** | User ID of the initiator of the transaction. | [optional] | |**signedBy** | **List<String>** | User ID’s of the signers of the transaction. | [optional] | |**rejectedBy** | **String** | User ID of the user that rejected the transaction (in case it was rejected). | [optional] | diff --git a/docs/VaultsApi.md b/docs/VaultsApi.md index df682a7d..d1a9502e 100644 --- a/docs/VaultsApi.md +++ b/docs/VaultsApi.md @@ -136,7 +136,7 @@ No authorization required Activate a USDC Gateway wallet -Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. **Note:** This endpoint is currently in beta and might be subject to changes. </br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. +Activates the USDC Gateway wallet associated with the given vault account. If the wallet does not yet exist it is created in an activated state. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. ### Example @@ -831,7 +831,7 @@ No authorization required Deactivate a USDC Gateway wallet -Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. </br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. +Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. ### Example @@ -1711,7 +1711,7 @@ No authorization required Get USDC Gateway wallet info -Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. </br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. +Returns the USDC Gateway wallet information associated with the given vault account. **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. ### Example diff --git a/docs/WebhookEvent.md b/docs/WebhookEvent.md index 78f01547..1e20a852 100644 --- a/docs/WebhookEvent.md +++ b/docs/WebhookEvent.md @@ -31,6 +31,8 @@ * `VAULT_ACCOUNT_ASSET_BALANCE_UPDATED` (value: `"vault_account.asset.balance_updated"`) +* `VAULT_ACCOUNT_NFT_BALANCE_UPDATED` (value: `"vault_account.nft.balance_updated"`) + * `EMBEDDED_WALLET_STATUS_UPDATED` (value: `"embedded_wallet.status.updated"`) * `EMBEDDED_WALLET_CREATED` (value: `"embedded_wallet.created"`) @@ -53,5 +55,55 @@ * `CONNECTION_REQUEST_REJECTED_BY_PEER` (value: `"connection.request.rejected_by_peer"`) +* `EXCHANGE_ACCOUNT_CONNECTED` (value: `"exchange_account.connected"`) + +* `FIAT_ACCOUNT_CONNECTED` (value: `"fiat_account.connected"`) + +* `CONNECTED_ACCOUNT_CONNECTED` (value: `"connected_account.connected"`) + +* `TICKET_CREATED` (value: `"ticket.created"`) + +* `TICKET_SUBMITTED` (value: `"ticket.submitted"`) + +* `TICKET_EXPIRED` (value: `"ticket.expired"`) + +* `TICKET_CANCELED` (value: `"ticket.canceled"`) + +* `TICKET_FULFILLED` (value: `"ticket.fulfilled"`) + +* `TICKET_COUNTERPARTY_ADDED` (value: `"ticket.counterparty.added"`) + +* `TICKET_COUNTERPARTY_EXTERNAL_ID_SET` (value: `"ticket.counterparty_external_id.set"`) + +* `TICKET_NOTE_ADDED` (value: `"ticket.note.added"`) + +* `TICKET_EXPIRES_AT_SET` (value: `"ticket.expires_at.set"`) + +* `TICKET_EXPIRES_IN_SET` (value: `"ticket.expires_in.set"`) + +* `TICKET_TERM_ADDED` (value: `"ticket.term.added"`) + +* `TICKET_TERM_UPDATED` (value: `"ticket.term.updated"`) + +* `TICKET_TERM_DELETED` (value: `"ticket.term.deleted"`) + +* `TICKET_TERM_FUNDED` (value: `"ticket.term.funded"`) + +* `TICKET_TERM_MANUALLY_FUNDED` (value: `"ticket.term.manually_funded"`) + +* `TICKET_TERM_FUNDING_CANCELED` (value: `"ticket.term.funding_canceled"`) + +* `TICKET_TERM_FUNDING_FAILED` (value: `"ticket.term.funding_failed"`) + +* `TICKET_TERM_FUNDING_COMPLETED` (value: `"ticket.term.funding_completed"`) + +* `TICKET_TERM_TRANSACTION_STATUS_CHANGED` (value: `"ticket.term.transaction_status_changed"`) + +* `SETTLEMENT_CREATED` (value: `"settlement.created"`) + +* `ORDER_UPDATED` (value: `"order.updated"`) + +* `AUTOMATION_EXECUTION_UPDATE` (value: `"automation_execution.update"`) + diff --git a/pom.xml b/pom.xml index e1517161..89176ce6 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 19.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 67acff1f..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 = "19.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/api/EarnBetaApi.java b/src/main/java/com/fireblocks/sdk/api/EarnBetaApi.java index c7980f3f..41b88ad5 100644 --- a/src/main/java/com/fireblocks/sdk/api/EarnBetaApi.java +++ b/src/main/java/com/fireblocks/sdk/api/EarnBetaApi.java @@ -81,25 +81,24 @@ private String formatExceptionMessage(String operationId, int statusCode, String } /** - * Approve earn provider terms of service Approves the lending provider's terms of service - * for this workspace. When `isTermsApprovalRequired` is true on the provider (see - * list providers), call this once before creating or executing earn actions with that provider. - * After success, `GET /earn/providers` reflects `isTermsOfServiceApproved`. - * **Note:** This endpoint is currently in beta and might be subject to changes. + * Approve earn provider terms of service Approves earn provider terms of service for this + * workspace (one-time per tenant). When `isTermsApprovalRequired` is true on a + * provider (see list providers), call this once before creating or executing earn actions with + * providers that require it. After success, `GET /earn/providers` reflects + * `isTermsOfServiceApproved`. **Note:** This endpoint is currently in beta and might + * be subject to changes. * - * @param providerId Stable protocol identifier for the earn provider (`MORPHO` or - * `AAVE`). (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<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> approveTermsOfService( - String providerId, String idempotencyKey) throws ApiException { + public CompletableFuture> approveTermsOfService(String idempotencyKey) + throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = - approveTermsOfServiceRequestBuilder(providerId, idempotencyKey); + approveTermsOfServiceRequestBuilder(idempotencyKey); return memberVarHttpClient .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) .thenComposeAsync( @@ -123,16 +122,12 @@ public CompletableFuture> approveTermsOfService( } } - private HttpRequest.Builder approveTermsOfServiceRequestBuilder( - String providerId, String idempotencyKey) throws ApiException { - ValidationUtils.assertParamExistsAndNotEmpty( - "approveTermsOfService", "providerId", providerId); + private HttpRequest.Builder approveTermsOfServiceRequestBuilder(String idempotencyKey) + throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = - "/earn/providers/{providerId}/approve_terms_of_service" - .replace("{providerId}", ApiClient.urlEncode(providerId.toString())); + String localVarPath = "/earn/providers/approve_terms_of_service"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); diff --git a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java index 0dd5d0a5..01f02242 100644 --- a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java @@ -220,8 +220,8 @@ private HttpRequest.Builder activateAssetForVaultAccountRequestBuilder( /** * Activate a USDC Gateway wallet Activates the USDC Gateway wallet associated with the given * vault account. If the wallet does not yet exist it is created in an activated state. - * **Note:** This endpoint is currently in beta and might be subject to changes. - * </br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + * **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver. * * @param vaultAccountId The ID of the vault account (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -974,7 +974,7 @@ private HttpRequest.Builder createVaultAccountAssetAddressRequestBuilder( /** * Deactivate a USDC Gateway wallet Deactivates the USDC Gateway wallet associated with the * given vault account. **Note:** This endpoint is currently in beta and might be subject to - * changes. </br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. + * changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver. * * @param vaultAccountId The ID of the vault account (required) * @param idempotencyKey A unique identifier for the request. If the request is sent multiple @@ -1911,8 +1911,7 @@ private HttpRequest.Builder getUnspentInputsRequestBuilder( /** * Get USDC Gateway wallet info Returns the USDC Gateway wallet information associated with the * given vault account. **Note:** This endpoint is currently in beta and might be subject to - * changes. </br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, - * Viewer. + * changes. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * * @param vaultAccountId The ID of the vault account (required) * @return CompletableFuture<ApiResponse<UsdcGatewayWalletInfoResponse>> diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java index 51d370ce..eabdce3f 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java @@ -19,6 +19,7 @@ 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; @@ -54,7 +55,8 @@ TransactionRequest.JSON_PROPERTY_AUTO_STAKING, TransactionRequest.JSON_PROPERTY_NETWORK_STAKING, TransactionRequest.JSON_PROPERTY_CPU_STAKING, - TransactionRequest.JSON_PROPERTY_USE_GASLESS + TransactionRequest.JSON_PROPERTY_USE_GASLESS, + TransactionRequest.JSON_PROPERTY_EXPIRES_AFTER_SECONDS }) @jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -187,6 +189,9 @@ public static FeeLevelEnum fromValue(String value) { public static final String JSON_PROPERTY_USE_GASLESS = "useGasless"; @jakarta.annotation.Nullable private Boolean useGasless; + public static final String JSON_PROPERTY_EXPIRES_AFTER_SECONDS = "expiresAfterSeconds"; + @jakarta.annotation.Nullable private BigDecimal expiresAfterSeconds; + public TransactionRequest() {} public TransactionRequest operation( @@ -919,6 +924,33 @@ public void setUseGasless(@jakarta.annotation.Nullable Boolean useGasless) { this.useGasless = useGasless; } + public TransactionRequest expiresAfterSeconds( + @jakarta.annotation.Nullable BigDecimal expiresAfterSeconds) { + this.expiresAfterSeconds = expiresAfterSeconds; + return this; + } + + /** + * The number of seconds the transaction is valid for before it expires. After the specified + * duration, the transaction will expire if it has not been broadcasted. minimum: 600 maximum: + * 86400 + * + * @return expiresAfterSeconds + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXPIRES_AFTER_SECONDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getExpiresAfterSeconds() { + return expiresAfterSeconds; + } + + @JsonProperty(JSON_PROPERTY_EXPIRES_AFTER_SECONDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExpiresAfterSeconds( + @jakarta.annotation.Nullable BigDecimal expiresAfterSeconds) { + this.expiresAfterSeconds = expiresAfterSeconds; + } + /** Return true if this TransactionRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -957,7 +989,8 @@ public boolean equals(Object o) { && Objects.equals(this.autoStaking, transactionRequest.autoStaking) && Objects.equals(this.networkStaking, transactionRequest.networkStaking) && Objects.equals(this.cpuStaking, transactionRequest.cpuStaking) - && Objects.equals(this.useGasless, transactionRequest.useGasless); + && Objects.equals(this.useGasless, transactionRequest.useGasless) + && Objects.equals(this.expiresAfterSeconds, transactionRequest.expiresAfterSeconds); } @Override @@ -991,7 +1024,8 @@ public int hashCode() { autoStaking, networkStaking, cpuStaking, - useGasless); + useGasless, + expiresAfterSeconds); } @Override @@ -1035,6 +1069,9 @@ public String toString() { sb.append(" networkStaking: ").append(toIndentedString(networkStaking)).append("\n"); sb.append(" cpuStaking: ").append(toIndentedString(cpuStaking)).append("\n"); sb.append(" useGasless: ").append(toIndentedString(useGasless)).append("\n"); + sb.append(" expiresAfterSeconds: ") + .append(toIndentedString(expiresAfterSeconds)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -1329,6 +1366,17 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getUseGasless())))); } + // add `expiresAfterSeconds` to the URL query string + if (getExpiresAfterSeconds() != null) { + joiner.add( + String.format( + "%sexpiresAfterSeconds%s=%s", + prefix, + suffix, + ApiClient.urlEncode( + ApiClient.valueToString(getExpiresAfterSeconds())))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java index 7dd12fa0..ffd3f96b 100644 --- a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java @@ -52,6 +52,7 @@ TransactionResponse.JSON_PROPERTY_NETWORK_RECORDS, TransactionResponse.JSON_PROPERTY_CREATED_AT, TransactionResponse.JSON_PROPERTY_LAST_UPDATED, + TransactionResponse.JSON_PROPERTY_EXPIRES_AT, TransactionResponse.JSON_PROPERTY_CREATED_BY, TransactionResponse.JSON_PROPERTY_SIGNED_BY, TransactionResponse.JSON_PROPERTY_REJECTED_BY, @@ -169,6 +170,9 @@ public class TransactionResponse { public static final String JSON_PROPERTY_LAST_UPDATED = "lastUpdated"; @jakarta.annotation.Nullable private BigDecimal lastUpdated; + public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; + @jakarta.annotation.Nullable private BigDecimal expiresAt; + public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; @jakarta.annotation.Nullable private String createdBy; @@ -956,6 +960,30 @@ public void setLastUpdated(@jakarta.annotation.Nullable BigDecimal lastUpdated) this.lastUpdated = lastUpdated; } + public TransactionResponse expiresAt(@jakarta.annotation.Nullable BigDecimal expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + /** + * The transaction’s expiration date and time, in unix timestamp. Only returned for transactions + * that have an expiration set. + * + * @return expiresAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getExpiresAt() { + return expiresAt; + } + + @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExpiresAt(@jakarta.annotation.Nullable BigDecimal expiresAt) { + this.expiresAt = expiresAt; + } + public TransactionResponse createdBy(@jakarta.annotation.Nullable String createdBy) { this.createdBy = createdBy; return this; @@ -1848,6 +1876,7 @@ public boolean equals(Object o) { && Objects.equals(this.networkRecords, transactionResponse.networkRecords) && Objects.equals(this.createdAt, transactionResponse.createdAt) && Objects.equals(this.lastUpdated, transactionResponse.lastUpdated) + && Objects.equals(this.expiresAt, transactionResponse.expiresAt) && Objects.equals(this.createdBy, transactionResponse.createdBy) && Objects.equals(this.signedBy, transactionResponse.signedBy) && Objects.equals(this.rejectedBy, transactionResponse.rejectedBy) @@ -1913,6 +1942,7 @@ public int hashCode() { networkRecords, createdAt, lastUpdated, + expiresAt, createdBy, signedBy, rejectedBy, @@ -1986,6 +2016,7 @@ public String toString() { sb.append(" networkRecords: ").append(toIndentedString(networkRecords)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" lastUpdated: ").append(toIndentedString(lastUpdated)).append("\n"); + sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" signedBy: ").append(toIndentedString(signedBy)).append("\n"); sb.append(" rejectedBy: ").append(toIndentedString(rejectedBy)).append("\n"); @@ -2331,6 +2362,16 @@ public String toUrlQueryString(String prefix) { ApiClient.urlEncode(ApiClient.valueToString(getLastUpdated())))); } + // add `expiresAt` to the URL query string + if (getExpiresAt() != null) { + joiner.add( + String.format( + "%sexpiresAt%s=%s", + prefix, + suffix, + ApiClient.urlEncode(ApiClient.valueToString(getExpiresAt())))); + } + // add `createdBy` to the URL query string if (getCreatedBy() != null) { joiner.add( diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java b/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java index 8c365f72..ce434034 100644 --- a/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java +++ b/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java @@ -45,6 +45,8 @@ public enum WebhookEvent { VAULT_ACCOUNT_ASSET_BALANCE_UPDATED("vault_account.asset.balance_updated"), + VAULT_ACCOUNT_NFT_BALANCE_UPDATED("vault_account.nft.balance_updated"), + EMBEDDED_WALLET_STATUS_UPDATED("embedded_wallet.status.updated"), EMBEDDED_WALLET_CREATED("embedded_wallet.created"), @@ -65,7 +67,57 @@ public enum WebhookEvent { CONNECTION_REQUEST_WAITING_PEER_APPROVAL("connection.request.waiting_peer_approval"), - CONNECTION_REQUEST_REJECTED_BY_PEER("connection.request.rejected_by_peer"); + CONNECTION_REQUEST_REJECTED_BY_PEER("connection.request.rejected_by_peer"), + + EXCHANGE_ACCOUNT_CONNECTED("exchange_account.connected"), + + FIAT_ACCOUNT_CONNECTED("fiat_account.connected"), + + CONNECTED_ACCOUNT_CONNECTED("connected_account.connected"), + + TICKET_CREATED("ticket.created"), + + TICKET_SUBMITTED("ticket.submitted"), + + TICKET_EXPIRED("ticket.expired"), + + TICKET_CANCELED("ticket.canceled"), + + TICKET_FULFILLED("ticket.fulfilled"), + + TICKET_COUNTERPARTY_ADDED("ticket.counterparty.added"), + + TICKET_COUNTERPARTY_EXTERNAL_ID_SET("ticket.counterparty_external_id.set"), + + TICKET_NOTE_ADDED("ticket.note.added"), + + TICKET_EXPIRES_AT_SET("ticket.expires_at.set"), + + TICKET_EXPIRES_IN_SET("ticket.expires_in.set"), + + TICKET_TERM_ADDED("ticket.term.added"), + + TICKET_TERM_UPDATED("ticket.term.updated"), + + TICKET_TERM_DELETED("ticket.term.deleted"), + + TICKET_TERM_FUNDED("ticket.term.funded"), + + TICKET_TERM_MANUALLY_FUNDED("ticket.term.manually_funded"), + + TICKET_TERM_FUNDING_CANCELED("ticket.term.funding_canceled"), + + TICKET_TERM_FUNDING_FAILED("ticket.term.funding_failed"), + + TICKET_TERM_FUNDING_COMPLETED("ticket.term.funding_completed"), + + TICKET_TERM_TRANSACTION_STATUS_CHANGED("ticket.term.transaction_status_changed"), + + SETTLEMENT_CREATED("settlement.created"), + + ORDER_UPDATED("order.updated"), + + AUTOMATION_EXECUTION_UPDATE("automation_execution.update"); private String value; diff --git a/src/test/java/com/fireblocks/sdk/api/EarnBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/EarnBetaApiTest.java index 9a109ac7..4f873f40 100644 --- a/src/test/java/com/fireblocks/sdk/api/EarnBetaApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/EarnBetaApiTest.java @@ -35,21 +35,19 @@ public class EarnBetaApiTest { /** * Approve earn provider terms of service * - *

Approves the lending provider's terms of service for this workspace. When - * `isTermsApprovalRequired` is true on the provider (see list providers), call this - * once before creating or executing earn actions with that provider. After success, `GET - * /earn/providers` reflects `isTermsOfServiceApproved`. **Note:** This endpoint - * is currently in beta and might be subject to changes. + *

Approves earn provider terms of service for this workspace (one-time per tenant). When + * `isTermsApprovalRequired` is true on a provider (see list providers), call this + * once before creating or executing earn actions with providers that require it. After success, + * `GET /earn/providers` reflects `isTermsOfServiceApproved`. **Note:** This + * endpoint is currently in beta and might be subject to changes. * * @throws ApiException if the Api call fails */ @Test public void approveTermsOfServiceTest() throws ApiException { - String providerId = null; String idempotencyKey = null; - CompletableFuture> response = - api.approveTermsOfService(providerId, idempotencyKey); + CompletableFuture> response = api.approveTermsOfService(idempotencyKey); } /** diff --git a/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java b/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java index 54b90725..4ed2281e 100644 --- a/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/VaultsApiTest.java @@ -84,8 +84,8 @@ public void activateAssetForVaultAccountTest() throws ApiException { * *

Activates the USDC Gateway wallet associated with the given vault account. If the wallet * does not yet exist it is created in an activated state. **Note:** This endpoint is currently - * in beta and might be subject to changes. </br>Endpoint Permission: Admin, Non-Signing - * Admin, Signer, Approver. + * in beta and might be subject to changes. Endpoint Permission: Admin, Non-Signing Admin, + * Signer, Approver. * * @throws ApiException if the Api call fails */ @@ -240,8 +240,8 @@ public void createVaultAccountAssetAddressTest() throws ApiException { * Deactivate a USDC Gateway wallet * *

Deactivates the USDC Gateway wallet associated with the given vault account. **Note:** - * This endpoint is currently in beta and might be subject to changes. </br>Endpoint - * Permission: Admin, Non-Signing Admin, Signer, Approver. + * This endpoint is currently in beta and might be subject to changes. Endpoint Permission: + * Admin, Non-Signing Admin, Signer, Approver. * * @throws ApiException if the Api call fails */ @@ -433,8 +433,8 @@ public void getUnspentInputsTest() throws ApiException { * Get USDC Gateway wallet info * *

Returns the USDC Gateway wallet information associated with the given vault account. - * **Note:** This endpoint is currently in beta and might be subject to changes. - * </br>Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. + * **Note:** This endpoint is currently in beta and might be subject to changes. Endpoint + * Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java index 0366692d..5537a028 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java @@ -198,4 +198,10 @@ void cpuStakingTest() { void useGaslessTest() { // TODO: test useGasless } + + /** Test the property 'expiresAfterSeconds' */ + @Test + void expiresAfterSecondsTest() { + // TODO: test expiresAfterSeconds + } } diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java index 83c0c075..b596a686 100644 --- a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java @@ -175,6 +175,12 @@ void lastUpdatedTest() { // TODO: test lastUpdated } + /** Test the property 'expiresAt' */ + @Test + void expiresAtTest() { + // TODO: test expiresAt + } + /** Test the property 'createdBy' */ @Test void createdByTest() {