com.auth0
java-jwt
@@ -272,9 +271,10 @@ Whether you're working on a cryptocurrency exchange, wallet application, or
UTF-8
11
11
- 2.15.2
+ 2.17.1
0.2.6
- 2.1.1
+ 2.1.1
+ 3.0.2
4.13.2
2.27.2
4.1.0
diff --git a/src/main/java/com/fireblocks/sdk/ApiClient.java b/src/main/java/com/fireblocks/sdk/ApiClient.java
index b94a0ea1..b00ef939 100644
--- a/src/main/java/com/fireblocks/sdk/ApiClient.java
+++ b/src/main/java/com/fireblocks/sdk/ApiClient.java
@@ -49,22 +49,24 @@
* The setter methods of this class return the current object to facilitate a fluent style of
* configuration.
*/
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ApiClient {
- private HttpClient.Builder builder;
- private ObjectMapper mapper;
- private String scheme;
- private String host;
- private int port;
- private String basePath;
- private Consumer interceptor;
- private Consumer> responseInterceptor;
- private Consumer> asyncResponseInterceptor;
- private Duration readTimeout;
- private Duration connectTimeout;
-
- private static String valueToString(Object value) {
+ protected HttpClient.Builder builder;
+ protected ObjectMapper mapper;
+ protected String scheme;
+ protected String host;
+ protected int port;
+ protected String basePath;
+ protected Consumer interceptor;
+ protected Consumer> responseInterceptor;
+ protected Consumer> asyncResponseInterceptor;
+ protected Duration readTimeout;
+ protected Duration connectTimeout;
+
+ public static String valueToString(Object value) {
if (value == null) {
return "";
}
@@ -185,7 +187,7 @@ public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri
asyncResponseInterceptor = null;
}
- protected ObjectMapper createDefaultObjectMapper() {
+ public static ObjectMapper createDefaultObjectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
@@ -195,6 +197,7 @@ protected ObjectMapper createDefaultObjectMapper() {
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE);
mapper.registerModule(new JavaTimeModule());
+ mapper.registerModule(new RFC3339JavaTimeModule());
return mapper;
}
@@ -202,11 +205,11 @@ protected String getDefaultBaseUri() {
return "https://api.fireblocks.io/v1";
}
- protected HttpClient.Builder createDefaultHttpClientBuilder() {
+ public static HttpClient.Builder createDefaultHttpClientBuilder() {
return HttpClient.newBuilder();
}
- public void updateBaseUri(String baseUri) {
+ public final void updateBaseUri(String baseUri) {
URI uri = URI.create(baseUri);
scheme = uri.getScheme();
host = uri.getHost();
diff --git a/src/main/java/com/fireblocks/sdk/ApiException.java b/src/main/java/com/fireblocks/sdk/ApiException.java
index 8ec0848e..9fa8b6db 100644
--- a/src/main/java/com/fireblocks/sdk/ApiException.java
+++ b/src/main/java/com/fireblocks/sdk/ApiException.java
@@ -15,7 +15,9 @@
import java.net.http.HttpHeaders;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;
diff --git a/src/main/java/com/fireblocks/sdk/ApiResponse.java b/src/main/java/com/fireblocks/sdk/ApiResponse.java
index 41ce035c..cc9a0529 100644
--- a/src/main/java/com/fireblocks/sdk/ApiResponse.java
+++ b/src/main/java/com/fireblocks/sdk/ApiResponse.java
@@ -21,6 +21,9 @@
*
* @param The type of data that is deserialized from response body
*/
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ApiResponse {
private final int statusCode;
private final Map> headers;
diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java
index 315a6d82..19e09ed9 100644
--- a/src/main/java/com/fireblocks/sdk/Configuration.java
+++ b/src/main/java/com/fireblocks/sdk/Configuration.java
@@ -12,11 +12,19 @@
package com.fireblocks.sdk;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+
+import java.util.Objects;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Supplier;
+
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class Configuration {
- public static final String VERSION = "11.2.0";
+ public static final String VERSION = "0.0.0";
- private static ApiClient defaultApiClient = new ApiClient();
+ private static final AtomicReference defaultApiClient = new AtomicReference<>();
+ private static volatile Supplier apiClientFactory = ApiClient::new;
/**
* Get the default API client, which would be used when creating API instances without providing
@@ -25,7 +33,18 @@ public class Configuration {
* @return Default API client
*/
public static ApiClient getDefaultApiClient() {
- return defaultApiClient;
+ ApiClient client = defaultApiClient.get();
+ if (client == null) {
+ client =
+ defaultApiClient.updateAndGet(
+ val -> {
+ if (val != null) { // changed by another thread
+ return val;
+ }
+ return apiClientFactory.get();
+ });
+ }
+ return client;
}
/**
@@ -35,6 +54,13 @@ public static ApiClient getDefaultApiClient() {
* @param apiClient API client
*/
public static void setDefaultApiClient(ApiClient apiClient) {
- defaultApiClient = apiClient;
+ defaultApiClient.set(apiClient);
}
+
+ /** set the callback used to create new ApiClient objects */
+ public static void setApiClientFactory(Supplier factory) {
+ apiClientFactory = Objects.requireNonNull(factory);
+ }
+
+ private Configuration() {}
}
diff --git a/src/main/java/com/fireblocks/sdk/Fireblocks.java b/src/main/java/com/fireblocks/sdk/Fireblocks.java
index 997f028d..372e4646 100644
--- a/src/main/java/com/fireblocks/sdk/Fireblocks.java
+++ b/src/main/java/com/fireblocks/sdk/Fireblocks.java
@@ -63,6 +63,7 @@ public class Fireblocks {
private OtaBetaApi otaBeta;
private PaymentsPayoutApi paymentsPayout;
private PolicyEditorBetaApi policyEditorBeta;
+ private PolicyEditorV2BetaApi policyEditorV2Beta;
private ResetDeviceApi resetDevice;
private SmartTransferApi smartTransfer;
private StakingApi staking;
@@ -407,6 +408,13 @@ public PolicyEditorBetaApi policyEditorBeta() {
return policyEditorBeta;
}
+ public PolicyEditorV2BetaApi policyEditorV2Beta() {
+ if (policyEditorV2Beta == null) {
+ policyEditorV2Beta = new PolicyEditorV2BetaApi(apiClient);
+ }
+ return policyEditorV2Beta;
+ }
+
public ResetDeviceApi resetDevice() {
if (resetDevice == null) {
resetDevice = new ResetDeviceApi(apiClient);
diff --git a/src/main/java/com/fireblocks/sdk/JSON.java b/src/main/java/com/fireblocks/sdk/JSON.java
index 11ae4788..c25f82ce 100644
--- a/src/main/java/com/fireblocks/sdk/JSON.java
+++ b/src/main/java/com/fireblocks/sdk/JSON.java
@@ -1,3 +1,15 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@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;
@@ -12,7 +24,9 @@
import java.util.Map;
import java.util.Set;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class JSON {
private ObjectMapper mapper;
@@ -21,7 +35,7 @@ public JSON() {
JsonMapper.builder()
.serializationInclusion(JsonInclude.Include.NON_NULL)
.disable(MapperFeature.ALLOW_COERCION_OF_SCALARS)
- .enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
+ .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE)
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING)
@@ -66,6 +80,9 @@ public static Class> getClassForElement(JsonNode node, Class> modelClass) {
}
/** Helper class to register the discriminator mappings. */
+ @jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
private static class ClassDiscriminatorMapping {
// The model class name.
Class> modelClass;
diff --git a/src/main/java/com/fireblocks/sdk/Pair.java b/src/main/java/com/fireblocks/sdk/Pair.java
index e69b9e82..23bb7a3f 100644
--- a/src/main/java/com/fireblocks/sdk/Pair.java
+++ b/src/main/java/com/fireblocks/sdk/Pair.java
@@ -12,7 +12,9 @@
package com.fireblocks.sdk;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class Pair {
private String name = "";
private String value = "";
diff --git a/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java b/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java
index 1b1cca55..ff976672 100644
--- a/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java
+++ b/src/main/java/com/fireblocks/sdk/RFC3339DateFormat.java
@@ -22,6 +22,9 @@
import java.util.GregorianCalendar;
import java.util.TimeZone;
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class RFC3339DateFormat extends DateFormat {
private static final long serialVersionUID = 1L;
private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");
diff --git a/src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java b/src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java
new file mode 100644
index 00000000..5f00d70d
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/RFC3339InstantDeserializer.java
@@ -0,0 +1,112 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@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;
+
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature;
+import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer;
+import java.io.IOException;
+import java.time.Instant;
+import java.time.OffsetDateTime;
+import java.time.ZoneId;
+import java.time.ZonedDateTime;
+import java.time.format.DateTimeFormatter;
+import java.time.temporal.Temporal;
+import java.time.temporal.TemporalAccessor;
+import java.util.function.BiFunction;
+import java.util.function.Function;
+
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
+public class RFC3339InstantDeserializer extends InstantDeserializer {
+ private static final long serialVersionUID = 1L;
+ private static final boolean DEFAULT_NORMALIZE_ZONE_ID =
+ JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
+ private static final boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS =
+ JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();
+
+ public static final RFC3339InstantDeserializer INSTANT =
+ new RFC3339InstantDeserializer<>(
+ Instant.class,
+ DateTimeFormatter.ISO_INSTANT,
+ Instant::from,
+ a -> Instant.ofEpochMilli(a.value),
+ a -> Instant.ofEpochSecond(a.integer, a.fraction),
+ null,
+ true, // yes, replace zero offset with Z
+ DEFAULT_NORMALIZE_ZONE_ID,
+ DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS);
+
+ public static final RFC3339InstantDeserializer OFFSET_DATE_TIME =
+ new RFC3339InstantDeserializer<>(
+ OffsetDateTime.class,
+ DateTimeFormatter.ISO_OFFSET_DATE_TIME,
+ OffsetDateTime::from,
+ a -> OffsetDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId),
+ a ->
+ OffsetDateTime.ofInstant(
+ Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId),
+ (d, z) ->
+ (d.isEqual(OffsetDateTime.MIN) || d.isEqual(OffsetDateTime.MAX)
+ ? d
+ : d.withOffsetSameInstant(
+ z.getRules().getOffset(d.toLocalDateTime()))),
+ true, // yes, replace zero offset with Z
+ DEFAULT_NORMALIZE_ZONE_ID,
+ DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS);
+
+ public static final RFC3339InstantDeserializer ZONED_DATE_TIME =
+ new RFC3339InstantDeserializer<>(
+ ZonedDateTime.class,
+ DateTimeFormatter.ISO_ZONED_DATE_TIME,
+ ZonedDateTime::from,
+ a -> ZonedDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId),
+ a ->
+ ZonedDateTime.ofInstant(
+ Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId),
+ ZonedDateTime::withZoneSameInstant,
+ false, // keep zero offset and Z separate since zones explicitly supported
+ DEFAULT_NORMALIZE_ZONE_ID,
+ DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS);
+
+ protected RFC3339InstantDeserializer(
+ Class supportedType,
+ DateTimeFormatter formatter,
+ Function parsedToValue,
+ Function fromMilliseconds,
+ Function fromNanoseconds,
+ BiFunction adjust,
+ boolean replaceZeroOffsetAsZ,
+ boolean normalizeZoneId,
+ boolean readNumericStringsAsTimestamp) {
+ super(
+ supportedType,
+ formatter,
+ parsedToValue,
+ fromMilliseconds,
+ fromNanoseconds,
+ adjust,
+ replaceZeroOffsetAsZ,
+ normalizeZoneId,
+ readNumericStringsAsTimestamp);
+ }
+
+ @Override
+ protected T _fromString(JsonParser p, DeserializationContext ctxt, String string0)
+ throws IOException {
+ return super._fromString(p, ctxt, string0.replace(' ', 'T'));
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java b/src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java
new file mode 100644
index 00000000..aeb4d912
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/RFC3339JavaTimeModule.java
@@ -0,0 +1,34 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@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;
+
+
+import com.fasterxml.jackson.databind.module.SimpleModule;
+import java.time.Instant;
+import java.time.OffsetDateTime;
+import java.time.ZonedDateTime;
+
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
+public class RFC3339JavaTimeModule extends SimpleModule {
+ private static final long serialVersionUID = 1L;
+
+ public RFC3339JavaTimeModule() {
+ super("RFC3339JavaTimeModule");
+
+ addDeserializer(Instant.class, RFC3339InstantDeserializer.INSTANT);
+ addDeserializer(OffsetDateTime.class, RFC3339InstantDeserializer.OFFSET_DATE_TIME);
+ addDeserializer(ZonedDateTime.class, RFC3339InstantDeserializer.ZONED_DATE_TIME);
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/ServerConfiguration.java b/src/main/java/com/fireblocks/sdk/ServerConfiguration.java
index 637a80a1..b24931cc 100644
--- a/src/main/java/com/fireblocks/sdk/ServerConfiguration.java
+++ b/src/main/java/com/fireblocks/sdk/ServerConfiguration.java
@@ -1,9 +1,24 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@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;
import java.util.Map;
/** Representing a Server configuration. */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ServerConfiguration {
public String URL;
public String description;
diff --git a/src/main/java/com/fireblocks/sdk/ServerVariable.java b/src/main/java/com/fireblocks/sdk/ServerVariable.java
index 326d6d67..33af2d59 100644
--- a/src/main/java/com/fireblocks/sdk/ServerVariable.java
+++ b/src/main/java/com/fireblocks/sdk/ServerVariable.java
@@ -1,9 +1,24 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@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;
import java.util.HashSet;
/** Representing a Server Variable for server URL template substitution. */
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ServerVariable {
public String description;
public String defaultValue;
diff --git a/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java b/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java
index 554d12f5..8d57d488 100644
--- a/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ApiUserApi.java
@@ -30,7 +30,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ApiUserApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/AssetsApi.java b/src/main/java/com/fireblocks/sdk/api/AssetsApi.java
index 47d535a9..ae819ecb 100644
--- a/src/main/java/com/fireblocks/sdk/api/AssetsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/AssetsApi.java
@@ -31,7 +31,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class AssetsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java
index 3ae1bc45..e6311dc8 100644
--- a/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/AuditLogsApi.java
@@ -33,7 +33,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class AuditLogsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java
index 52fa82ce..eeb1c221 100644
--- a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java
@@ -46,7 +46,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class BlockchainsAssetsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java
index e59354fe..c9406418 100644
--- a/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ComplianceApi.java
@@ -19,6 +19,8 @@
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
import com.fireblocks.sdk.ValidationUtils;
+import com.fireblocks.sdk.model.AmlVerdictManualRequest;
+import com.fireblocks.sdk.model.AmlVerdictManualResponse;
import com.fireblocks.sdk.model.ComplianceResultFullPayload;
import com.fireblocks.sdk.model.CreateTransactionResponse;
import com.fireblocks.sdk.model.ScreeningConfigurationsRequest;
@@ -35,7 +37,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ComplianceApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -474,6 +478,89 @@ private HttpRequest.Builder retryRejectedTransactionBypassScreeningChecksRequest
}
return localVarRequestBuilder;
}
+ /**
+ * Set AML Verdict for Manual Screening Verdict. Set AML verdict for incoming transactions when
+ * Manual Screening Verdict feature is enabled.
+ *
+ * @param amlVerdictManualRequest (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<AmlVerdictManualResponse>>
+ * @throws ApiException if fails to make API call
+ */
+ public CompletableFuture> setAmlVerdict(
+ AmlVerdictManualRequest amlVerdictManualRequest, String idempotencyKey)
+ throws ApiException {
+ try {
+ HttpRequest.Builder localVarRequestBuilder =
+ setAmlVerdictRequestBuilder(amlVerdictManualRequest, idempotencyKey);
+ return memberVarHttpClient
+ .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
+ .thenComposeAsync(
+ localVarResponse -> {
+ if (memberVarAsyncResponseInterceptor != null) {
+ memberVarAsyncResponseInterceptor.accept(localVarResponse);
+ }
+ if (localVarResponse.statusCode() / 100 != 2) {
+ return CompletableFuture.failedFuture(
+ getApiException("setAmlVerdict", 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<
+ AmlVerdictManualResponse>() {})));
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ });
+ } catch (ApiException e) {
+ return CompletableFuture.failedFuture(e);
+ }
+ }
+
+ private HttpRequest.Builder setAmlVerdictRequestBuilder(
+ AmlVerdictManualRequest amlVerdictManualRequest, String idempotencyKey)
+ throws ApiException {
+ ValidationUtils.assertParamExists(
+ "setAmlVerdict", "amlVerdictManualRequest", amlVerdictManualRequest);
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/screening/aml/verdict/manual";
+
+ 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(amlVerdictManualRequest);
+ 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 AML Configuration Updates bypass screening, inbound delay, or outbound delay
* configurations for AML.
diff --git a/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java b/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java
index 3a971750..1ba32716 100644
--- a/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ComplianceScreeningConfigurationApi.java
@@ -29,7 +29,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ComplianceScreeningConfigurationApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java b/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java
index bf2345da..4616e95d 100644
--- a/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ConsoleUserApi.java
@@ -30,7 +30,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ConsoleUserApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java
index 93b69728..c3e21edb 100644
--- a/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ContractInteractionsApi.java
@@ -38,7 +38,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ContractInteractionsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java b/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java
index fe77e356..35185374 100644
--- a/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java
@@ -40,7 +40,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ContractTemplatesApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/ContractsApi.java b/src/main/java/com/fireblocks/sdk/api/ContractsApi.java
index 6e84f577..eb15c742 100644
--- a/src/main/java/com/fireblocks/sdk/api/ContractsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ContractsApi.java
@@ -34,7 +34,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ContractsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java
index 91532942..56c19163 100644
--- a/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java
@@ -47,7 +47,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class CosignersBetaApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java
index 668904af..b627d06d 100644
--- a/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java
@@ -39,7 +39,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class DeployedContractsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java
index 2ee5d5b4..cdb640c3 100644
--- a/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java
@@ -47,7 +47,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class EmbeddedWalletsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java b/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java
index 163b2083..2929898f 100644
--- a/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java
@@ -44,7 +44,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ExchangeAccountsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java
index f62a44e5..18d51f6f 100644
--- a/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java
@@ -35,7 +35,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ExternalWalletsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java b/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java
index 00a9ebef..f1cbd984 100644
--- a/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java
@@ -34,7 +34,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class FiatAccountsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java b/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java
index e356be15..ecf6e47e 100644
--- a/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/GasStationsApi.java
@@ -32,7 +32,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class GasStationsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java b/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java
index d2ea78f5..b3bd6130 100644
--- a/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/InternalWalletsApi.java
@@ -40,7 +40,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class InternalWalletsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java
index 3996a14c..0bbd57c9 100644
--- a/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/JobManagementApi.java
@@ -35,7 +35,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class JobManagementApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java
index 52488501..52f2f351 100644
--- a/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/KeyLinkBetaApi.java
@@ -44,7 +44,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class KeyLinkBetaApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java b/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java
index 17b1a733..5d675ecd 100644
--- a/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/KeysBetaApi.java
@@ -30,7 +30,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class KeysBetaApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java
index 51b67a2e..38b5cf70 100644
--- a/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/NetworkConnectionsApi.java
@@ -48,7 +48,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class NetworkConnectionsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/NftsApi.java b/src/main/java/com/fireblocks/sdk/api/NftsApi.java
index 5fe48448..57a2eaca 100644
--- a/src/main/java/com/fireblocks/sdk/api/NftsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/NftsApi.java
@@ -43,7 +43,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class NftsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java b/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java
index bca59bbf..ec6e8a6d 100644
--- a/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/OffExchangesApi.java
@@ -40,7 +40,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class OffExchangesApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java b/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java
index fe0a6929..680bbef9 100644
--- a/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/OtaBetaApi.java
@@ -32,7 +32,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class OtaBetaApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java
index 38ff7c44..a8f1f518 100644
--- a/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/PaymentsPayoutApi.java
@@ -32,7 +32,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class PaymentsPayoutApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java
index 783a6431..4c5bee9e 100644
--- a/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/PolicyEditorBetaApi.java
@@ -19,11 +19,11 @@
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
import com.fireblocks.sdk.ValidationUtils;
-import com.fireblocks.sdk.model.DraftReviewAndValidationResponse;
-import com.fireblocks.sdk.model.PolicyAndValidationResponse;
-import com.fireblocks.sdk.model.PolicyRules;
-import com.fireblocks.sdk.model.PublishDraftRequest;
-import com.fireblocks.sdk.model.PublishResult;
+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;
@@ -34,7 +34,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@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;
@@ -73,18 +75,21 @@ private String formatExceptionMessage(String operationId, int statusCode, String
}
/**
- * Get the active policy and its validation Returns the active policy and its validation.
- * </br> **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.
+ * Get the active policy and its validation Legacy Endpoint – Returns the active policy and its
+ * validation. </br> **Note:** - This endpoint will remain available for the foreseeable
+ * future and is not deprecated.</br> - The `getActivePolicy` endpoint under
+ * policy/paths provides policy type-specific operations and improved functionality.</br>
+ * - These endpoints are currently in beta and might be subject to changes.</br> 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<PolicyAndValidationResponse>>
+ * @return CompletableFuture<ApiResponse<LegacyPolicyAndValidationResponse>>
* @throws ApiException if fails to make API call
*/
- public CompletableFuture> getActivePolicy()
+ public CompletableFuture> getActivePolicyLegacy()
throws ApiException {
try {
- HttpRequest.Builder localVarRequestBuilder = getActivePolicyRequestBuilder();
+ HttpRequest.Builder localVarRequestBuilder = getActivePolicyLegacyRequestBuilder();
return memberVarHttpClient
.sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
.thenComposeAsync(
@@ -94,12 +99,13 @@ public CompletableFuture> getActivePoli
}
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
- getApiException("getActivePolicy", localVarResponse));
+ getApiException(
+ "getActivePolicyLegacy", localVarResponse));
}
try {
String responseBody = localVarResponse.body();
return CompletableFuture.completedFuture(
- new ApiResponse(
+ new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
responseBody == null || responseBody.isBlank()
@@ -107,7 +113,7 @@ public CompletableFuture> getActivePoli
: memberVarObjectMapper.readValue(
responseBody,
new TypeReference<
- PolicyAndValidationResponse>() {})));
+ LegacyPolicyAndValidationResponse>() {})));
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
@@ -117,7 +123,7 @@ public CompletableFuture> getActivePoli
}
}
- private HttpRequest.Builder getActivePolicyRequestBuilder() throws ApiException {
+ private HttpRequest.Builder getActivePolicyLegacyRequestBuilder() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -137,18 +143,21 @@ private HttpRequest.Builder getActivePolicyRequestBuilder() throws ApiException
return localVarRequestBuilder;
}
/**
- * Get the active draft Returns the active draft and its validation. </br> **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.
+ * Get the active draft Legacy Endpoint – Returns the active draft and its validation.
+ * </br> **Note:** - This endpoint will remain available for the foreseeable future and is
+ * not deprecated.</br> - The `getDraft` endpoint under policy/paths provides
+ * policy type-specific operations and improved functionality.</br> - These endpoints are
+ * currently in beta and might be subject to changes.</br> 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<DraftReviewAndValidationResponse>>
+ * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>>
* @throws ApiException if fails to make API call
*/
- public CompletableFuture> getDraft()
+ public CompletableFuture> getDraftLegacy()
throws ApiException {
try {
- HttpRequest.Builder localVarRequestBuilder = getDraftRequestBuilder();
+ HttpRequest.Builder localVarRequestBuilder = getDraftLegacyRequestBuilder();
return memberVarHttpClient
.sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
.thenComposeAsync(
@@ -158,12 +167,12 @@ public CompletableFuture> getDraft
}
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
- getApiException("getDraft", localVarResponse));
+ getApiException("getDraftLegacy", localVarResponse));
}
try {
String responseBody = localVarResponse.body();
return CompletableFuture.completedFuture(
- new ApiResponse(
+ new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
responseBody == null || responseBody.isBlank()
@@ -171,7 +180,7 @@ public CompletableFuture> getDraft
: memberVarObjectMapper.readValue(
responseBody,
new TypeReference<
- DraftReviewAndValidationResponse>() {})));
+ LegacyDraftReviewAndValidationResponse>() {})));
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
@@ -181,7 +190,7 @@ public CompletableFuture> getDraft
}
}
- private HttpRequest.Builder getDraftRequestBuilder() throws ApiException {
+ private HttpRequest.Builder getDraftLegacyRequestBuilder() throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -201,24 +210,28 @@ private HttpRequest.Builder getDraftRequestBuilder() throws ApiException {
return localVarRequestBuilder;
}
/**
- * Send publish request for a certain draft id Send publish request of certain draft id and
- * returns the response. </br> **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,
+ * Send publish request for a certain draft id Legacy Endpoint – Send publish request of certain
+ * draft id and returns the response. </br> **Note:** - This endpoint will remain
+ * available for the foreseeable future and is not deprecated.</br> - The
+ * `publishDraft` endpoint under policy/paths provides improved functionality and
+ * better performance.</br> - These endpoints are currently in beta and might be subject
+ * to changes.</br> 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 publishDraftRequest (required)
+ * @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<PublishResult>>
+ * @return CompletableFuture<ApiResponse<LegacyPublishResult>>
* @throws ApiException if fails to make API call
*/
- public CompletableFuture> publishDraft(
- PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException {
+ public CompletableFuture> publishDraftLegacy(
+ LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey)
+ throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder =
- publishDraftRequestBuilder(publishDraftRequest, idempotencyKey);
+ publishDraftLegacyRequestBuilder(legacyPublishDraftRequest, idempotencyKey);
return memberVarHttpClient
.sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
.thenComposeAsync(
@@ -228,12 +241,13 @@ public CompletableFuture> publishDraft(
}
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
- getApiException("publishDraft", localVarResponse));
+ getApiException(
+ "publishDraftLegacy", localVarResponse));
}
try {
String responseBody = localVarResponse.body();
return CompletableFuture.completedFuture(
- new ApiResponse(
+ new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
responseBody == null || responseBody.isBlank()
@@ -241,7 +255,7 @@ public CompletableFuture> publishDraft(
: memberVarObjectMapper.readValue(
responseBody,
new TypeReference<
- PublishResult>() {})));
+ LegacyPublishResult>() {})));
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
@@ -251,10 +265,11 @@ public CompletableFuture> publishDraft(
}
}
- private HttpRequest.Builder publishDraftRequestBuilder(
- PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException {
+ private HttpRequest.Builder publishDraftLegacyRequestBuilder(
+ LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey)
+ throws ApiException {
ValidationUtils.assertParamExists(
- "publishDraft", "publishDraftRequest", publishDraftRequest);
+ "publishDraftLegacy", "legacyPublishDraftRequest", legacyPublishDraftRequest);
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -269,7 +284,8 @@ private HttpRequest.Builder publishDraftRequestBuilder(
localVarRequestBuilder.header("Accept", "application/json");
try {
- byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(publishDraftRequest);
+ byte[] localVarPostBody =
+ memberVarObjectMapper.writeValueAsBytes(legacyPublishDraftRequest);
localVarRequestBuilder.method(
"POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
@@ -290,18 +306,18 @@ private HttpRequest.Builder publishDraftRequestBuilder(
* TAP, please contact your Fireblocks Customer Success Manager or send an email to
* CSM@fireblocks.com.
*
- * @param policyRules (required)
+ * @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<PublishResult>>
+ * @return CompletableFuture<ApiResponse<LegacyPublishResult>>
* @throws ApiException if fails to make API call
*/
- public CompletableFuture> publishPolicyRules(
- PolicyRules policyRules, String idempotencyKey) throws ApiException {
+ public CompletableFuture> publishPolicyRules(
+ LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder =
- publishPolicyRulesRequestBuilder(policyRules, idempotencyKey);
+ publishPolicyRulesRequestBuilder(legacyPolicyRules, idempotencyKey);
return memberVarHttpClient
.sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
.thenComposeAsync(
@@ -317,7 +333,7 @@ public CompletableFuture> publishPolicyRules(
try {
String responseBody = localVarResponse.body();
return CompletableFuture.completedFuture(
- new ApiResponse(
+ new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
responseBody == null || responseBody.isBlank()
@@ -325,7 +341,7 @@ public CompletableFuture> publishPolicyRules(
: memberVarObjectMapper.readValue(
responseBody,
new TypeReference<
- PublishResult>() {})));
+ LegacyPublishResult>() {})));
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
@@ -336,8 +352,9 @@ public CompletableFuture> publishPolicyRules(
}
private HttpRequest.Builder publishPolicyRulesRequestBuilder(
- PolicyRules policyRules, String idempotencyKey) throws ApiException {
- ValidationUtils.assertParamExists("publishPolicyRules", "policyRules", policyRules);
+ LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException {
+ ValidationUtils.assertParamExists(
+ "publishPolicyRules", "legacyPolicyRules", legacyPolicyRules);
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -352,7 +369,7 @@ private HttpRequest.Builder publishPolicyRulesRequestBuilder(
localVarRequestBuilder.header("Accept", "application/json");
try {
- byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(policyRules);
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules);
localVarRequestBuilder.method(
"POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
@@ -367,23 +384,26 @@ private HttpRequest.Builder publishPolicyRulesRequestBuilder(
return localVarRequestBuilder;
}
/**
- * Update the draft with a new set of rules Update the draft and return its validation.
- * </br> **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.
+ * Update the draft with a new set of rules Legacy Endpoint – Update the draft and return its
+ * validation. </br> **Note:** - This endpoint will remain available for the foreseeable
+ * future and is not deprecated.</br> - The `updateDraft` endpoint under
+ * policy/paths provides policy type-specific operations and improved functionality.</br>
+ * - These endpoints are currently in beta and might be subject to changes.</br> 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 policyRules (required)
+ * @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<DraftReviewAndValidationResponse>>
+ * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>>
* @throws ApiException if fails to make API call
*/
- public CompletableFuture> updateDraft(
- PolicyRules policyRules, String idempotencyKey) throws ApiException {
+ public CompletableFuture> updateDraftLegacy(
+ LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder =
- updateDraftRequestBuilder(policyRules, idempotencyKey);
+ updateDraftLegacyRequestBuilder(legacyPolicyRules, idempotencyKey);
return memberVarHttpClient
.sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
.thenComposeAsync(
@@ -393,12 +413,12 @@ public CompletableFuture> updateDr
}
if (localVarResponse.statusCode() / 100 != 2) {
return CompletableFuture.failedFuture(
- getApiException("updateDraft", localVarResponse));
+ getApiException("updateDraftLegacy", localVarResponse));
}
try {
String responseBody = localVarResponse.body();
return CompletableFuture.completedFuture(
- new ApiResponse(
+ new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
responseBody == null || responseBody.isBlank()
@@ -406,7 +426,7 @@ public CompletableFuture> updateDr
: memberVarObjectMapper.readValue(
responseBody,
new TypeReference<
- DraftReviewAndValidationResponse>() {})));
+ LegacyDraftReviewAndValidationResponse>() {})));
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
@@ -416,9 +436,10 @@ public CompletableFuture> updateDr
}
}
- private HttpRequest.Builder updateDraftRequestBuilder(
- PolicyRules policyRules, String idempotencyKey) throws ApiException {
- ValidationUtils.assertParamExists("updateDraft", "policyRules", policyRules);
+ private HttpRequest.Builder updateDraftLegacyRequestBuilder(
+ LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException {
+ ValidationUtils.assertParamExists(
+ "updateDraftLegacy", "legacyPolicyRules", legacyPolicyRules);
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -433,7 +454,7 @@ private HttpRequest.Builder updateDraftRequestBuilder(
localVarRequestBuilder.header("Accept", "application/json");
try {
- byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(policyRules);
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules);
localVarRequestBuilder.method(
"PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
diff --git a/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java b/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java
new file mode 100644
index 00000000..3c4f34c8
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/api/PolicyEditorV2BetaApi.java
@@ -0,0 +1,412 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@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.Pair;
+import com.fireblocks.sdk.ValidationUtils;
+import com.fireblocks.sdk.model.DraftReviewAndValidationResponse;
+import com.fireblocks.sdk.model.PolicyAndValidationResponse;
+import com.fireblocks.sdk.model.PolicyType;
+import com.fireblocks.sdk.model.PublishDraftRequest;
+import com.fireblocks.sdk.model.PublishResult;
+import com.fireblocks.sdk.model.UpdateDraftRequest;
+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.ArrayList;
+import java.util.List;
+import java.util.StringJoiner;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Consumer;
+
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
+public class PolicyEditorV2BetaApi {
+ 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 PolicyEditorV2BetaApi() {
+ this(new ApiClient());
+ }
+
+ public PolicyEditorV2BetaApi(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());
+ }
+
+ 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 by policy type Returns the active policy and its
+ * validation for a specific policy type. </br> **Note:** These endpoints are currently in
+ * beta and might be subject to changes.
+ *
+ * @param policyType The policy type(s) to retrieve. Can be a single type or multiple types by
+ * repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT).
+ * (required)
+ * @return CompletableFuture<ApiResponse<PolicyAndValidationResponse>>
+ * @throws ApiException if fails to make API call
+ */
+ public CompletableFuture> getActivePolicy(
+ PolicyType policyType) throws ApiException {
+ try {
+ HttpRequest.Builder localVarRequestBuilder = getActivePolicyRequestBuilder(policyType);
+ return memberVarHttpClient
+ .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
+ .thenComposeAsync(
+ localVarResponse -> {
+ if (memberVarAsyncResponseInterceptor != null) {
+ memberVarAsyncResponseInterceptor.accept(localVarResponse);
+ }
+ if (localVarResponse.statusCode() / 100 != 2) {
+ return CompletableFuture.failedFuture(
+ getApiException("getActivePolicy", 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<
+ PolicyAndValidationResponse>() {})));
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ });
+ } catch (ApiException e) {
+ return CompletableFuture.failedFuture(e);
+ }
+ }
+
+ private HttpRequest.Builder getActivePolicyRequestBuilder(PolicyType policyType)
+ throws ApiException {
+ ValidationUtils.assertParamExists("getActivePolicy", "policyType", policyType);
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/policy/active_policy";
+
+ List localVarQueryParams = new ArrayList<>();
+ StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
+ String localVarQueryParameterBaseName;
+ localVarQueryParameterBaseName = "policyType";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("policyType", policyType));
+
+ if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
+ StringJoiner queryJoiner = new StringJoiner("&");
+ localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
+ if (localVarQueryStringJoiner.length() != 0) {
+ queryJoiner.add(localVarQueryStringJoiner.toString());
+ }
+ localVarRequestBuilder.uri(
+ URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
+ } else {
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ }
+
+ localVarRequestBuilder.header("Accept", "application/json");
+
+ localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+ /**
+ * Get the active draft by policy type Returns the active draft and its validation for a
+ * specific policy type. </br> **Note:** These endpoints are currently in beta and might
+ * be subject to changes.
+ *
+ * @param policyType The policy type(s) to retrieve. Can be a single type or multiple types by
+ * repeating the parameter (e.g., ?policyType=TRANSFER&policyType=MINT).
+ * (required)
+ * @return CompletableFuture<ApiResponse<DraftReviewAndValidationResponse>>
+ * @throws ApiException if fails to make API call
+ */
+ public CompletableFuture> getDraft(
+ PolicyType policyType) throws ApiException {
+ try {
+ HttpRequest.Builder localVarRequestBuilder = getDraftRequestBuilder(policyType);
+ return memberVarHttpClient
+ .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
+ .thenComposeAsync(
+ localVarResponse -> {
+ if (memberVarAsyncResponseInterceptor != null) {
+ memberVarAsyncResponseInterceptor.accept(localVarResponse);
+ }
+ if (localVarResponse.statusCode() / 100 != 2) {
+ return CompletableFuture.failedFuture(
+ getApiException("getDraft", 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<
+ DraftReviewAndValidationResponse>() {})));
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ });
+ } catch (ApiException e) {
+ return CompletableFuture.failedFuture(e);
+ }
+ }
+
+ private HttpRequest.Builder getDraftRequestBuilder(PolicyType policyType) throws ApiException {
+ ValidationUtils.assertParamExists("getDraft", "policyType", policyType);
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/policy/draft";
+
+ List localVarQueryParams = new ArrayList<>();
+ StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
+ String localVarQueryParameterBaseName;
+ localVarQueryParameterBaseName = "policyType";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("policyType", policyType));
+
+ if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
+ StringJoiner queryJoiner = new StringJoiner("&");
+ localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
+ if (localVarQueryStringJoiner.length() != 0) {
+ queryJoiner.add(localVarQueryStringJoiner.toString());
+ }
+ localVarRequestBuilder.uri(
+ URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
+ } else {
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ }
+
+ localVarRequestBuilder.header("Accept", "application/json");
+
+ localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+ /**
+ * Send publish request for a certain draft id Send publish request of certain draft id and
+ * returns the response. </br> **Note:** These endpoints are currently in beta and might
+ * be subject to changes. If you want to participate and learn more about the Fireblocks Policy
+ * Editor, please contact your Fireblocks Customer Success Manager or send an email to
+ * CSM@fireblocks.com.
+ *
+ * @param publishDraftRequest (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<PublishResult>>
+ * @throws ApiException if fails to make API call
+ */
+ public CompletableFuture> publishDraft(
+ PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException {
+ try {
+ HttpRequest.Builder localVarRequestBuilder =
+ publishDraftRequestBuilder(publishDraftRequest, idempotencyKey);
+ return memberVarHttpClient
+ .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
+ .thenComposeAsync(
+ localVarResponse -> {
+ if (memberVarAsyncResponseInterceptor != null) {
+ memberVarAsyncResponseInterceptor.accept(localVarResponse);
+ }
+ if (localVarResponse.statusCode() / 100 != 2) {
+ return CompletableFuture.failedFuture(
+ getApiException("publishDraft", 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<
+ PublishResult>() {})));
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ });
+ } catch (ApiException e) {
+ return CompletableFuture.failedFuture(e);
+ }
+ }
+
+ private HttpRequest.Builder publishDraftRequestBuilder(
+ PublishDraftRequest publishDraftRequest, String idempotencyKey) throws ApiException {
+ ValidationUtils.assertParamExists(
+ "publishDraft", "publishDraftRequest", publishDraftRequest);
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/policy/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(publishDraftRequest);
+ 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 by policy types Update the draft and return its
+ * validation for specific policy types. </br> **Note:** These endpoints are currently in
+ * beta and might be subject to changes.
+ *
+ * @param updateDraftRequest (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<DraftReviewAndValidationResponse>>
+ * @throws ApiException if fails to make API call
+ */
+ public CompletableFuture> updateDraft(
+ UpdateDraftRequest updateDraftRequest, String idempotencyKey) throws ApiException {
+ try {
+ HttpRequest.Builder localVarRequestBuilder =
+ updateDraftRequestBuilder(updateDraftRequest, idempotencyKey);
+ return memberVarHttpClient
+ .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
+ .thenComposeAsync(
+ localVarResponse -> {
+ if (memberVarAsyncResponseInterceptor != null) {
+ memberVarAsyncResponseInterceptor.accept(localVarResponse);
+ }
+ if (localVarResponse.statusCode() / 100 != 2) {
+ return CompletableFuture.failedFuture(
+ getApiException("updateDraft", 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<
+ DraftReviewAndValidationResponse>() {})));
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ });
+ } catch (ApiException e) {
+ return CompletableFuture.failedFuture(e);
+ }
+ }
+
+ private HttpRequest.Builder updateDraftRequestBuilder(
+ UpdateDraftRequest updateDraftRequest, String idempotencyKey) throws ApiException {
+ ValidationUtils.assertParamExists("updateDraft", "updateDraftRequest", updateDraftRequest);
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/policy/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(updateDraftRequest);
+ 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/api/ResetDeviceApi.java b/src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java
index e3d9ab89..221041d8 100644
--- a/src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/ResetDeviceApi.java
@@ -27,7 +27,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class ResetDeviceApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java b/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java
index e427e292..db96d41a 100644
--- a/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/SmartTransferApi.java
@@ -51,7 +51,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class SmartTransferApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/StakingApi.java b/src/main/java/com/fireblocks/sdk/api/StakingApi.java
index 818020da..7adbf50e 100644
--- a/src/main/java/com/fireblocks/sdk/api/StakingApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/StakingApi.java
@@ -49,7 +49,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class StakingApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java b/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java
index 51e690cc..198c9c35 100644
--- a/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/SwapBetaApi.java
@@ -42,7 +42,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class SwapBetaApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/TagsApi.java b/src/main/java/com/fireblocks/sdk/api/TagsApi.java
index 171c5ec9..a7f47c52 100644
--- a/src/main/java/com/fireblocks/sdk/api/TagsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/TagsApi.java
@@ -39,7 +39,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class TagsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java
index 4ebe33fd..41d479d7 100644
--- a/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/TokenizationApi.java
@@ -63,7 +63,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class TokenizationApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java b/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java
index d6df8354..27eb33d4 100644
--- a/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/TransactionsApi.java
@@ -49,7 +49,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class TransactionsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java b/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java
index ba82c2b9..114a70fe 100644
--- a/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/TravelRuleApi.java
@@ -40,7 +40,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class TravelRuleApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java b/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java
index 32d5e51f..2335530e 100644
--- a/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/UserGroupsBetaApi.java
@@ -35,7 +35,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class UserGroupsBetaApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/UsersApi.java b/src/main/java/com/fireblocks/sdk/api/UsersApi.java
index 0c8e5c76..12c1c708 100644
--- a/src/main/java/com/fireblocks/sdk/api/UsersApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/UsersApi.java
@@ -30,7 +30,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class UsersApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java
index 6a9372a0..880c80fb 100644
--- a/src/main/java/com/fireblocks/sdk/api/VaultsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/VaultsApi.java
@@ -61,7 +61,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class VaultsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java
index 8e2df173..483c8f66 100644
--- a/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/Web3ConnectionsApi.java
@@ -40,7 +40,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class Web3ConnectionsApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java b/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java
index 398fa35c..c5ec85fd 100644
--- a/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/WebhooksApi.java
@@ -32,7 +32,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class WebhooksApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java b/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java
index d5b68469..897b6768 100644
--- a/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java
+++ b/src/main/java/com/fireblocks/sdk/api/WebhooksV2Api.java
@@ -23,6 +23,7 @@
import com.fireblocks.sdk.model.CreateWebhookRequest;
import com.fireblocks.sdk.model.NotificationAttemptsPaginatedResponse;
import com.fireblocks.sdk.model.NotificationPaginatedResponse;
+import com.fireblocks.sdk.model.NotificationStatus;
import com.fireblocks.sdk.model.NotificationWithData;
import com.fireblocks.sdk.model.ResendFailedNotificationsJobStatusResponse;
import com.fireblocks.sdk.model.ResendFailedNotificationsRequest;
@@ -30,6 +31,7 @@
import com.fireblocks.sdk.model.ResendNotificationsByResourceIdRequest;
import com.fireblocks.sdk.model.UpdateWebhookRequest;
import com.fireblocks.sdk.model.Webhook;
+import com.fireblocks.sdk.model.WebhookEvent;
import com.fireblocks.sdk.model.WebhookPaginatedResponse;
import java.io.IOException;
import java.io.InputStream;
@@ -46,7 +48,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class WebhooksV2Api {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -426,15 +430,41 @@ private HttpRequest.Builder getNotificationAttemptsRequestBuilder(
* @param sortBy Sort by field (optional, default to updatedAt)
* @param pageCursor Cursor of the required page (optional)
* @param pageSize Maximum number of items in the page (optional, default to 100)
+ * @param startTime Start time in milliseconds since epoch to filter by notifications created
+ * after this time (default 31 days ago) (optional)
+ * @param endTime End time in milliseconds since epoch to filter by notifications created before
+ * this time (default current time) (optional)
+ * @param statuses List of notification statuses to filter by (optional
+ * @param events List of webhook event types to filter by (optional
+ * @param resourceId Resource ID to filter by (optional)
* @return CompletableFuture<ApiResponse<NotificationPaginatedResponse>>
* @throws ApiException if fails to make API call
*/
public CompletableFuture> getNotifications(
- UUID webhookId, String order, String sortBy, String pageCursor, BigDecimal pageSize)
+ UUID webhookId,
+ String order,
+ String sortBy,
+ String pageCursor,
+ BigDecimal pageSize,
+ BigDecimal startTime,
+ BigDecimal endTime,
+ List statuses,
+ List events,
+ String resourceId)
throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder =
- getNotificationsRequestBuilder(webhookId, order, sortBy, pageCursor, pageSize);
+ getNotificationsRequestBuilder(
+ webhookId,
+ order,
+ sortBy,
+ pageCursor,
+ pageSize,
+ startTime,
+ endTime,
+ statuses,
+ events,
+ resourceId);
return memberVarHttpClient
.sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
.thenComposeAsync(
@@ -468,7 +498,16 @@ public CompletableFuture> getNotifica
}
private HttpRequest.Builder getNotificationsRequestBuilder(
- UUID webhookId, String order, String sortBy, String pageCursor, BigDecimal pageSize)
+ UUID webhookId,
+ String order,
+ String sortBy,
+ String pageCursor,
+ BigDecimal pageSize,
+ BigDecimal startTime,
+ BigDecimal endTime,
+ List statuses,
+ List events,
+ String resourceId)
throws ApiException {
ValidationUtils.assertParamExistsAndNotEmpty(
"getNotifications", "webhookId", webhookId.toString());
@@ -490,6 +529,16 @@ private HttpRequest.Builder getNotificationsRequestBuilder(
localVarQueryParams.addAll(ApiClient.parameterToPairs("pageCursor", pageCursor));
localVarQueryParameterBaseName = "pageSize";
localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize));
+ localVarQueryParameterBaseName = "startTime";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("startTime", startTime));
+ localVarQueryParameterBaseName = "endTime";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("endTime", endTime));
+ localVarQueryParameterBaseName = "statuses";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "statuses", statuses));
+ localVarQueryParameterBaseName = "events";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "events", events));
+ localVarQueryParameterBaseName = "resourceId";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("resourceId", resourceId));
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
StringJoiner queryJoiner = new StringJoiner("&");
diff --git a/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java b/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java
index a64c7e5e..18e92175 100644
--- a/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/WhitelistIpAddressesApi.java
@@ -30,7 +30,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class WhitelistIpAddressesApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java b/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java
index 8e242576..54ee18dc 100644
--- a/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java
+++ b/src/main/java/com/fireblocks/sdk/api/WorkspaceStatusBetaApi.java
@@ -29,7 +29,9 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class WorkspaceStatusBetaApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
diff --git a/src/main/java/com/fireblocks/sdk/model/APIUser.java b/src/main/java/com/fireblocks/sdk/model/APIUser.java
index 2b29c1fd..c0e0f5f3 100644
--- a/src/main/java/com/fireblocks/sdk/model/APIUser.java
+++ b/src/main/java/com/fireblocks/sdk/model/APIUser.java
@@ -16,8 +16,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.net.URLEncoder;
-import java.nio.charset.StandardCharsets;
+import com.fireblocks.sdk.ApiClient;
import java.util.Objects;
import java.util.StringJoiner;
@@ -30,29 +29,31 @@
APIUser.JSON_PROPERTY_STATUS,
APIUser.JSON_PROPERTY_USER_TYPE
})
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class APIUser {
public static final String JSON_PROPERTY_ID = "id";
- private String id;
+ @jakarta.annotation.Nullable private String id;
public static final String JSON_PROPERTY_NAME = "name";
- private String name;
+ @jakarta.annotation.Nullable private String name;
public static final String JSON_PROPERTY_ROLE = "role";
- private UserRole role;
+ @jakarta.annotation.Nullable private UserRole role;
public static final String JSON_PROPERTY_ENABLED = "enabled";
- private Boolean enabled;
+ @jakarta.annotation.Nullable private Boolean enabled;
public static final String JSON_PROPERTY_STATUS = "status";
- private UserStatus status;
+ @jakarta.annotation.Nullable private UserStatus status;
public static final String JSON_PROPERTY_USER_TYPE = "userType";
- private UserType userType;
+ @jakarta.annotation.Nullable private UserType userType;
public APIUser() {}
- public APIUser id(String id) {
+ public APIUser id(@jakarta.annotation.Nullable String id) {
this.id = id;
return this;
}
@@ -71,11 +72,11 @@ public String getId() {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setId(String id) {
+ public void setId(@jakarta.annotation.Nullable String id) {
this.id = id;
}
- public APIUser name(String name) {
+ public APIUser name(@jakarta.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -94,11 +95,11 @@ public String getName() {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setName(String name) {
+ public void setName(@jakarta.annotation.Nullable String name) {
this.name = name;
}
- public APIUser role(UserRole role) {
+ public APIUser role(@jakarta.annotation.Nullable UserRole role) {
this.role = role;
return this;
}
@@ -117,11 +118,11 @@ public UserRole getRole() {
@JsonProperty(JSON_PROPERTY_ROLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setRole(UserRole role) {
+ public void setRole(@jakarta.annotation.Nullable UserRole role) {
this.role = role;
}
- public APIUser enabled(Boolean enabled) {
+ public APIUser enabled(@jakarta.annotation.Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@@ -140,11 +141,11 @@ public Boolean getEnabled() {
@JsonProperty(JSON_PROPERTY_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setEnabled(Boolean enabled) {
+ public void setEnabled(@jakarta.annotation.Nullable Boolean enabled) {
this.enabled = enabled;
}
- public APIUser status(UserStatus status) {
+ public APIUser status(@jakarta.annotation.Nullable UserStatus status) {
this.status = status;
return this;
}
@@ -163,11 +164,11 @@ public UserStatus getStatus() {
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setStatus(UserStatus status) {
+ public void setStatus(@jakarta.annotation.Nullable UserStatus status) {
this.status = status;
}
- public APIUser userType(UserType userType) {
+ public APIUser userType(@jakarta.annotation.Nullable UserType userType) {
this.userType = userType;
return this;
}
@@ -186,7 +187,7 @@ public UserType getUserType() {
@JsonProperty(JSON_PROPERTY_USER_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUserType(UserType userType) {
+ public void setUserType(@jakarta.annotation.Nullable UserType userType) {
this.userType = userType;
}
@@ -275,10 +276,7 @@ public String toUrlQueryString(String prefix) {
joiner.add(
String.format(
"%sid%s=%s",
- prefix,
- suffix,
- URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId()))));
}
// add `name` to the URL query string
@@ -288,8 +286,7 @@ public String toUrlQueryString(String prefix) {
"%sname%s=%s",
prefix,
suffix,
- URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getName()))));
}
// add `role` to the URL query string
@@ -299,8 +296,7 @@ public String toUrlQueryString(String prefix) {
"%srole%s=%s",
prefix,
suffix,
- URLEncoder.encode(String.valueOf(getRole()), StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getRole()))));
}
// add `enabled` to the URL query string
@@ -310,8 +306,7 @@ public String toUrlQueryString(String prefix) {
"%senabled%s=%s",
prefix,
suffix,
- URLEncoder.encode(String.valueOf(getEnabled()), StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getEnabled()))));
}
// add `status` to the URL query string
@@ -321,8 +316,7 @@ public String toUrlQueryString(String prefix) {
"%sstatus%s=%s",
prefix,
suffix,
- URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getStatus()))));
}
// add `userType` to the URL query string
@@ -332,8 +326,7 @@ public String toUrlQueryString(String prefix) {
"%suserType%s=%s",
prefix,
suffix,
- URLEncoder.encode(String.valueOf(getUserType()), StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getUserType()))));
}
return joiner.toString();
diff --git a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java b/src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java
similarity index 59%
rename from src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java
rename to src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java
index 4ef402aa..ae9087bc 100644
--- a/src/main/java/com/fireblocks/sdk/model/AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.java
+++ b/src/main/java/com/fireblocks/sdk/model/AbaPaymentInfo.java
@@ -13,75 +13,102 @@
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.net.URLEncoder;
-import java.nio.charset.StandardCharsets;
+import com.fireblocks.sdk.ApiClient;
import java.util.Objects;
import java.util.StringJoiner;
-/** AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 */
+/** ABA payment information for US bank transfers */
@JsonPropertyOrder({
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_CITY,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ABA_ROUTING_NUMBER,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ABA_ACCOUNT_NUMBER,
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.JSON_PROPERTY_ABA_COUNTRY
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME,
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME,
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_CITY,
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY,
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1,
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2,
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT,
+ AbaPaymentInfo.JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE,
+ AbaPaymentInfo.JSON_PROPERTY_ABA_ROUTING_NUMBER,
+ AbaPaymentInfo.JSON_PROPERTY_ABA_ACCOUNT_NUMBER,
+ AbaPaymentInfo.JSON_PROPERTY_ABA_COUNTRY
})
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 {
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
+public class AbaPaymentInfo {
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME = "accountHolderGivenName";
- private String accountHolderGivenName;
+ @jakarta.annotation.Nonnull private String accountHolderGivenName;
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME = "accountHolderSurname";
- private String accountHolderSurname;
+ @jakarta.annotation.Nullable private String accountHolderSurname;
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CITY = "accountHolderCity";
- private String accountHolderCity;
+ @jakarta.annotation.Nonnull private String accountHolderCity;
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY = "accountHolderCountry";
- private String accountHolderCountry;
+ @jakarta.annotation.Nonnull private String accountHolderCountry;
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1 = "accountHolderAddress1";
- private String accountHolderAddress1;
+ @jakarta.annotation.Nonnull private String accountHolderAddress1;
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2 = "accountHolderAddress2";
- private String accountHolderAddress2;
+ @jakarta.annotation.Nullable private String accountHolderAddress2;
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT = "accountHolderDistrict";
- private String accountHolderDistrict;
+ @jakarta.annotation.Nullable private String accountHolderDistrict;
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE = "accountHolderPostalCode";
- private String accountHolderPostalCode;
+ @jakarta.annotation.Nonnull private String accountHolderPostalCode;
public static final String JSON_PROPERTY_ABA_ROUTING_NUMBER = "abaRoutingNumber";
- private String abaRoutingNumber;
+ @jakarta.annotation.Nonnull private String abaRoutingNumber;
public static final String JSON_PROPERTY_ABA_ACCOUNT_NUMBER = "abaAccountNumber";
- private String abaAccountNumber;
+ @jakarta.annotation.Nonnull private String abaAccountNumber;
public static final String JSON_PROPERTY_ABA_COUNTRY = "abaCountry";
- private String abaCountry;
-
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1() {}
+ @jakarta.annotation.Nonnull private String abaCountry;
+
+ public AbaPaymentInfo() {}
+
+ @JsonCreator
+ public AbaPaymentInfo(
+ @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME, required = true)
+ String accountHolderGivenName,
+ @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_CITY, required = true)
+ String accountHolderCity,
+ @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY, required = true)
+ String accountHolderCountry,
+ @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1, required = true)
+ String accountHolderAddress1,
+ @JsonProperty(value = JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE, required = true)
+ String accountHolderPostalCode,
+ @JsonProperty(value = JSON_PROPERTY_ABA_ROUTING_NUMBER, required = true)
+ String abaRoutingNumber,
+ @JsonProperty(value = JSON_PROPERTY_ABA_ACCOUNT_NUMBER, required = true)
+ String abaAccountNumber,
+ @JsonProperty(value = JSON_PROPERTY_ABA_COUNTRY, required = true) String abaCountry) {
+ this.accountHolderGivenName = accountHolderGivenName;
+ this.accountHolderCity = accountHolderCity;
+ this.accountHolderCountry = accountHolderCountry;
+ this.accountHolderAddress1 = accountHolderAddress1;
+ this.accountHolderPostalCode = accountHolderPostalCode;
+ this.abaRoutingNumber = abaRoutingNumber;
+ this.abaAccountNumber = abaAccountNumber;
+ this.abaCountry = abaCountry;
+ }
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderGivenName(
- String accountHolderGivenName) {
+ public AbaPaymentInfo accountHolderGivenName(
+ @jakarta.annotation.Nonnull String accountHolderGivenName) {
this.accountHolderGivenName = accountHolderGivenName;
return this;
}
/**
- * Get accountHolderGivenName
+ * The given name (first name) of the account holder
*
* @return accountHolderGivenName
*/
@@ -94,18 +121,19 @@ public String getAccountHolderGivenName() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_GIVEN_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAccountHolderGivenName(String accountHolderGivenName) {
+ public void setAccountHolderGivenName(
+ @jakarta.annotation.Nonnull String accountHolderGivenName) {
this.accountHolderGivenName = accountHolderGivenName;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderSurname(
- String accountHolderSurname) {
+ public AbaPaymentInfo accountHolderSurname(
+ @jakarta.annotation.Nullable String accountHolderSurname) {
this.accountHolderSurname = accountHolderSurname;
return this;
}
/**
- * Get accountHolderSurname
+ * The surname (last name) of the account holder
*
* @return accountHolderSurname
*/
@@ -118,18 +146,17 @@ public String getAccountHolderSurname() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_SURNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAccountHolderSurname(String accountHolderSurname) {
+ public void setAccountHolderSurname(@jakarta.annotation.Nullable String accountHolderSurname) {
this.accountHolderSurname = accountHolderSurname;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderCity(
- String accountHolderCity) {
+ public AbaPaymentInfo accountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) {
this.accountHolderCity = accountHolderCity;
return this;
}
/**
- * Get accountHolderCity
+ * The city where the account holder resides
*
* @return accountHolderCity
*/
@@ -142,18 +169,18 @@ public String getAccountHolderCity() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAccountHolderCity(String accountHolderCity) {
+ public void setAccountHolderCity(@jakarta.annotation.Nonnull String accountHolderCity) {
this.accountHolderCity = accountHolderCity;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderCountry(
- String accountHolderCountry) {
+ public AbaPaymentInfo accountHolderCountry(
+ @jakarta.annotation.Nonnull String accountHolderCountry) {
this.accountHolderCountry = accountHolderCountry;
return this;
}
/**
- * Get accountHolderCountry
+ * The country where the account holder resides (ISO 3166-1 alpha-2 code)
*
* @return accountHolderCountry
*/
@@ -166,18 +193,18 @@ public String getAccountHolderCountry() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_COUNTRY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAccountHolderCountry(String accountHolderCountry) {
+ public void setAccountHolderCountry(@jakarta.annotation.Nonnull String accountHolderCountry) {
this.accountHolderCountry = accountHolderCountry;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderAddress1(
- String accountHolderAddress1) {
+ public AbaPaymentInfo accountHolderAddress1(
+ @jakarta.annotation.Nonnull String accountHolderAddress1) {
this.accountHolderAddress1 = accountHolderAddress1;
return this;
}
/**
- * Get accountHolderAddress1
+ * The primary address line of the account holder
*
* @return accountHolderAddress1
*/
@@ -190,18 +217,18 @@ public String getAccountHolderAddress1() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS1)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAccountHolderAddress1(String accountHolderAddress1) {
+ public void setAccountHolderAddress1(@jakarta.annotation.Nonnull String accountHolderAddress1) {
this.accountHolderAddress1 = accountHolderAddress1;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderAddress2(
- String accountHolderAddress2) {
+ public AbaPaymentInfo accountHolderAddress2(
+ @jakarta.annotation.Nullable String accountHolderAddress2) {
this.accountHolderAddress2 = accountHolderAddress2;
return this;
}
/**
- * Get accountHolderAddress2
+ * The secondary address line of the account holder (optional)
*
* @return accountHolderAddress2
*/
@@ -214,18 +241,19 @@ public String getAccountHolderAddress2() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ADDRESS2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAccountHolderAddress2(String accountHolderAddress2) {
+ public void setAccountHolderAddress2(
+ @jakarta.annotation.Nullable String accountHolderAddress2) {
this.accountHolderAddress2 = accountHolderAddress2;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderDistrict(
- String accountHolderDistrict) {
+ public AbaPaymentInfo accountHolderDistrict(
+ @jakarta.annotation.Nullable String accountHolderDistrict) {
this.accountHolderDistrict = accountHolderDistrict;
return this;
}
/**
- * Get accountHolderDistrict
+ * The district or region where the account holder resides
*
* @return accountHolderDistrict
*/
@@ -238,18 +266,19 @@ public String getAccountHolderDistrict() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_DISTRICT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAccountHolderDistrict(String accountHolderDistrict) {
+ public void setAccountHolderDistrict(
+ @jakarta.annotation.Nullable String accountHolderDistrict) {
this.accountHolderDistrict = accountHolderDistrict;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 accountHolderPostalCode(
- String accountHolderPostalCode) {
+ public AbaPaymentInfo accountHolderPostalCode(
+ @jakarta.annotation.Nonnull String accountHolderPostalCode) {
this.accountHolderPostalCode = accountHolderPostalCode;
return this;
}
/**
- * Get accountHolderPostalCode
+ * The postal code of the account holder's address
*
* @return accountHolderPostalCode
*/
@@ -262,18 +291,18 @@ public String getAccountHolderPostalCode() {
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_POSTAL_CODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAccountHolderPostalCode(String accountHolderPostalCode) {
+ public void setAccountHolderPostalCode(
+ @jakarta.annotation.Nonnull String accountHolderPostalCode) {
this.accountHolderPostalCode = accountHolderPostalCode;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaRoutingNumber(
- String abaRoutingNumber) {
+ public AbaPaymentInfo abaRoutingNumber(@jakarta.annotation.Nonnull String abaRoutingNumber) {
this.abaRoutingNumber = abaRoutingNumber;
return this;
}
/**
- * Get abaRoutingNumber
+ * The ABA routing number for the bank
*
* @return abaRoutingNumber
*/
@@ -286,18 +315,17 @@ public String getAbaRoutingNumber() {
@JsonProperty(JSON_PROPERTY_ABA_ROUTING_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAbaRoutingNumber(String abaRoutingNumber) {
+ public void setAbaRoutingNumber(@jakarta.annotation.Nonnull String abaRoutingNumber) {
this.abaRoutingNumber = abaRoutingNumber;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaAccountNumber(
- String abaAccountNumber) {
+ public AbaPaymentInfo abaAccountNumber(@jakarta.annotation.Nonnull String abaAccountNumber) {
this.abaAccountNumber = abaAccountNumber;
return this;
}
/**
- * Get abaAccountNumber
+ * The account number at the bank
*
* @return abaAccountNumber
*/
@@ -310,17 +338,17 @@ public String getAbaAccountNumber() {
@JsonProperty(JSON_PROPERTY_ABA_ACCOUNT_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAbaAccountNumber(String abaAccountNumber) {
+ public void setAbaAccountNumber(@jakarta.annotation.Nonnull String abaAccountNumber) {
this.abaAccountNumber = abaAccountNumber;
}
- public AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 abaCountry(String abaCountry) {
+ public AbaPaymentInfo abaCountry(@jakarta.annotation.Nonnull String abaCountry) {
this.abaCountry = abaCountry;
return this;
}
/**
- * Get abaCountry
+ * The country for the ABA transfer (ISO 3166-1 alpha-2 code)
*
* @return abaCountry
*/
@@ -333,14 +361,11 @@ public String getAbaCountry() {
@JsonProperty(JSON_PROPERTY_ABA_COUNTRY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAbaCountry(String abaCountry) {
+ public void setAbaCountry(@jakarta.annotation.Nonnull String abaCountry) {
this.abaCountry = abaCountry;
}
- /**
- * Return true if this AddAssetToExternalWalletRequest_oneOf_1_additionalInfo_oneOf_1 object is
- * equal to o.
- */
+ /** Return true if this AbaPaymentInfo object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -349,49 +374,19 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 =
- (AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1) o;
- return Objects.equals(
- this.accountHolderGivenName,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .accountHolderGivenName)
- && Objects.equals(
- this.accountHolderSurname,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .accountHolderSurname)
- && Objects.equals(
- this.accountHolderCity,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.accountHolderCity)
- && Objects.equals(
- this.accountHolderCountry,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .accountHolderCountry)
- && Objects.equals(
- this.accountHolderAddress1,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .accountHolderAddress1)
- && Objects.equals(
- this.accountHolderAddress2,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .accountHolderAddress2)
- && Objects.equals(
- this.accountHolderDistrict,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .accountHolderDistrict)
- && Objects.equals(
- this.accountHolderPostalCode,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1
- .accountHolderPostalCode)
- && Objects.equals(
- this.abaRoutingNumber,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.abaRoutingNumber)
- && Objects.equals(
- this.abaAccountNumber,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.abaAccountNumber)
+ AbaPaymentInfo abaPaymentInfo = (AbaPaymentInfo) o;
+ return Objects.equals(this.accountHolderGivenName, abaPaymentInfo.accountHolderGivenName)
+ && Objects.equals(this.accountHolderSurname, abaPaymentInfo.accountHolderSurname)
+ && Objects.equals(this.accountHolderCity, abaPaymentInfo.accountHolderCity)
+ && Objects.equals(this.accountHolderCountry, abaPaymentInfo.accountHolderCountry)
+ && Objects.equals(this.accountHolderAddress1, abaPaymentInfo.accountHolderAddress1)
+ && Objects.equals(this.accountHolderAddress2, abaPaymentInfo.accountHolderAddress2)
+ && Objects.equals(this.accountHolderDistrict, abaPaymentInfo.accountHolderDistrict)
&& Objects.equals(
- this.abaCountry,
- addAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1.abaCountry);
+ this.accountHolderPostalCode, abaPaymentInfo.accountHolderPostalCode)
+ && Objects.equals(this.abaRoutingNumber, abaPaymentInfo.abaRoutingNumber)
+ && Objects.equals(this.abaAccountNumber, abaPaymentInfo.abaAccountNumber)
+ && Objects.equals(this.abaCountry, abaPaymentInfo.abaCountry);
}
@Override
@@ -413,7 +408,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class AddAssetToExternalWalletRequestOneOf1AdditionalInfoOneOf1 {\n");
+ sb.append("class AbaPaymentInfo {\n");
sb.append(" accountHolderGivenName: ")
.append(toIndentedString(accountHolderGivenName))
.append("\n");
@@ -495,10 +490,8 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderGivenName%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderGivenName()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(
+ ApiClient.valueToString(getAccountHolderGivenName()))));
}
// add `accountHolderSurname` to the URL query string
@@ -508,10 +501,8 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderSurname%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderSurname()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(
+ ApiClient.valueToString(getAccountHolderSurname()))));
}
// add `accountHolderCity` to the URL query string
@@ -521,10 +512,7 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderCity%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderCity()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getAccountHolderCity()))));
}
// add `accountHolderCountry` to the URL query string
@@ -534,10 +522,8 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderCountry%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderCountry()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(
+ ApiClient.valueToString(getAccountHolderCountry()))));
}
// add `accountHolderAddress1` to the URL query string
@@ -547,10 +533,8 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderAddress1%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderAddress1()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(
+ ApiClient.valueToString(getAccountHolderAddress1()))));
}
// add `accountHolderAddress2` to the URL query string
@@ -560,10 +544,8 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderAddress2%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderAddress2()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(
+ ApiClient.valueToString(getAccountHolderAddress2()))));
}
// add `accountHolderDistrict` to the URL query string
@@ -573,10 +555,8 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderDistrict%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderDistrict()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(
+ ApiClient.valueToString(getAccountHolderDistrict()))));
}
// add `accountHolderPostalCode` to the URL query string
@@ -586,10 +566,8 @@ public String toUrlQueryString(String prefix) {
"%saccountHolderPostalCode%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAccountHolderPostalCode()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(
+ ApiClient.valueToString(getAccountHolderPostalCode()))));
}
// add `abaRoutingNumber` to the URL query string
@@ -599,10 +577,7 @@ public String toUrlQueryString(String prefix) {
"%sabaRoutingNumber%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAbaRoutingNumber()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getAbaRoutingNumber()))));
}
// add `abaAccountNumber` to the URL query string
@@ -612,10 +587,7 @@ public String toUrlQueryString(String prefix) {
"%sabaAccountNumber%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAbaAccountNumber()),
- StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getAbaAccountNumber()))));
}
// add `abaCountry` to the URL query string
@@ -625,9 +597,7 @@ public String toUrlQueryString(String prefix) {
"%sabaCountry%s=%s",
prefix,
suffix,
- URLEncoder.encode(
- String.valueOf(getAbaCountry()), StandardCharsets.UTF_8)
- .replaceAll("\\+", "%20")));
+ ApiClient.urlEncode(ApiClient.valueToString(getAbaCountry()))));
}
return joiner.toString();
diff --git a/src/main/java/com/fireblocks/sdk/model/AbiFunction.java b/src/main/java/com/fireblocks/sdk/model/AbiFunction.java
index 8e8712b7..17b01eca 100644
--- a/src/main/java/com/fireblocks/sdk/model/AbiFunction.java
+++ b/src/main/java/com/fireblocks/sdk/model/AbiFunction.java
@@ -18,8 +18,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
-import java.net.URLEncoder;
-import java.nio.charset.StandardCharsets;
+import com.fireblocks.sdk.ApiClient;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@@ -34,20 +33,22 @@
AbiFunction.JSON_PROPERTY_OUTPUTS,
AbiFunction.JSON_PROPERTY_DESCRIPTION
})
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
public class AbiFunction {
public static final String JSON_PROPERTY_NAME = "name";
- private String name;
+ @jakarta.annotation.Nullable private String name;
/** The state mutability of the contract function as it appears in the ABI */
public enum StateMutabilityEnum {
- PURE("pure"),
+ PURE(String.valueOf("pure")),
- VIEW("view"),
+ VIEW(String.valueOf("view")),
- NONPAYABLE("nonpayable"),
+ NONPAYABLE(String.valueOf("nonpayable")),
- PAYABLE("payable");
+ PAYABLE(String.valueOf("payable"));
private String value;
@@ -77,21 +78,21 @@ public static StateMutabilityEnum fromValue(String value) {
}
public static final String JSON_PROPERTY_STATE_MUTABILITY = "stateMutability";
- private StateMutabilityEnum stateMutability;
+ @jakarta.annotation.Nullable private StateMutabilityEnum stateMutability;
/** The type of the function */
public enum TypeEnum {
- CONSTRUCTOR("constructor"),
+ CONSTRUCTOR(String.valueOf("constructor")),
- FUNCTION("function"),
+ FUNCTION(String.valueOf("function")),
- ERROR("error"),
+ ERROR(String.valueOf("error")),
- EVENT("event"),
+ EVENT(String.valueOf("event")),
- RECEIVE("receive"),
+ RECEIVE(String.valueOf("receive")),
- FALLBACK("fallback");
+ FALLBACK(String.valueOf("fallback"));
private String value;
@@ -121,20 +122,25 @@ public static TypeEnum fromValue(String value) {
}
public static final String JSON_PROPERTY_TYPE = "type";
- private TypeEnum type;
+ @jakarta.annotation.Nonnull private TypeEnum type;
public static final String JSON_PROPERTY_INPUTS = "inputs";
- private List