response) {
- String message =
- formatExceptionMessage(operationId, response.statusCode(), response.body());
- return new ApiException(
- response.statusCode(), message, response.headers(), response.body());
- }
-
- /**
- * Normalizes any failure raised while performing the call into the single failure type callers
- * are told to expect. Transport-level errors surfaced by {@code HttpClient.sendAsync} -
- * connection refused, DNS failures, TLS errors, timeouts - would otherwise reach the caller as
- * a raw {@link java.io.IOException}, which makes the documented {@code (ApiException)
- * e.getCause()} throw {@link ClassCastException}.
- *
- * {@link CancellationException} is passed through unchanged: a cancelled call is not an API
- * failure.
- */
- private static Throwable toApiFailure(Throwable throwable) {
- Throwable cause = throwable;
- while ((cause instanceof CompletionException || cause instanceof ExecutionException)
- && cause.getCause() != null) {
- cause = cause.getCause();
- }
- if (cause instanceof ApiException || cause instanceof CancellationException) {
- return cause;
- }
- return new ApiException(cause);
- }
-
- private String formatExceptionMessage(String operationId, int statusCode, String body) {
- if (body == null || body.isEmpty()) {
- body = "[no body]";
- }
- return operationId + " call failed with: " + statusCode + " - " + body;
- }
-
- /**
- * Get the active policy and its validation Legacy Endpoint – Returns the active policy and its
- * validation. **Note:** - This endpoint will remain available for the foreseeable future and is
- * not deprecated. - The `getActivePolicy` endpoint under policy/paths provides policy
- * type-specific operations and improved functionality. - These endpoints are currently in beta
- * and might be subject to changes. If you want to participate and learn more about the
- * Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to
- * CSM@fireblocks.com.
- *
- * @return CompletableFuture<ApiResponse<LegacyPolicyAndValidationResponse>>, which
- * completes exceptionally with an {@link ApiException} if the API call fails
- */
- public CompletableFuture>
- getActivePolicyLegacy() {
- try {
- HttpRequest.Builder localVarRequestBuilder = getActivePolicyLegacyRequestBuilder();
- return memberVarHttpClient
- .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
- .thenComposeAsync(
- localVarResponse -> {
- if (memberVarAsyncResponseInterceptor != null) {
- memberVarAsyncResponseInterceptor.accept(localVarResponse);
- }
- // Ahead of the status check, which fails the future: the lifecycle
- // header
- // is present on allowed error responses too.
- LifecycleWarning.warn(
- localVarResponse.headers(),
- "getActivePolicyLegacy",
- localVarResponse.statusCode());
- if (localVarResponse.statusCode() / 100 != 2) {
- return CompletableFuture.failedFuture(
- getApiException(
- "getActivePolicyLegacy", localVarResponse));
- }
- try {
- String responseBody = localVarResponse.body();
- return CompletableFuture.completedFuture(
- new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseBody == null || responseBody.isBlank()
- ? null
- : memberVarObjectMapper.readValue(
- responseBody,
- new TypeReference<
- LegacyPolicyAndValidationResponse>() {})));
- } catch (IOException e) {
- return CompletableFuture.failedFuture(new ApiException(e));
- }
- })
- .handle(
- (localVarApiResponse, localVarThrowable) ->
- localVarThrowable == null
- ? CompletableFuture.completedFuture(localVarApiResponse)
- : CompletableFuture
- .>
- failedFuture(
- toApiFailure(
- localVarThrowable)))
- .thenCompose(localVarNormalized -> localVarNormalized);
- } catch (ApiException e) {
- return CompletableFuture.failedFuture(e);
- }
- }
-
- private HttpRequest.Builder getActivePolicyLegacyRequestBuilder() throws ApiException {
-
- HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
- String localVarPath = "/tap/active_policy";
-
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
- localVarRequestBuilder.header("Accept", "application/json");
-
- localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
- if (memberVarReadTimeout != null) {
- localVarRequestBuilder.timeout(memberVarReadTimeout);
- }
- if (memberVarInterceptor != null) {
- memberVarInterceptor.accept(localVarRequestBuilder);
- }
- return localVarRequestBuilder;
- }
- /**
- * Get the active draft Legacy Endpoint – Returns the active draft and its validation. **Note:**
- * - This endpoint will remain available for the foreseeable future and is not deprecated. - The
- * `getDraft` endpoint under policy/paths provides policy type-specific operations and
- * improved functionality. - These endpoints are currently in beta and might be subject to
- * changes. If you want to participate and learn more about the Fireblocks TAP, please contact
- * your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
- *
- * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>>,
- * which completes exceptionally with an {@link ApiException} if the API call fails
- */
- public CompletableFuture> getDraftLegacy() {
- try {
- HttpRequest.Builder localVarRequestBuilder = getDraftLegacyRequestBuilder();
- return memberVarHttpClient
- .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
- .thenComposeAsync(
- localVarResponse -> {
- if (memberVarAsyncResponseInterceptor != null) {
- memberVarAsyncResponseInterceptor.accept(localVarResponse);
- }
- // Ahead of the status check, which fails the future: the lifecycle
- // header
- // is present on allowed error responses too.
- LifecycleWarning.warn(
- localVarResponse.headers(),
- "getDraftLegacy",
- localVarResponse.statusCode());
- if (localVarResponse.statusCode() / 100 != 2) {
- return CompletableFuture.failedFuture(
- getApiException("getDraftLegacy", localVarResponse));
- }
- try {
- String responseBody = localVarResponse.body();
- return CompletableFuture.completedFuture(
- new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseBody == null || responseBody.isBlank()
- ? null
- : memberVarObjectMapper.readValue(
- responseBody,
- new TypeReference<
- LegacyDraftReviewAndValidationResponse>() {})));
- } catch (IOException e) {
- return CompletableFuture.failedFuture(new ApiException(e));
- }
- })
- .handle(
- (localVarApiResponse, localVarThrowable) ->
- localVarThrowable == null
- ? CompletableFuture.completedFuture(localVarApiResponse)
- : CompletableFuture
- .>
- failedFuture(
- toApiFailure(
- localVarThrowable)))
- .thenCompose(localVarNormalized -> localVarNormalized);
- } catch (ApiException e) {
- return CompletableFuture.failedFuture(e);
- }
- }
-
- private HttpRequest.Builder getDraftLegacyRequestBuilder() throws ApiException {
-
- HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
- String localVarPath = "/tap/draft";
-
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
- localVarRequestBuilder.header("Accept", "application/json");
-
- localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
- if (memberVarReadTimeout != null) {
- localVarRequestBuilder.timeout(memberVarReadTimeout);
- }
- if (memberVarInterceptor != null) {
- memberVarInterceptor.accept(localVarRequestBuilder);
- }
- return localVarRequestBuilder;
- }
- /**
- * Send publish request for a certain draft id Legacy Endpoint – Send publish request of certain
- * draft id and returns the response. **Note:** - This endpoint will remain available for the
- * foreseeable future and is not deprecated. - The `publishDraft` endpoint under
- * policy/paths provides improved functionality and better performance. - These endpoints are
- * currently in beta and might be subject to changes. If you want to participate and learn more
- * about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an
- * email to CSM@fireblocks.com.
- *
- * @param legacyPublishDraftRequest (required)
- * @param idempotencyKey A unique identifier for the request. If the request is sent multiple
- * times with the same idempotency key, the server will return the same response as the
- * first request. The idempotency key is valid for 24 hours. (optional)
- * @return CompletableFuture<ApiResponse<LegacyPublishResult>>, which completes
- * exceptionally with an {@link ApiException} if the API call fails
- */
- public CompletableFuture> publishDraftLegacy(
- LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey) {
- try {
- HttpRequest.Builder localVarRequestBuilder =
- publishDraftLegacyRequestBuilder(legacyPublishDraftRequest, idempotencyKey);
- return memberVarHttpClient
- .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
- .thenComposeAsync(
- localVarResponse -> {
- if (memberVarAsyncResponseInterceptor != null) {
- memberVarAsyncResponseInterceptor.accept(localVarResponse);
- }
- // Ahead of the status check, which fails the future: the lifecycle
- // header
- // is present on allowed error responses too.
- LifecycleWarning.warn(
- localVarResponse.headers(),
- "publishDraftLegacy",
- localVarResponse.statusCode());
- if (localVarResponse.statusCode() / 100 != 2) {
- return CompletableFuture.failedFuture(
- getApiException(
- "publishDraftLegacy", localVarResponse));
- }
- try {
- String responseBody = localVarResponse.body();
- return CompletableFuture.completedFuture(
- new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseBody == null || responseBody.isBlank()
- ? null
- : memberVarObjectMapper.readValue(
- responseBody,
- new TypeReference<
- LegacyPublishResult>() {})));
- } catch (IOException e) {
- return CompletableFuture.failedFuture(new ApiException(e));
- }
- })
- .handle(
- (localVarApiResponse, localVarThrowable) ->
- localVarThrowable == null
- ? CompletableFuture.completedFuture(localVarApiResponse)
- : CompletableFuture
- .>failedFuture(
- toApiFailure(localVarThrowable)))
- .thenCompose(localVarNormalized -> localVarNormalized);
- } catch (ApiException e) {
- return CompletableFuture.failedFuture(e);
- }
- }
-
- private HttpRequest.Builder publishDraftLegacyRequestBuilder(
- LegacyPublishDraftRequest legacyPublishDraftRequest, String idempotencyKey)
- throws ApiException {
- ValidationUtils.assertParamExists(
- "publishDraftLegacy", "legacyPublishDraftRequest", legacyPublishDraftRequest);
-
- HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
- String localVarPath = "/tap/draft";
-
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
- if (idempotencyKey != null) {
- localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString());
- }
- localVarRequestBuilder.header("Content-Type", "application/json");
- localVarRequestBuilder.header("Accept", "application/json");
-
- try {
- byte[] localVarPostBody =
- memberVarObjectMapper.writeValueAsBytes(legacyPublishDraftRequest);
- localVarRequestBuilder.method(
- "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
- } catch (IOException e) {
- throw new ApiException(e);
- }
- if (memberVarReadTimeout != null) {
- localVarRequestBuilder.timeout(memberVarReadTimeout);
- }
- if (memberVarInterceptor != null) {
- memberVarInterceptor.accept(localVarRequestBuilder);
- }
- return localVarRequestBuilder;
- }
- /**
- * Send publish request for a set of policy rules Send publish request of set of policy rules
- * and returns the response. **Note:** These endpoints are currently in beta and might be
- * subject to changes. If you want to participate and learn more about the Fireblocks TAP,
- * please contact your Fireblocks Customer Success Manager or send an email to
- * CSM@fireblocks.com.
- *
- * @param legacyPolicyRules (required)
- * @param idempotencyKey A unique identifier for the request. If the request is sent multiple
- * times with the same idempotency key, the server will return the same response as the
- * first request. The idempotency key is valid for 24 hours. (optional)
- * @return CompletableFuture<ApiResponse<LegacyPublishResult>>, which completes
- * exceptionally with an {@link ApiException} if the API call fails
- */
- public CompletableFuture> publishPolicyRules(
- LegacyPolicyRules legacyPolicyRules, String idempotencyKey) {
- try {
- HttpRequest.Builder localVarRequestBuilder =
- publishPolicyRulesRequestBuilder(legacyPolicyRules, idempotencyKey);
- return memberVarHttpClient
- .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
- .thenComposeAsync(
- localVarResponse -> {
- if (memberVarAsyncResponseInterceptor != null) {
- memberVarAsyncResponseInterceptor.accept(localVarResponse);
- }
- // Ahead of the status check, which fails the future: the lifecycle
- // header
- // is present on allowed error responses too.
- LifecycleWarning.warn(
- localVarResponse.headers(),
- "publishPolicyRules",
- localVarResponse.statusCode());
- if (localVarResponse.statusCode() / 100 != 2) {
- return CompletableFuture.failedFuture(
- getApiException(
- "publishPolicyRules", localVarResponse));
- }
- try {
- String responseBody = localVarResponse.body();
- return CompletableFuture.completedFuture(
- new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseBody == null || responseBody.isBlank()
- ? null
- : memberVarObjectMapper.readValue(
- responseBody,
- new TypeReference<
- LegacyPublishResult>() {})));
- } catch (IOException e) {
- return CompletableFuture.failedFuture(new ApiException(e));
- }
- })
- .handle(
- (localVarApiResponse, localVarThrowable) ->
- localVarThrowable == null
- ? CompletableFuture.completedFuture(localVarApiResponse)
- : CompletableFuture
- .>failedFuture(
- toApiFailure(localVarThrowable)))
- .thenCompose(localVarNormalized -> localVarNormalized);
- } catch (ApiException e) {
- return CompletableFuture.failedFuture(e);
- }
- }
-
- private HttpRequest.Builder publishPolicyRulesRequestBuilder(
- LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException {
- ValidationUtils.assertParamExists(
- "publishPolicyRules", "legacyPolicyRules", legacyPolicyRules);
-
- HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
- String localVarPath = "/tap/publish";
-
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
- if (idempotencyKey != null) {
- localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString());
- }
- localVarRequestBuilder.header("Content-Type", "application/json");
- localVarRequestBuilder.header("Accept", "application/json");
-
- try {
- byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules);
- localVarRequestBuilder.method(
- "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
- } catch (IOException e) {
- throw new ApiException(e);
- }
- if (memberVarReadTimeout != null) {
- localVarRequestBuilder.timeout(memberVarReadTimeout);
- }
- if (memberVarInterceptor != null) {
- memberVarInterceptor.accept(localVarRequestBuilder);
- }
- return localVarRequestBuilder;
- }
- /**
- * Update the draft with a new set of rules Legacy Endpoint – Update the draft and return its
- * validation. **Note:** - This endpoint will remain available for the foreseeable future and is
- * not deprecated. - The `updateDraft` endpoint under policy/paths provides policy
- * type-specific operations and improved functionality. - These endpoints are currently in beta
- * and might be subject to changes. If you want to participate and learn more about the
- * Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to
- * CSM@fireblocks.com.
- *
- * @param legacyPolicyRules (required)
- * @param idempotencyKey A unique identifier for the request. If the request is sent multiple
- * times with the same idempotency key, the server will return the same response as the
- * first request. The idempotency key is valid for 24 hours. (optional)
- * @return CompletableFuture<ApiResponse<LegacyDraftReviewAndValidationResponse>>,
- * which completes exceptionally with an {@link ApiException} if the API call fails
- */
- public CompletableFuture> updateDraftLegacy(
- LegacyPolicyRules legacyPolicyRules, String idempotencyKey) {
- try {
- HttpRequest.Builder localVarRequestBuilder =
- updateDraftLegacyRequestBuilder(legacyPolicyRules, idempotencyKey);
- return memberVarHttpClient
- .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())
- .thenComposeAsync(
- localVarResponse -> {
- if (memberVarAsyncResponseInterceptor != null) {
- memberVarAsyncResponseInterceptor.accept(localVarResponse);
- }
- // Ahead of the status check, which fails the future: the lifecycle
- // header
- // is present on allowed error responses too.
- LifecycleWarning.warn(
- localVarResponse.headers(),
- "updateDraftLegacy",
- localVarResponse.statusCode());
- if (localVarResponse.statusCode() / 100 != 2) {
- return CompletableFuture.failedFuture(
- getApiException("updateDraftLegacy", localVarResponse));
- }
- try {
- String responseBody = localVarResponse.body();
- return CompletableFuture.completedFuture(
- new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- responseBody == null || responseBody.isBlank()
- ? null
- : memberVarObjectMapper.readValue(
- responseBody,
- new TypeReference<
- LegacyDraftReviewAndValidationResponse>() {})));
- } catch (IOException e) {
- return CompletableFuture.failedFuture(new ApiException(e));
- }
- })
- .handle(
- (localVarApiResponse, localVarThrowable) ->
- localVarThrowable == null
- ? CompletableFuture.completedFuture(localVarApiResponse)
- : CompletableFuture
- .>
- failedFuture(
- toApiFailure(
- localVarThrowable)))
- .thenCompose(localVarNormalized -> localVarNormalized);
- } catch (ApiException e) {
- return CompletableFuture.failedFuture(e);
- }
- }
-
- private HttpRequest.Builder updateDraftLegacyRequestBuilder(
- LegacyPolicyRules legacyPolicyRules, String idempotencyKey) throws ApiException {
- ValidationUtils.assertParamExists(
- "updateDraftLegacy", "legacyPolicyRules", legacyPolicyRules);
-
- HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
- String localVarPath = "/tap/draft";
-
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
- if (idempotencyKey != null) {
- localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString());
- }
- localVarRequestBuilder.header("Content-Type", "application/json");
- localVarRequestBuilder.header("Accept", "application/json");
-
- try {
- byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(legacyPolicyRules);
- localVarRequestBuilder.method(
- "PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
- } catch (IOException e) {
- throw new ApiException(e);
- }
- if (memberVarReadTimeout != null) {
- localVarRequestBuilder.timeout(memberVarReadTimeout);
- }
- if (memberVarInterceptor != null) {
- memberVarInterceptor.accept(localVarRequestBuilder);
- }
- return localVarRequestBuilder;
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java b/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java
deleted file mode 100644
index 7e4b8bb5..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethod.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-/**
- * * PER_SINGLE_MATCH - Apply the limit to each listed entity * ACROSS_ALL_MATCHES - Apply the limit
- * to the sum of all listed entities
- */
-public enum LegacyAmountAggregationTimePeriodMethod {
- PER_SINGLE_MATCH("PER_SINGLE_MATCH"),
-
- ACROSS_ALL_MATCHES("ACROSS_ALL_MATCHES");
-
- private String value;
-
- LegacyAmountAggregationTimePeriodMethod(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static LegacyAmountAggregationTimePeriodMethod fromValue(String value) {
- for (LegacyAmountAggregationTimePeriodMethod b :
- LegacyAmountAggregationTimePeriodMethod.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- if (prefix == null) {
- prefix = "";
- }
-
- return String.format("%s=%s", prefix, this.toString());
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java
deleted file mode 100644
index b277076c..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyDraftResponse.java
+++ /dev/null
@@ -1,291 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Response object for draft operations */
-@JsonPropertyOrder({
- LegacyDraftResponse.JSON_PROPERTY_STATUS,
- LegacyDraftResponse.JSON_PROPERTY_RULES,
- LegacyDraftResponse.JSON_PROPERTY_DRAFT_ID,
- LegacyDraftResponse.JSON_PROPERTY_METADATA
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyDraftResponse {
- public static final String JSON_PROPERTY_STATUS = "status";
- @jakarta.annotation.Nonnull private String status;
-
- public static final String JSON_PROPERTY_RULES = "rules";
- @jakarta.annotation.Nonnull private List rules;
-
- public static final String JSON_PROPERTY_DRAFT_ID = "draftId";
- @jakarta.annotation.Nonnull private String draftId;
-
- public static final String JSON_PROPERTY_METADATA = "metadata";
- @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata;
-
- public LegacyDraftResponse() {}
-
- @JsonCreator
- public LegacyDraftResponse(
- @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status,
- @JsonProperty(value = JSON_PROPERTY_RULES, required = true)
- List rules,
- @JsonProperty(value = JSON_PROPERTY_DRAFT_ID, required = true) String draftId,
- @JsonProperty(value = JSON_PROPERTY_METADATA, required = true)
- LegacyPolicyMetadata metadata) {
- this.status = status;
- this.rules = rules;
- this.draftId = draftId;
- this.metadata = metadata;
- }
-
- public LegacyDraftResponse status(@jakarta.annotation.Nonnull String status) {
- this.status = status;
- return this;
- }
-
- /**
- * Operation status
- *
- * @return status
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getStatus() {
- return status;
- }
-
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setStatus(@jakarta.annotation.Nonnull String status) {
- this.status = status;
- }
-
- public LegacyDraftResponse rules(@jakarta.annotation.Nonnull List rules) {
- this.rules = rules;
- return this;
- }
-
- public LegacyDraftResponse addRulesItem(LegacyPolicyRule rulesItem) {
- if (this.rules == null) {
- this.rules = new ArrayList<>();
- }
- this.rules.add(rulesItem);
- return this;
- }
-
- /**
- * Draft rules
- *
- * @return rules
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getRules() {
- return rules;
- }
-
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setRules(@jakarta.annotation.Nonnull List rules) {
- this.rules = rules;
- }
-
- public LegacyDraftResponse draftId(@jakarta.annotation.Nonnull String draftId) {
- this.draftId = draftId;
- return this;
- }
-
- /**
- * Draft unique id
- *
- * @return draftId
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_DRAFT_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getDraftId() {
- return draftId;
- }
-
- @JsonProperty(JSON_PROPERTY_DRAFT_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setDraftId(@jakarta.annotation.Nonnull String draftId) {
- this.draftId = draftId;
- }
-
- public LegacyDraftResponse metadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) {
- this.metadata = metadata;
- return this;
- }
-
- /**
- * Get metadata
- *
- * @return metadata
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_METADATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyMetadata getMetadata() {
- return metadata;
- }
-
- @JsonProperty(JSON_PROPERTY_METADATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) {
- this.metadata = metadata;
- }
-
- /** Return true if this LegacyDraftResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyDraftResponse legacyDraftResponse = (LegacyDraftResponse) o;
- return Objects.equals(this.status, legacyDraftResponse.status)
- && Objects.equals(this.rules, legacyDraftResponse.rules)
- && Objects.equals(this.draftId, legacyDraftResponse.draftId)
- && Objects.equals(this.metadata, legacyDraftResponse.metadata);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(status, rules, draftId, metadata);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyDraftResponse {\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" rules: ").append(toIndentedString(rules)).append("\n");
- sb.append(" draftId: ").append(toIndentedString(draftId)).append("\n");
- sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `status` to the URL query string
- if (getStatus() != null) {
- joiner.add(
- String.format(
- "%sstatus%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getStatus()))));
- }
-
- // add `rules` to the URL query string
- if (getRules() != null) {
- for (int i = 0; i < getRules().size(); i++) {
- if (getRules().get(i) != null) {
- joiner.add(
- getRules()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%srules%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
- // add `draftId` to the URL query string
- if (getDraftId() != null) {
- joiner.add(
- String.format(
- "%sdraftId%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDraftId()))));
- }
-
- // add `metadata` to the URL query string
- if (getMetadata() != null) {
- joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java
deleted file mode 100644
index 0a2740fe..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponse.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Draft validation */
-@JsonPropertyOrder({
- LegacyDraftReviewAndValidationResponse.JSON_PROPERTY_DRAFT_RESPONSE,
- LegacyDraftReviewAndValidationResponse.JSON_PROPERTY_VALIDATION
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyDraftReviewAndValidationResponse {
- public static final String JSON_PROPERTY_DRAFT_RESPONSE = "draftResponse";
- @jakarta.annotation.Nonnull private LegacyDraftResponse draftResponse;
-
- public static final String JSON_PROPERTY_VALIDATION = "validation";
- @jakarta.annotation.Nonnull private LegacyPolicyValidation validation;
-
- public LegacyDraftReviewAndValidationResponse() {}
-
- @JsonCreator
- public LegacyDraftReviewAndValidationResponse(
- @JsonProperty(value = JSON_PROPERTY_DRAFT_RESPONSE, required = true)
- LegacyDraftResponse draftResponse,
- @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true)
- LegacyPolicyValidation validation) {
- this.draftResponse = draftResponse;
- this.validation = validation;
- }
-
- public LegacyDraftReviewAndValidationResponse draftResponse(
- @jakarta.annotation.Nonnull LegacyDraftResponse draftResponse) {
- this.draftResponse = draftResponse;
- return this;
- }
-
- /**
- * Get draftResponse
- *
- * @return draftResponse
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyDraftResponse getDraftResponse() {
- return draftResponse;
- }
-
- @JsonProperty(JSON_PROPERTY_DRAFT_RESPONSE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setDraftResponse(@jakarta.annotation.Nonnull LegacyDraftResponse draftResponse) {
- this.draftResponse = draftResponse;
- }
-
- public LegacyDraftReviewAndValidationResponse validation(
- @jakarta.annotation.Nonnull LegacyPolicyValidation validation) {
- this.validation = validation;
- return this;
- }
-
- /**
- * Get validation
- *
- * @return validation
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_VALIDATION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyValidation getValidation() {
- return validation;
- }
-
- @JsonProperty(JSON_PROPERTY_VALIDATION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setValidation(@jakarta.annotation.Nonnull LegacyPolicyValidation validation) {
- this.validation = validation;
- }
-
- /** Return true if this LegacyDraftReviewAndValidationResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyDraftReviewAndValidationResponse legacyDraftReviewAndValidationResponse =
- (LegacyDraftReviewAndValidationResponse) o;
- return Objects.equals(
- this.draftResponse, legacyDraftReviewAndValidationResponse.draftResponse)
- && Objects.equals(
- this.validation, legacyDraftReviewAndValidationResponse.validation);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(draftResponse, validation);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyDraftReviewAndValidationResponse {\n");
- sb.append(" draftResponse: ").append(toIndentedString(draftResponse)).append("\n");
- sb.append(" validation: ").append(toIndentedString(validation)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `draftResponse` to the URL query string
- if (getDraftResponse() != null) {
- joiner.add(getDraftResponse().toUrlQueryString(prefix + "draftResponse" + suffix));
- }
-
- // add `validation` to the URL query string
- if (getValidation() != null) {
- joiner.add(getValidation().toUrlQueryString(prefix + "validation" + suffix));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java
deleted file mode 100644
index 8c473285..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponse.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Policy validation */
-@JsonPropertyOrder({
- LegacyPolicyAndValidationResponse.JSON_PROPERTY_POLICY,
- LegacyPolicyAndValidationResponse.JSON_PROPERTY_VALIDATION
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyAndValidationResponse {
- public static final String JSON_PROPERTY_POLICY = "policy";
- @jakarta.annotation.Nonnull private LegacyPolicyResponse policy;
-
- public static final String JSON_PROPERTY_VALIDATION = "validation";
- @jakarta.annotation.Nonnull private LegacyPolicyValidation validation;
-
- public LegacyPolicyAndValidationResponse() {}
-
- @JsonCreator
- public LegacyPolicyAndValidationResponse(
- @JsonProperty(value = JSON_PROPERTY_POLICY, required = true)
- LegacyPolicyResponse policy,
- @JsonProperty(value = JSON_PROPERTY_VALIDATION, required = true)
- LegacyPolicyValidation validation) {
- this.policy = policy;
- this.validation = validation;
- }
-
- public LegacyPolicyAndValidationResponse policy(
- @jakarta.annotation.Nonnull LegacyPolicyResponse policy) {
- this.policy = policy;
- return this;
- }
-
- /**
- * Get policy
- *
- * @return policy
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_POLICY)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyResponse getPolicy() {
- return policy;
- }
-
- @JsonProperty(JSON_PROPERTY_POLICY)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setPolicy(@jakarta.annotation.Nonnull LegacyPolicyResponse policy) {
- this.policy = policy;
- }
-
- public LegacyPolicyAndValidationResponse validation(
- @jakarta.annotation.Nonnull LegacyPolicyValidation validation) {
- this.validation = validation;
- return this;
- }
-
- /**
- * Get validation
- *
- * @return validation
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_VALIDATION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyValidation getValidation() {
- return validation;
- }
-
- @JsonProperty(JSON_PROPERTY_VALIDATION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setValidation(@jakarta.annotation.Nonnull LegacyPolicyValidation validation) {
- this.validation = validation;
- }
-
- /** Return true if this LegacyPolicyAndValidationResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyAndValidationResponse legacyPolicyAndValidationResponse =
- (LegacyPolicyAndValidationResponse) o;
- return Objects.equals(this.policy, legacyPolicyAndValidationResponse.policy)
- && Objects.equals(this.validation, legacyPolicyAndValidationResponse.validation);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(policy, validation);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyAndValidationResponse {\n");
- sb.append(" policy: ").append(toIndentedString(policy)).append("\n");
- sb.append(" validation: ").append(toIndentedString(validation)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `policy` to the URL query string
- if (getPolicy() != null) {
- joiner.add(getPolicy().toUrlQueryString(prefix + "policy" + suffix));
- }
-
- // add `validation` to the URL query string
- if (getValidation() != null) {
- joiner.add(getValidation().toUrlQueryString(prefix + "validation" + suffix));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java
deleted file mode 100644
index 39b31801..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyCheckResult.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Policy rules validation result */
-@JsonPropertyOrder({
- LegacyPolicyCheckResult.JSON_PROPERTY_ERRORS,
- LegacyPolicyCheckResult.JSON_PROPERTY_RESULTS
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyCheckResult {
- public static final String JSON_PROPERTY_ERRORS = "errors";
- @jakarta.annotation.Nonnull private BigDecimal errors;
-
- public static final String JSON_PROPERTY_RESULTS = "results";
- @jakarta.annotation.Nonnull private List results;
-
- public LegacyPolicyCheckResult() {}
-
- @JsonCreator
- public LegacyPolicyCheckResult(
- @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) BigDecimal errors,
- @JsonProperty(value = JSON_PROPERTY_RESULTS, required = true)
- List results) {
- this.errors = errors;
- this.results = results;
- }
-
- public LegacyPolicyCheckResult errors(@jakarta.annotation.Nonnull BigDecimal errors) {
- this.errors = errors;
- return this;
- }
-
- /**
- * Number of errors
- *
- * @return errors
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ERRORS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public BigDecimal getErrors() {
- return errors;
- }
-
- @JsonProperty(JSON_PROPERTY_ERRORS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setErrors(@jakarta.annotation.Nonnull BigDecimal errors) {
- this.errors = errors;
- }
-
- public LegacyPolicyCheckResult results(
- @jakarta.annotation.Nonnull List results) {
- this.results = results;
- return this;
- }
-
- public LegacyPolicyCheckResult addResultsItem(LegacyPolicyRuleCheckResult resultsItem) {
- if (this.results == null) {
- this.results = new ArrayList<>();
- }
- this.results.add(resultsItem);
- return this;
- }
-
- /**
- * A set of validation results
- *
- * @return results
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_RESULTS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getResults() {
- return results;
- }
-
- @JsonProperty(JSON_PROPERTY_RESULTS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setResults(@jakarta.annotation.Nonnull List results) {
- this.results = results;
- }
-
- /** Return true if this LegacyPolicyCheckResult object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyCheckResult legacyPolicyCheckResult = (LegacyPolicyCheckResult) o;
- return Objects.equals(this.errors, legacyPolicyCheckResult.errors)
- && Objects.equals(this.results, legacyPolicyCheckResult.results);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(errors, results);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyCheckResult {\n");
- sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
- sb.append(" results: ").append(toIndentedString(results)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `errors` to the URL query string
- if (getErrors() != null) {
- joiner.add(
- String.format(
- "%serrors%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getErrors()))));
- }
-
- // add `results` to the URL query string
- if (getResults() != null) {
- for (int i = 0; i < getResults().size(); i++) {
- if (getResults().get(i) != null) {
- joiner.add(
- getResults()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%sresults%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java
deleted file mode 100644
index 54abc3ab..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyMetadata.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Policy related metadata */
-@JsonPropertyOrder({
- LegacyPolicyMetadata.JSON_PROPERTY_EDITED_BY,
- LegacyPolicyMetadata.JSON_PROPERTY_EDITED_AT,
- LegacyPolicyMetadata.JSON_PROPERTY_PUBLISHED_BY,
- LegacyPolicyMetadata.JSON_PROPERTY_PUBLISHED_AT
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyMetadata {
- public static final String JSON_PROPERTY_EDITED_BY = "editedBy";
- @jakarta.annotation.Nullable private String editedBy;
-
- public static final String JSON_PROPERTY_EDITED_AT = "editedAt";
- @jakarta.annotation.Nullable private String editedAt;
-
- public static final String JSON_PROPERTY_PUBLISHED_BY = "publishedBy";
- @jakarta.annotation.Nullable private String publishedBy;
-
- public static final String JSON_PROPERTY_PUBLISHED_AT = "publishedAt";
- @jakarta.annotation.Nullable private String publishedAt;
-
- public LegacyPolicyMetadata() {}
-
- public LegacyPolicyMetadata editedBy(@jakarta.annotation.Nullable String editedBy) {
- this.editedBy = editedBy;
- return this;
- }
-
- /**
- * The user id of the user who last edited the policy
- *
- * @return editedBy
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EDITED_BY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getEditedBy() {
- return editedBy;
- }
-
- @JsonProperty(JSON_PROPERTY_EDITED_BY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setEditedBy(@jakarta.annotation.Nullable String editedBy) {
- this.editedBy = editedBy;
- }
-
- public LegacyPolicyMetadata editedAt(@jakarta.annotation.Nullable String editedAt) {
- this.editedAt = editedAt;
- return this;
- }
-
- /**
- * The timestamp of the last edit of the policy
- *
- * @return editedAt
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EDITED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getEditedAt() {
- return editedAt;
- }
-
- @JsonProperty(JSON_PROPERTY_EDITED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setEditedAt(@jakarta.annotation.Nullable String editedAt) {
- this.editedAt = editedAt;
- }
-
- public LegacyPolicyMetadata publishedBy(@jakarta.annotation.Nullable String publishedBy) {
- this.publishedBy = publishedBy;
- return this;
- }
-
- /**
- * The user id of the user who last published the policy
- *
- * @return publishedBy
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_PUBLISHED_BY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getPublishedBy() {
- return publishedBy;
- }
-
- @JsonProperty(JSON_PROPERTY_PUBLISHED_BY)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPublishedBy(@jakarta.annotation.Nullable String publishedBy) {
- this.publishedBy = publishedBy;
- }
-
- public LegacyPolicyMetadata publishedAt(@jakarta.annotation.Nullable String publishedAt) {
- this.publishedAt = publishedAt;
- return this;
- }
-
- /**
- * The timestamp of the last publish of the policy
- *
- * @return publishedAt
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_PUBLISHED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getPublishedAt() {
- return publishedAt;
- }
-
- @JsonProperty(JSON_PROPERTY_PUBLISHED_AT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPublishedAt(@jakarta.annotation.Nullable String publishedAt) {
- this.publishedAt = publishedAt;
- }
-
- /** Return true if this LegacyPolicyMetadata object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyMetadata legacyPolicyMetadata = (LegacyPolicyMetadata) o;
- return Objects.equals(this.editedBy, legacyPolicyMetadata.editedBy)
- && Objects.equals(this.editedAt, legacyPolicyMetadata.editedAt)
- && Objects.equals(this.publishedBy, legacyPolicyMetadata.publishedBy)
- && Objects.equals(this.publishedAt, legacyPolicyMetadata.publishedAt);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(editedBy, editedAt, publishedBy, publishedAt);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyMetadata {\n");
- sb.append(" editedBy: ").append(toIndentedString(editedBy)).append("\n");
- sb.append(" editedAt: ").append(toIndentedString(editedAt)).append("\n");
- sb.append(" publishedBy: ").append(toIndentedString(publishedBy)).append("\n");
- sb.append(" publishedAt: ").append(toIndentedString(publishedAt)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `editedBy` to the URL query string
- if (getEditedBy() != null) {
- joiner.add(
- String.format(
- "%seditedBy%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getEditedBy()))));
- }
-
- // add `editedAt` to the URL query string
- if (getEditedAt() != null) {
- joiner.add(
- String.format(
- "%seditedAt%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getEditedAt()))));
- }
-
- // add `publishedBy` to the URL query string
- if (getPublishedBy() != null) {
- joiner.add(
- String.format(
- "%spublishedBy%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getPublishedBy()))));
- }
-
- // add `publishedAt` to the URL query string
- if (getPublishedAt() != null) {
- joiner.add(
- String.format(
- "%spublishedAt%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getPublishedAt()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java
deleted file mode 100644
index fd0337d5..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyResponse.java
+++ /dev/null
@@ -1,209 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Response object for policy operations */
-@JsonPropertyOrder({
- LegacyPolicyResponse.JSON_PROPERTY_RULES,
- LegacyPolicyResponse.JSON_PROPERTY_METADATA
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyResponse {
- public static final String JSON_PROPERTY_RULES = "rules";
- @jakarta.annotation.Nonnull private List rules;
-
- public static final String JSON_PROPERTY_METADATA = "metadata";
- @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata;
-
- public LegacyPolicyResponse() {}
-
- @JsonCreator
- public LegacyPolicyResponse(
- @JsonProperty(value = JSON_PROPERTY_RULES, required = true)
- List rules,
- @JsonProperty(value = JSON_PROPERTY_METADATA, required = true)
- LegacyPolicyMetadata metadata) {
- this.rules = rules;
- this.metadata = metadata;
- }
-
- public LegacyPolicyResponse rules(@jakarta.annotation.Nonnull List rules) {
- this.rules = rules;
- return this;
- }
-
- public LegacyPolicyResponse addRulesItem(LegacyPolicyRule rulesItem) {
- if (this.rules == null) {
- this.rules = new ArrayList<>();
- }
- this.rules.add(rulesItem);
- return this;
- }
-
- /**
- * A set of policy rules
- *
- * @return rules
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getRules() {
- return rules;
- }
-
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setRules(@jakarta.annotation.Nonnull List rules) {
- this.rules = rules;
- }
-
- public LegacyPolicyResponse metadata(
- @jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) {
- this.metadata = metadata;
- return this;
- }
-
- /**
- * Get metadata
- *
- * @return metadata
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_METADATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyMetadata getMetadata() {
- return metadata;
- }
-
- @JsonProperty(JSON_PROPERTY_METADATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) {
- this.metadata = metadata;
- }
-
- /** Return true if this LegacyPolicyResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyResponse legacyPolicyResponse = (LegacyPolicyResponse) o;
- return Objects.equals(this.rules, legacyPolicyResponse.rules)
- && Objects.equals(this.metadata, legacyPolicyResponse.metadata);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(rules, metadata);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyResponse {\n");
- sb.append(" rules: ").append(toIndentedString(rules)).append("\n");
- sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `rules` to the URL query string
- if (getRules() != null) {
- for (int i = 0; i < getRules().size(); i++) {
- if (getRules().get(i) != null) {
- joiner.add(
- getRules()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%srules%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
- // add `metadata` to the URL query string
- if (getMetadata() != null) {
- joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java
deleted file mode 100644
index 71c628f0..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRule.java
+++ /dev/null
@@ -1,1610 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonValue;
-import com.fireblocks.sdk.ApiClient;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Policy rule which is enforced on transactions */
-@JsonPropertyOrder({
- LegacyPolicyRule.JSON_PROPERTY_OPERATOR,
- LegacyPolicyRule.JSON_PROPERTY_OPERATORS,
- LegacyPolicyRule.JSON_PROPERTY_TRANSACTION_TYPE,
- LegacyPolicyRule.JSON_PROPERTY_DESIGNATED_SIGNER,
- LegacyPolicyRule.JSON_PROPERTY_DESIGNATED_SIGNERS,
- LegacyPolicyRule.JSON_PROPERTY_TYPE,
- LegacyPolicyRule.JSON_PROPERTY_ACTION,
- LegacyPolicyRule.JSON_PROPERTY_ASSET,
- LegacyPolicyRule.JSON_PROPERTY_SRC_TYPE,
- LegacyPolicyRule.JSON_PROPERTY_SRC_SUB_TYPE,
- LegacyPolicyRule.JSON_PROPERTY_SRC_ID,
- LegacyPolicyRule.JSON_PROPERTY_SRC,
- LegacyPolicyRule.JSON_PROPERTY_DST_TYPE,
- LegacyPolicyRule.JSON_PROPERTY_DST_SUB_TYPE,
- LegacyPolicyRule.JSON_PROPERTY_DST_ID,
- LegacyPolicyRule.JSON_PROPERTY_DST,
- LegacyPolicyRule.JSON_PROPERTY_DST_ADDRESS_TYPE,
- LegacyPolicyRule.JSON_PROPERTY_AMOUNT_CURRENCY,
- LegacyPolicyRule.JSON_PROPERTY_AMOUNT_SCOPE,
- LegacyPolicyRule.JSON_PROPERTY_AMOUNT,
- LegacyPolicyRule.JSON_PROPERTY_PERIOD_SEC,
- LegacyPolicyRule.JSON_PROPERTY_AUTHORIZERS,
- LegacyPolicyRule.JSON_PROPERTY_AUTHORIZERS_COUNT,
- LegacyPolicyRule.JSON_PROPERTY_AUTHORIZATION_GROUPS,
- LegacyPolicyRule.JSON_PROPERTY_AMOUNT_AGGREGATION,
- LegacyPolicyRule.JSON_PROPERTY_RAW_MESSAGE_SIGNING,
- LegacyPolicyRule.JSON_PROPERTY_APPLY_FOR_APPROVE,
- LegacyPolicyRule.JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE,
- LegacyPolicyRule.JSON_PROPERTY_EXTERNAL_DESCRIPTOR
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRule {
- public static final String JSON_PROPERTY_OPERATOR = "operator";
- @jakarta.annotation.Nullable private String operator;
-
- public static final String JSON_PROPERTY_OPERATORS = "operators";
- @jakarta.annotation.Nullable private LegacyPolicyRuleOperators operators;
-
- /**
- * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers
- * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi
- * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT
- * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn
- * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets *
- * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain
- * assets for earning staking rewards. * RAW - An off-chain message with no predefined format,
- * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type
- * that follows a predefined format, used to sign specific messages that are not actual
- * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart
- * contracts) to execute transactions and interact with the blockchain.
- */
- public enum TransactionTypeEnum {
- TRANSFER(String.valueOf("TRANSFER")),
-
- CONTRACT_CALL(String.valueOf("CONTRACT_CALL")),
-
- APPROVE(String.valueOf("APPROVE")),
-
- MINT(String.valueOf("MINT")),
-
- BURN(String.valueOf("BURN")),
-
- SUPPLY(String.valueOf("SUPPLY")),
-
- REDEEM(String.valueOf("REDEEM")),
-
- STAKE(String.valueOf("STAKE")),
-
- RAW(String.valueOf("RAW")),
-
- TYPED_MESSAGE(String.valueOf("TYPED_MESSAGE")),
-
- PROGRAM_CALL(String.valueOf("PROGRAM_CALL"));
-
- private String value;
-
- TransactionTypeEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static TransactionTypeEnum fromValue(String value) {
- for (TransactionTypeEnum b : TransactionTypeEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_TRANSACTION_TYPE = "transactionType";
- @jakarta.annotation.Nullable private TransactionTypeEnum transactionType;
-
- public static final String JSON_PROPERTY_DESIGNATED_SIGNER = "designatedSigner";
- @jakarta.annotation.Nullable private String designatedSigner;
-
- public static final String JSON_PROPERTY_DESIGNATED_SIGNERS = "designatedSigners";
- @jakarta.annotation.Nullable private LegacyPolicyRuleDesignatedSigners designatedSigners;
-
- /** Policy rule type */
- public enum TypeEnum {
- TRANSFER(String.valueOf("TRANSFER"));
-
- private String value;
-
- TypeEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static TypeEnum fromValue(String value) {
- for (TypeEnum b : TypeEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_TYPE = "type";
- @jakarta.annotation.Nonnull private TypeEnum type;
-
- /**
- * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The
- * transaction goes through and can be signed without requiring additional approvals * BLOCK -
- * The transaction is automatically blocked * 2-TIER - Only these users or user groups can
- * approve If any of them reject the transaction before the required approval threshold is met,
- * the transaction doesn't go through The list of entities are set is
- * \"authorizationGroups\" field
- */
- public enum ActionEnum {
- ALLOW(String.valueOf("ALLOW")),
-
- BLOCK(String.valueOf("BLOCK")),
-
- _2_TIER(String.valueOf("2-TIER"));
-
- private String value;
-
- ActionEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static ActionEnum fromValue(String value) {
- for (ActionEnum b : ActionEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_ACTION = "action";
- @jakarta.annotation.Nonnull private ActionEnum action;
-
- public static final String JSON_PROPERTY_ASSET = "asset";
- @jakarta.annotation.Nonnull private String asset;
-
- public static final String JSON_PROPERTY_SRC_TYPE = "srcType";
- @jakarta.annotation.Nullable private LegacyPolicySrcOrDestType srcType;
-
- public static final String JSON_PROPERTY_SRC_SUB_TYPE = "srcSubType";
- @jakarta.annotation.Nullable private LegacyPolicySrcOrDestSubType srcSubType;
-
- public static final String JSON_PROPERTY_SRC_ID = "srcId";
- @jakarta.annotation.Nullable private String srcId;
-
- public static final String JSON_PROPERTY_SRC = "src";
- @jakarta.annotation.Nullable private LegacyPolicyRuleSrc src;
-
- public static final String JSON_PROPERTY_DST_TYPE = "dstType";
- @jakarta.annotation.Nullable private LegacyPolicySrcOrDestType dstType;
-
- public static final String JSON_PROPERTY_DST_SUB_TYPE = "dstSubType";
- @jakarta.annotation.Nullable private LegacyPolicySrcOrDestSubType dstSubType;
-
- public static final String JSON_PROPERTY_DST_ID = "dstId";
- @jakarta.annotation.Nullable private String dstId;
-
- public static final String JSON_PROPERTY_DST = "dst";
- @jakarta.annotation.Nullable private LegacyPolicyRuleDst dst;
-
- /**
- * Defines whether the destination to which you are sending funds must be whitelisted, to allow
- * one-time transfers to non-whitelisted external addresses, or both. By default, you can only
- * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to
- * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. *
- * \"*\" - can be sent to whitelisted addresses or non-whitelisted external
- */
- public enum DstAddressTypeEnum {
- WHITELISTED(String.valueOf("WHITELISTED")),
-
- ONE_TIME(String.valueOf("ONE_TIME")),
-
- STAR(String.valueOf("*"));
-
- private String value;
-
- DstAddressTypeEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static DstAddressTypeEnum fromValue(String value) {
- for (DstAddressTypeEnum b : DstAddressTypeEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_DST_ADDRESS_TYPE = "dstAddressType";
- @jakarta.annotation.Nullable private DstAddressTypeEnum dstAddressType;
-
- /**
- * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the
- * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent
- * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a
- * specific asset.
- */
- public enum AmountCurrencyEnum {
- USD(String.valueOf("USD")),
-
- EUR(String.valueOf("EUR")),
-
- NATIVE(String.valueOf("NATIVE"));
-
- private String value;
-
- AmountCurrencyEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static AmountCurrencyEnum fromValue(String value) {
- for (AmountCurrencyEnum b : AmountCurrencyEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_AMOUNT_CURRENCY = "amountCurrency";
- @jakarta.annotation.Nonnull private AmountCurrencyEnum amountCurrency;
-
- /**
- * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all
- * transactions within the defined time period
- */
- public enum AmountScopeEnum {
- SINGLE_TX(String.valueOf("SINGLE_TX")),
-
- TIMEFRAME(String.valueOf("TIMEFRAME"));
-
- private String value;
-
- AmountScopeEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static AmountScopeEnum fromValue(String value) {
- for (AmountScopeEnum b : AmountScopeEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_AMOUNT_SCOPE = "amountScope";
- @jakarta.annotation.Nonnull private AmountScopeEnum amountScope;
-
- public static final String JSON_PROPERTY_AMOUNT = "amount";
- @jakarta.annotation.Nonnull private LegacyPolicyRuleAmount amount;
-
- public static final String JSON_PROPERTY_PERIOD_SEC = "periodSec";
- @jakarta.annotation.Nonnull private BigDecimal periodSec;
-
- public static final String JSON_PROPERTY_AUTHORIZERS = "authorizers";
- @jakarta.annotation.Nullable private List authorizers;
-
- public static final String JSON_PROPERTY_AUTHORIZERS_COUNT = "authorizersCount";
- @jakarta.annotation.Nullable private BigDecimal authorizersCount;
-
- public static final String JSON_PROPERTY_AUTHORIZATION_GROUPS = "authorizationGroups";
- @jakarta.annotation.Nullable private LegacyPolicyRuleAuthorizationGroups authorizationGroups;
-
- public static final String JSON_PROPERTY_AMOUNT_AGGREGATION = "amountAggregation";
- @jakarta.annotation.Nullable private LegacyPolicyRuleAmountAggregation amountAggregation;
-
- public static final String JSON_PROPERTY_RAW_MESSAGE_SIGNING = "rawMessageSigning";
- @jakarta.annotation.Nullable private LegacyPolicyRuleRawMessageSigning rawMessageSigning;
-
- public static final String JSON_PROPERTY_APPLY_FOR_APPROVE = "applyForApprove";
- @jakarta.annotation.Nullable private Boolean applyForApprove;
-
- public static final String JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE = "applyForTypedMessage";
- @jakarta.annotation.Nullable private Boolean applyForTypedMessage;
-
- public static final String JSON_PROPERTY_EXTERNAL_DESCRIPTOR = "externalDescriptor";
- @jakarta.annotation.Nullable private String externalDescriptor;
-
- public LegacyPolicyRule() {}
-
- @JsonCreator
- public LegacyPolicyRule(
- @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) TypeEnum type,
- @JsonProperty(value = JSON_PROPERTY_ACTION, required = true) ActionEnum action,
- @JsonProperty(value = JSON_PROPERTY_ASSET, required = true) String asset,
- @JsonProperty(value = JSON_PROPERTY_AMOUNT_CURRENCY, required = true)
- AmountCurrencyEnum amountCurrency,
- @JsonProperty(value = JSON_PROPERTY_AMOUNT_SCOPE, required = true)
- AmountScopeEnum amountScope,
- @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true)
- LegacyPolicyRuleAmount amount,
- @JsonProperty(value = JSON_PROPERTY_PERIOD_SEC, required = true) BigDecimal periodSec) {
- this.type = type;
- this.action = action;
- this.asset = asset;
- this.amountCurrency = amountCurrency;
- this.amountScope = amountScope;
- this.amount = amount;
- this.periodSec = periodSec;
- }
-
- public LegacyPolicyRule operator(@jakarta.annotation.Nullable String operator) {
- this.operator = operator;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"operators\") | Defines users who can initiate the type
- * of transaction to which the rule applies. options are * \"*\" - All users are
- * allowed * Specific User id
- *
- * @return operator
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_OPERATOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getOperator() {
- return operator;
- }
-
- @JsonProperty(JSON_PROPERTY_OPERATOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOperator(@jakarta.annotation.Nullable String operator) {
- this.operator = operator;
- }
-
- public LegacyPolicyRule operators(
- @jakarta.annotation.Nullable LegacyPolicyRuleOperators operators) {
- this.operators = operators;
- return this;
- }
-
- /**
- * Get operators
- *
- * @return operators
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_OPERATORS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleOperators getOperators() {
- return operators;
- }
-
- @JsonProperty(JSON_PROPERTY_OPERATORS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOperators(@jakarta.annotation.Nullable LegacyPolicyRuleOperators operators) {
- this.operators = operators;
- }
-
- public LegacyPolicyRule transactionType(
- @jakarta.annotation.Nullable TransactionTypeEnum transactionType) {
- this.transactionType = transactionType;
- return this;
- }
-
- /**
- * Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers
- * funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi
- * operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT
- * - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn
- * operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets *
- * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain
- * assets for earning staking rewards. * RAW - An off-chain message with no predefined format,
- * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type
- * that follows a predefined format, used to sign specific messages that are not actual
- * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart
- * contracts) to execute transactions and interact with the blockchain.
- *
- * @return transactionType
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public TransactionTypeEnum getTransactionType() {
- return transactionType;
- }
-
- @JsonProperty(JSON_PROPERTY_TRANSACTION_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setTransactionType(
- @jakarta.annotation.Nullable TransactionTypeEnum transactionType) {
- this.transactionType = transactionType;
- }
-
- public LegacyPolicyRule designatedSigner(@jakarta.annotation.Nullable String designatedSigner) {
- this.designatedSigner = designatedSigner;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"designatedSigners\") Id representing the user who signs
- * transactions that match a specific rule
- *
- * @return designatedSigner
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getDesignatedSigner() {
- return designatedSigner;
- }
-
- @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDesignatedSigner(@jakarta.annotation.Nullable String designatedSigner) {
- this.designatedSigner = designatedSigner;
- }
-
- public LegacyPolicyRule designatedSigners(
- @jakarta.annotation.Nullable LegacyPolicyRuleDesignatedSigners designatedSigners) {
- this.designatedSigners = designatedSigners;
- return this;
- }
-
- /**
- * Get designatedSigners
- *
- * @return designatedSigners
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleDesignatedSigners getDesignatedSigners() {
- return designatedSigners;
- }
-
- @JsonProperty(JSON_PROPERTY_DESIGNATED_SIGNERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDesignatedSigners(
- @jakarta.annotation.Nullable LegacyPolicyRuleDesignatedSigners designatedSigners) {
- this.designatedSigners = designatedSigners;
- }
-
- public LegacyPolicyRule type(@jakarta.annotation.Nonnull TypeEnum type) {
- this.type = type;
- return this;
- }
-
- /**
- * Policy rule type
- *
- * @return type
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public TypeEnum getType() {
- return type;
- }
-
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setType(@jakarta.annotation.Nonnull TypeEnum type) {
- this.type = type;
- }
-
- public LegacyPolicyRule action(@jakarta.annotation.Nonnull ActionEnum action) {
- this.action = action;
- return this;
- }
-
- /**
- * Defines what occurs when a transaction meets the rule's criteria * ALLOW - The
- * transaction goes through and can be signed without requiring additional approvals * BLOCK -
- * The transaction is automatically blocked * 2-TIER - Only these users or user groups can
- * approve If any of them reject the transaction before the required approval threshold is met,
- * the transaction doesn't go through The list of entities are set is
- * \"authorizationGroups\" field
- *
- * @return action
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ACTION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public ActionEnum getAction() {
- return action;
- }
-
- @JsonProperty(JSON_PROPERTY_ACTION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAction(@jakarta.annotation.Nonnull ActionEnum action) {
- this.action = action;
- }
-
- public LegacyPolicyRule asset(@jakarta.annotation.Nonnull String asset) {
- this.asset = asset;
- return this;
- }
-
- /**
- * Defines the type of asset being transacted, options are * \"*\" - All assets *
- * Specific asset
- *
- * @return asset
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ASSET)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getAsset() {
- return asset;
- }
-
- @JsonProperty(JSON_PROPERTY_ASSET)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAsset(@jakarta.annotation.Nonnull String asset) {
- this.asset = asset;
- }
-
- public LegacyPolicyRule srcType(
- @jakarta.annotation.Nullable LegacyPolicySrcOrDestType srcType) {
- this.srcType = srcType;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"src\") source account type
- *
- * @return srcType
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_SRC_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicySrcOrDestType getSrcType() {
- return srcType;
- }
-
- @JsonProperty(JSON_PROPERTY_SRC_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSrcType(@jakarta.annotation.Nullable LegacyPolicySrcOrDestType srcType) {
- this.srcType = srcType;
- }
-
- public LegacyPolicyRule srcSubType(
- @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType srcSubType) {
- this.srcSubType = srcSubType;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"src\") source sub account type
- *
- * @return srcSubType
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicySrcOrDestSubType getSrcSubType() {
- return srcSubType;
- }
-
- @JsonProperty(JSON_PROPERTY_SRC_SUB_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSrcSubType(
- @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType srcSubType) {
- this.srcSubType = srcSubType;
- }
-
- public LegacyPolicyRule srcId(@jakarta.annotation.Nullable String srcId) {
- this.srcId = srcId;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"src\") source account id
- *
- * @return srcId
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_SRC_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getSrcId() {
- return srcId;
- }
-
- @JsonProperty(JSON_PROPERTY_SRC_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSrcId(@jakarta.annotation.Nullable String srcId) {
- this.srcId = srcId;
- }
-
- public LegacyPolicyRule src(@jakarta.annotation.Nullable LegacyPolicyRuleSrc src) {
- this.src = src;
- return this;
- }
-
- /**
- * Get src
- *
- * @return src
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_SRC)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleSrc getSrc() {
- return src;
- }
-
- @JsonProperty(JSON_PROPERTY_SRC)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSrc(@jakarta.annotation.Nullable LegacyPolicyRuleSrc src) {
- this.src = src;
- }
-
- public LegacyPolicyRule dstType(
- @jakarta.annotation.Nullable LegacyPolicySrcOrDestType dstType) {
- this.dstType = dstType;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"dst\") destination account type
- *
- * @return dstType
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DST_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicySrcOrDestType getDstType() {
- return dstType;
- }
-
- @JsonProperty(JSON_PROPERTY_DST_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDstType(@jakarta.annotation.Nullable LegacyPolicySrcOrDestType dstType) {
- this.dstType = dstType;
- }
-
- public LegacyPolicyRule dstSubType(
- @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType dstSubType) {
- this.dstSubType = dstSubType;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"dst\") destination sub account type
- *
- * @return dstSubType
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicySrcOrDestSubType getDstSubType() {
- return dstSubType;
- }
-
- @JsonProperty(JSON_PROPERTY_DST_SUB_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDstSubType(
- @jakarta.annotation.Nullable LegacyPolicySrcOrDestSubType dstSubType) {
- this.dstSubType = dstSubType;
- }
-
- public LegacyPolicyRule dstId(@jakarta.annotation.Nullable String dstId) {
- this.dstId = dstId;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"dst\") destination account id
- *
- * @return dstId
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DST_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getDstId() {
- return dstId;
- }
-
- @JsonProperty(JSON_PROPERTY_DST_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDstId(@jakarta.annotation.Nullable String dstId) {
- this.dstId = dstId;
- }
-
- public LegacyPolicyRule dst(@jakarta.annotation.Nullable LegacyPolicyRuleDst dst) {
- this.dst = dst;
- return this;
- }
-
- /**
- * Get dst
- *
- * @return dst
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DST)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleDst getDst() {
- return dst;
- }
-
- @JsonProperty(JSON_PROPERTY_DST)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDst(@jakarta.annotation.Nullable LegacyPolicyRuleDst dst) {
- this.dst = dst;
- }
-
- public LegacyPolicyRule dstAddressType(
- @jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) {
- this.dstAddressType = dstAddressType;
- return this;
- }
-
- /**
- * Defines whether the destination to which you are sending funds must be whitelisted, to allow
- * one-time transfers to non-whitelisted external addresses, or both. By default, you can only
- * transfer to an external address after it’s whitelisted. * WHITELISTED - Can only be sent to
- * whitelisted addresses. * ONE_TIME - Can only be sent to non-whitelisted external addresses. *
- * \"*\" - can be sent to whitelisted addresses or non-whitelisted external
- *
- * @return dstAddressType
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public DstAddressTypeEnum getDstAddressType() {
- return dstAddressType;
- }
-
- @JsonProperty(JSON_PROPERTY_DST_ADDRESS_TYPE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDstAddressType(@jakarta.annotation.Nullable DstAddressTypeEnum dstAddressType) {
- this.dstAddressType = dstAddressType;
- }
-
- public LegacyPolicyRule amountCurrency(
- @jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) {
- this.amountCurrency = amountCurrency;
- return this;
- }
-
- /**
- * * USD - Limits the amount of any asset users can transfer based on the USD equivalent of the
- * asset. * EUR - Limits the amount of any asset users can transfer based on the EURO equivalent
- * of the asset. * NATIVE - Limits the amount of an asset a user can transfer when using a
- * specific asset.
- *
- * @return amountCurrency
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public AmountCurrencyEnum getAmountCurrency() {
- return amountCurrency;
- }
-
- @JsonProperty(JSON_PROPERTY_AMOUNT_CURRENCY)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAmountCurrency(@jakarta.annotation.Nonnull AmountCurrencyEnum amountCurrency) {
- this.amountCurrency = amountCurrency;
- }
-
- public LegacyPolicyRule amountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) {
- this.amountScope = amountScope;
- return this;
- }
-
- /**
- * * SINGLE_TX - limit applies to a single transaction * TIMEFRAME - limit applies to all
- * transactions within the defined time period
- *
- * @return amountScope
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public AmountScopeEnum getAmountScope() {
- return amountScope;
- }
-
- @JsonProperty(JSON_PROPERTY_AMOUNT_SCOPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAmountScope(@jakarta.annotation.Nonnull AmountScopeEnum amountScope) {
- this.amountScope = amountScope;
- }
-
- public LegacyPolicyRule amount(@jakarta.annotation.Nonnull LegacyPolicyRuleAmount amount) {
- this.amount = amount;
- return this;
- }
-
- /**
- * Get amount
- *
- * @return amount
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_AMOUNT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyRuleAmount getAmount() {
- return amount;
- }
-
- @JsonProperty(JSON_PROPERTY_AMOUNT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAmount(@jakarta.annotation.Nonnull LegacyPolicyRuleAmount amount) {
- this.amount = amount;
- }
-
- public LegacyPolicyRule periodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) {
- this.periodSec = periodSec;
- return this;
- }
-
- /**
- * Time period in seconds applied by the amountScope field to accumulate transferred amounts in
- * transactions that match the rule, until the total exceeds the value you specify under
- * Minimum. When the specified amount is reached within that period, whether by one or many
- * transactions, further transactions in that period either fail or require more approvals.
- *
- * @return periodSec
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_PERIOD_SEC)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public BigDecimal getPeriodSec() {
- return periodSec;
- }
-
- @JsonProperty(JSON_PROPERTY_PERIOD_SEC)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setPeriodSec(@jakarta.annotation.Nonnull BigDecimal periodSec) {
- this.periodSec = periodSec;
- }
-
- public LegacyPolicyRule authorizers(@jakarta.annotation.Nullable List authorizers) {
- this.authorizers = authorizers;
- return this;
- }
-
- public LegacyPolicyRule addAuthorizersItem(String authorizersItem) {
- if (this.authorizers == null) {
- this.authorizers = new ArrayList<>();
- }
- this.authorizers.add(authorizersItem);
- return this;
- }
-
- /**
- * (deprecated - replaced by \"authorizationGroups\") Allowed entities which can
- * approves a transaction
- *
- * @return authorizers
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_AUTHORIZERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getAuthorizers() {
- return authorizers;
- }
-
- @JsonProperty(JSON_PROPERTY_AUTHORIZERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAuthorizers(@jakarta.annotation.Nullable List authorizers) {
- this.authorizers = authorizers;
- }
-
- public LegacyPolicyRule authorizersCount(
- @jakarta.annotation.Nullable BigDecimal authorizersCount) {
- this.authorizersCount = authorizersCount;
- return this;
- }
-
- /**
- * (deprecated - replaced by \"authorizationGroups\") Min amount of entities which are
- * needed to approve a transaction
- *
- * @return authorizersCount
- * @deprecated
- */
- @Deprecated
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BigDecimal getAuthorizersCount() {
- return authorizersCount;
- }
-
- @JsonProperty(JSON_PROPERTY_AUTHORIZERS_COUNT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAuthorizersCount(@jakarta.annotation.Nullable BigDecimal authorizersCount) {
- this.authorizersCount = authorizersCount;
- }
-
- public LegacyPolicyRule authorizationGroups(
- @jakarta.annotation.Nullable LegacyPolicyRuleAuthorizationGroups authorizationGroups) {
- this.authorizationGroups = authorizationGroups;
- return this;
- }
-
- /**
- * Get authorizationGroups
- *
- * @return authorizationGroups
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleAuthorizationGroups getAuthorizationGroups() {
- return authorizationGroups;
- }
-
- @JsonProperty(JSON_PROPERTY_AUTHORIZATION_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAuthorizationGroups(
- @jakarta.annotation.Nullable LegacyPolicyRuleAuthorizationGroups authorizationGroups) {
- this.authorizationGroups = authorizationGroups;
- }
-
- public LegacyPolicyRule amountAggregation(
- @jakarta.annotation.Nullable LegacyPolicyRuleAmountAggregation amountAggregation) {
- this.amountAggregation = amountAggregation;
- return this;
- }
-
- /**
- * Get amountAggregation
- *
- * @return amountAggregation
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleAmountAggregation getAmountAggregation() {
- return amountAggregation;
- }
-
- @JsonProperty(JSON_PROPERTY_AMOUNT_AGGREGATION)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAmountAggregation(
- @jakarta.annotation.Nullable LegacyPolicyRuleAmountAggregation amountAggregation) {
- this.amountAggregation = amountAggregation;
- }
-
- public LegacyPolicyRule rawMessageSigning(
- @jakarta.annotation.Nullable LegacyPolicyRuleRawMessageSigning rawMessageSigning) {
- this.rawMessageSigning = rawMessageSigning;
- return this;
- }
-
- /**
- * Get rawMessageSigning
- *
- * @return rawMessageSigning
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleRawMessageSigning getRawMessageSigning() {
- return rawMessageSigning;
- }
-
- @JsonProperty(JSON_PROPERTY_RAW_MESSAGE_SIGNING)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setRawMessageSigning(
- @jakarta.annotation.Nullable LegacyPolicyRuleRawMessageSigning rawMessageSigning) {
- this.rawMessageSigning = rawMessageSigning;
- }
-
- public LegacyPolicyRule applyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) {
- this.applyForApprove = applyForApprove;
- return this;
- }
-
- /**
- * Applying this rule over APPROVE type transactions (can only be enabled when rule's
- * transaction type is TRANSFER)
- *
- * @return applyForApprove
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Boolean getApplyForApprove() {
- return applyForApprove;
- }
-
- @JsonProperty(JSON_PROPERTY_APPLY_FOR_APPROVE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setApplyForApprove(@jakarta.annotation.Nullable Boolean applyForApprove) {
- this.applyForApprove = applyForApprove;
- }
-
- public LegacyPolicyRule applyForTypedMessage(
- @jakarta.annotation.Nullable Boolean applyForTypedMessage) {
- this.applyForTypedMessage = applyForTypedMessage;
- return this;
- }
-
- /**
- * Applying this rule over TYPED_MESSAGE type transactions (can only be enabled when rule's
- * transaction type is CONTRACT_CALL)
- *
- * @return applyForTypedMessage
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Boolean getApplyForTypedMessage() {
- return applyForTypedMessage;
- }
-
- @JsonProperty(JSON_PROPERTY_APPLY_FOR_TYPED_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setApplyForTypedMessage(@jakarta.annotation.Nullable Boolean applyForTypedMessage) {
- this.applyForTypedMessage = applyForTypedMessage;
- }
-
- public LegacyPolicyRule externalDescriptor(
- @jakarta.annotation.Nullable String externalDescriptor) {
- this.externalDescriptor = externalDescriptor;
- return this;
- }
-
- /**
- * A unique id identifying the rule
- *
- * @return externalDescriptor
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getExternalDescriptor() {
- return externalDescriptor;
- }
-
- @JsonProperty(JSON_PROPERTY_EXTERNAL_DESCRIPTOR)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setExternalDescriptor(@jakarta.annotation.Nullable String externalDescriptor) {
- this.externalDescriptor = externalDescriptor;
- }
-
- /** Return true if this LegacyPolicyRule object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRule legacyPolicyRule = (LegacyPolicyRule) o;
- return Objects.equals(this.operator, legacyPolicyRule.operator)
- && Objects.equals(this.operators, legacyPolicyRule.operators)
- && Objects.equals(this.transactionType, legacyPolicyRule.transactionType)
- && Objects.equals(this.designatedSigner, legacyPolicyRule.designatedSigner)
- && Objects.equals(this.designatedSigners, legacyPolicyRule.designatedSigners)
- && Objects.equals(this.type, legacyPolicyRule.type)
- && Objects.equals(this.action, legacyPolicyRule.action)
- && Objects.equals(this.asset, legacyPolicyRule.asset)
- && Objects.equals(this.srcType, legacyPolicyRule.srcType)
- && Objects.equals(this.srcSubType, legacyPolicyRule.srcSubType)
- && Objects.equals(this.srcId, legacyPolicyRule.srcId)
- && Objects.equals(this.src, legacyPolicyRule.src)
- && Objects.equals(this.dstType, legacyPolicyRule.dstType)
- && Objects.equals(this.dstSubType, legacyPolicyRule.dstSubType)
- && Objects.equals(this.dstId, legacyPolicyRule.dstId)
- && Objects.equals(this.dst, legacyPolicyRule.dst)
- && Objects.equals(this.dstAddressType, legacyPolicyRule.dstAddressType)
- && Objects.equals(this.amountCurrency, legacyPolicyRule.amountCurrency)
- && Objects.equals(this.amountScope, legacyPolicyRule.amountScope)
- && Objects.equals(this.amount, legacyPolicyRule.amount)
- && Objects.equals(this.periodSec, legacyPolicyRule.periodSec)
- && Objects.equals(this.authorizers, legacyPolicyRule.authorizers)
- && Objects.equals(this.authorizersCount, legacyPolicyRule.authorizersCount)
- && Objects.equals(this.authorizationGroups, legacyPolicyRule.authorizationGroups)
- && Objects.equals(this.amountAggregation, legacyPolicyRule.amountAggregation)
- && Objects.equals(this.rawMessageSigning, legacyPolicyRule.rawMessageSigning)
- && Objects.equals(this.applyForApprove, legacyPolicyRule.applyForApprove)
- && Objects.equals(this.applyForTypedMessage, legacyPolicyRule.applyForTypedMessage)
- && Objects.equals(this.externalDescriptor, legacyPolicyRule.externalDescriptor);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- operator,
- operators,
- transactionType,
- designatedSigner,
- designatedSigners,
- type,
- action,
- asset,
- srcType,
- srcSubType,
- srcId,
- src,
- dstType,
- dstSubType,
- dstId,
- dst,
- dstAddressType,
- amountCurrency,
- amountScope,
- amount,
- periodSec,
- authorizers,
- authorizersCount,
- authorizationGroups,
- amountAggregation,
- rawMessageSigning,
- applyForApprove,
- applyForTypedMessage,
- externalDescriptor);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRule {\n");
- sb.append(" operator: ").append(toIndentedString(operator)).append("\n");
- sb.append(" operators: ").append(toIndentedString(operators)).append("\n");
- sb.append(" transactionType: ").append(toIndentedString(transactionType)).append("\n");
- sb.append(" designatedSigner: ").append(toIndentedString(designatedSigner)).append("\n");
- sb.append(" designatedSigners: ")
- .append(toIndentedString(designatedSigners))
- .append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" action: ").append(toIndentedString(action)).append("\n");
- sb.append(" asset: ").append(toIndentedString(asset)).append("\n");
- sb.append(" srcType: ").append(toIndentedString(srcType)).append("\n");
- sb.append(" srcSubType: ").append(toIndentedString(srcSubType)).append("\n");
- sb.append(" srcId: ").append(toIndentedString(srcId)).append("\n");
- sb.append(" src: ").append(toIndentedString(src)).append("\n");
- sb.append(" dstType: ").append(toIndentedString(dstType)).append("\n");
- sb.append(" dstSubType: ").append(toIndentedString(dstSubType)).append("\n");
- sb.append(" dstId: ").append(toIndentedString(dstId)).append("\n");
- sb.append(" dst: ").append(toIndentedString(dst)).append("\n");
- sb.append(" dstAddressType: ").append(toIndentedString(dstAddressType)).append("\n");
- sb.append(" amountCurrency: ").append(toIndentedString(amountCurrency)).append("\n");
- sb.append(" amountScope: ").append(toIndentedString(amountScope)).append("\n");
- sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
- sb.append(" periodSec: ").append(toIndentedString(periodSec)).append("\n");
- sb.append(" authorizers: ").append(toIndentedString(authorizers)).append("\n");
- sb.append(" authorizersCount: ").append(toIndentedString(authorizersCount)).append("\n");
- sb.append(" authorizationGroups: ")
- .append(toIndentedString(authorizationGroups))
- .append("\n");
- sb.append(" amountAggregation: ")
- .append(toIndentedString(amountAggregation))
- .append("\n");
- sb.append(" rawMessageSigning: ")
- .append(toIndentedString(rawMessageSigning))
- .append("\n");
- sb.append(" applyForApprove: ").append(toIndentedString(applyForApprove)).append("\n");
- sb.append(" applyForTypedMessage: ")
- .append(toIndentedString(applyForTypedMessage))
- .append("\n");
- sb.append(" externalDescriptor: ")
- .append(toIndentedString(externalDescriptor))
- .append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `operator` to the URL query string
- if (getOperator() != null) {
- joiner.add(
- String.format(
- "%soperator%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getOperator()))));
- }
-
- // add `operators` to the URL query string
- if (getOperators() != null) {
- joiner.add(getOperators().toUrlQueryString(prefix + "operators" + suffix));
- }
-
- // add `transactionType` to the URL query string
- if (getTransactionType() != null) {
- joiner.add(
- String.format(
- "%stransactionType%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getTransactionType()))));
- }
-
- // add `designatedSigner` to the URL query string
- if (getDesignatedSigner() != null) {
- joiner.add(
- String.format(
- "%sdesignatedSigner%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDesignatedSigner()))));
- }
-
- // add `designatedSigners` to the URL query string
- if (getDesignatedSigners() != null) {
- joiner.add(
- getDesignatedSigners().toUrlQueryString(prefix + "designatedSigners" + suffix));
- }
-
- // add `type` to the URL query string
- if (getType() != null) {
- joiner.add(
- String.format(
- "%stype%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getType()))));
- }
-
- // add `action` to the URL query string
- if (getAction() != null) {
- joiner.add(
- String.format(
- "%saction%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getAction()))));
- }
-
- // add `asset` to the URL query string
- if (getAsset() != null) {
- joiner.add(
- String.format(
- "%sasset%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getAsset()))));
- }
-
- // add `srcType` to the URL query string
- if (getSrcType() != null) {
- joiner.add(
- String.format(
- "%ssrcType%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getSrcType()))));
- }
-
- // add `srcSubType` to the URL query string
- if (getSrcSubType() != null) {
- joiner.add(
- String.format(
- "%ssrcSubType%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getSrcSubType()))));
- }
-
- // add `srcId` to the URL query string
- if (getSrcId() != null) {
- joiner.add(
- String.format(
- "%ssrcId%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getSrcId()))));
- }
-
- // add `src` to the URL query string
- if (getSrc() != null) {
- joiner.add(getSrc().toUrlQueryString(prefix + "src" + suffix));
- }
-
- // add `dstType` to the URL query string
- if (getDstType() != null) {
- joiner.add(
- String.format(
- "%sdstType%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDstType()))));
- }
-
- // add `dstSubType` to the URL query string
- if (getDstSubType() != null) {
- joiner.add(
- String.format(
- "%sdstSubType%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDstSubType()))));
- }
-
- // add `dstId` to the URL query string
- if (getDstId() != null) {
- joiner.add(
- String.format(
- "%sdstId%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDstId()))));
- }
-
- // add `dst` to the URL query string
- if (getDst() != null) {
- joiner.add(getDst().toUrlQueryString(prefix + "dst" + suffix));
- }
-
- // add `dstAddressType` to the URL query string
- if (getDstAddressType() != null) {
- joiner.add(
- String.format(
- "%sdstAddressType%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDstAddressType()))));
- }
-
- // add `amountCurrency` to the URL query string
- if (getAmountCurrency() != null) {
- joiner.add(
- String.format(
- "%samountCurrency%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getAmountCurrency()))));
- }
-
- // add `amountScope` to the URL query string
- if (getAmountScope() != null) {
- joiner.add(
- String.format(
- "%samountScope%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getAmountScope()))));
- }
-
- // add `amount` to the URL query string
- if (getAmount() != null) {
- joiner.add(getAmount().toUrlQueryString(prefix + "amount" + suffix));
- }
-
- // add `periodSec` to the URL query string
- if (getPeriodSec() != null) {
- joiner.add(
- String.format(
- "%speriodSec%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getPeriodSec()))));
- }
-
- // add `authorizers` to the URL query string
- if (getAuthorizers() != null) {
- for (int i = 0; i < getAuthorizers().size(); i++) {
- joiner.add(
- String.format(
- "%sauthorizers%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(
- ApiClient.valueToString(getAuthorizers().get(i)))));
- }
- }
-
- // add `authorizersCount` to the URL query string
- if (getAuthorizersCount() != null) {
- joiner.add(
- String.format(
- "%sauthorizersCount%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getAuthorizersCount()))));
- }
-
- // add `authorizationGroups` to the URL query string
- if (getAuthorizationGroups() != null) {
- joiner.add(
- getAuthorizationGroups()
- .toUrlQueryString(prefix + "authorizationGroups" + suffix));
- }
-
- // add `amountAggregation` to the URL query string
- if (getAmountAggregation() != null) {
- joiner.add(
- getAmountAggregation().toUrlQueryString(prefix + "amountAggregation" + suffix));
- }
-
- // add `rawMessageSigning` to the URL query string
- if (getRawMessageSigning() != null) {
- joiner.add(
- getRawMessageSigning().toUrlQueryString(prefix + "rawMessageSigning" + suffix));
- }
-
- // add `applyForApprove` to the URL query string
- if (getApplyForApprove() != null) {
- joiner.add(
- String.format(
- "%sapplyForApprove%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getApplyForApprove()))));
- }
-
- // add `applyForTypedMessage` to the URL query string
- if (getApplyForTypedMessage() != null) {
- joiner.add(
- String.format(
- "%sapplyForTypedMessage%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(
- ApiClient.valueToString(getApplyForTypedMessage()))));
- }
-
- // add `externalDescriptor` to the URL query string
- if (getExternalDescriptor() != null) {
- joiner.add(
- String.format(
- "%sexternalDescriptor%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getExternalDescriptor()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java
deleted file mode 100644
index bc40d9b3..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmount.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonMappingException;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import com.fireblocks.sdk.JSON;
-import java.io.IOException;
-import java.math.BigDecimal;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.StringJoiner;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-@JsonDeserialize(using = LegacyPolicyRuleAmount.LegacyPolicyRuleAmountDeserializer.class)
-@JsonSerialize(using = LegacyPolicyRuleAmount.LegacyPolicyRuleAmountSerializer.class)
-public class LegacyPolicyRuleAmount extends AbstractOpenApiSchema {
- private static final Logger log = Logger.getLogger(LegacyPolicyRuleAmount.class.getName());
-
- public static class LegacyPolicyRuleAmountSerializer
- extends StdSerializer {
- public LegacyPolicyRuleAmountSerializer(Class t) {
- super(t);
- }
-
- public LegacyPolicyRuleAmountSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- LegacyPolicyRuleAmount value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.getActualInstance());
- }
- }
-
- public static class LegacyPolicyRuleAmountDeserializer
- extends StdDeserializer {
- public LegacyPolicyRuleAmountDeserializer() {
- this(LegacyPolicyRuleAmount.class);
- }
-
- public LegacyPolicyRuleAmountDeserializer(Class> vc) {
- super(vc);
- }
-
- @Override
- public LegacyPolicyRuleAmount deserialize(JsonParser jp, DeserializationContext ctxt)
- throws IOException, JsonProcessingException {
- JsonNode tree = jp.readValueAsTree();
-
- Object deserialized = null;
- // deserialize BigDecimal
- try {
- deserialized = tree.traverse(jp.getCodec()).readValueAs(BigDecimal.class);
- LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount();
- ret.setActualInstance(deserialized);
- return ret;
- } catch (Exception e) {
- // deserialization failed, continue, log to help debugging
- log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e);
- }
-
- // deserialize String
- try {
- deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class);
- LegacyPolicyRuleAmount ret = new LegacyPolicyRuleAmount();
- ret.setActualInstance(deserialized);
- return ret;
- } catch (Exception e) {
- // deserialization failed, continue, log to help debugging
- log.log(Level.FINER, "Input data does not match 'LegacyPolicyRuleAmount'", e);
- }
-
- throw new IOException(
- String.format(
- "Failed deserialization for LegacyPolicyRuleAmount: no match found"));
- }
-
- /** Handle deserialization of the 'null' value. */
- @Override
- public LegacyPolicyRuleAmount getNullValue(DeserializationContext ctxt)
- throws JsonMappingException {
- throw new JsonMappingException(
- ctxt.getParser(), "LegacyPolicyRuleAmount cannot be null");
- }
- }
-
- // store a list of schema names defined in anyOf
- public static final Map> schemas = new HashMap>();
-
- public LegacyPolicyRuleAmount() {
- super("anyOf", Boolean.FALSE);
- }
-
- public LegacyPolicyRuleAmount(BigDecimal o) {
- super("anyOf", Boolean.FALSE);
- setActualInstance(o);
- }
-
- public LegacyPolicyRuleAmount(String o) {
- super("anyOf", Boolean.FALSE);
- setActualInstance(o);
- }
-
- static {
- schemas.put("BigDecimal", BigDecimal.class);
- schemas.put("String", String.class);
- JSON.registerDescendants(
- LegacyPolicyRuleAmount.class, Collections.unmodifiableMap(schemas));
- }
-
- @Override
- public Map> getSchemas() {
- return LegacyPolicyRuleAmount.schemas;
- }
-
- /**
- * Set the instance that matches the anyOf child schema, check the instance parameter is valid
- * against the anyOf child schemas: BigDecimal, String
- *
- * It could be an instance of the 'anyOf' schemas. The anyOf child schemas may themselves be
- * a composed schema (allOf, anyOf, anyOf).
- */
- @Override
- public void setActualInstance(Object instance) {
- if (JSON.isInstanceOf(BigDecimal.class, instance, new HashSet>())) {
- super.setActualInstance(instance);
- return;
- }
-
- if (JSON.isInstanceOf(String.class, instance, new HashSet>())) {
- super.setActualInstance(instance);
- return;
- }
-
- throw new RuntimeException("Invalid instance type. Must be BigDecimal, String");
- }
-
- /**
- * Get the actual instance, which can be the following: BigDecimal, String
- *
- * @return The actual instance (BigDecimal, String)
- */
- @Override
- public Object getActualInstance() {
- return super.getActualInstance();
- }
-
- /**
- * Get the actual instance of `BigDecimal`. If the actual instance is not `BigDecimal`, the
- * ClassCastException will be thrown.
- *
- * @return The actual instance of `BigDecimal`
- * @throws ClassCastException if the instance is not `BigDecimal`
- */
- public BigDecimal getBigDecimal() throws ClassCastException {
- return (BigDecimal) super.getActualInstance();
- }
-
- /**
- * Get the actual instance of `String`. If the actual instance is not `String`, the
- * ClassCastException will be thrown.
- *
- * @return The actual instance of `String`
- * @throws ClassCastException if the instance is not `String`
- */
- public String getString() throws ClassCastException {
- return (String) super.getActualInstance();
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- return null;
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java
deleted file mode 100644
index 01a18228..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregation.java
+++ /dev/null
@@ -1,232 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/**
- * Defines the method by which the Policy Engine calculates accumulation. It uses the Initiator,
- * Source, and Destination to calculate accumulation toward the value under Minimum, for the time
- * under Time Period.
- */
-@JsonPropertyOrder({
- LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_OPERATORS,
- LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_SRC_TRANSFER_PEERS,
- LegacyPolicyRuleAmountAggregation.JSON_PROPERTY_DST_TRANSFER_PEERS
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleAmountAggregation {
- public static final String JSON_PROPERTY_OPERATORS = "operators";
- @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod operators;
-
- public static final String JSON_PROPERTY_SRC_TRANSFER_PEERS = "srcTransferPeers";
- @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod srcTransferPeers;
-
- public static final String JSON_PROPERTY_DST_TRANSFER_PEERS = "dstTransferPeers";
- @jakarta.annotation.Nullable private LegacyAmountAggregationTimePeriodMethod dstTransferPeers;
-
- public LegacyPolicyRuleAmountAggregation() {}
-
- public LegacyPolicyRuleAmountAggregation operators(
- @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) {
- this.operators = operators;
- return this;
- }
-
- /**
- * Get operators
- *
- * @return operators
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_OPERATORS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyAmountAggregationTimePeriodMethod getOperators() {
- return operators;
- }
-
- @JsonProperty(JSON_PROPERTY_OPERATORS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setOperators(
- @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod operators) {
- this.operators = operators;
- }
-
- public LegacyPolicyRuleAmountAggregation srcTransferPeers(
- @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) {
- this.srcTransferPeers = srcTransferPeers;
- return this;
- }
-
- /**
- * Get srcTransferPeers
- *
- * @return srcTransferPeers
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyAmountAggregationTimePeriodMethod getSrcTransferPeers() {
- return srcTransferPeers;
- }
-
- @JsonProperty(JSON_PROPERTY_SRC_TRANSFER_PEERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setSrcTransferPeers(
- @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod srcTransferPeers) {
- this.srcTransferPeers = srcTransferPeers;
- }
-
- public LegacyPolicyRuleAmountAggregation dstTransferPeers(
- @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) {
- this.dstTransferPeers = dstTransferPeers;
- return this;
- }
-
- /**
- * Get dstTransferPeers
- *
- * @return dstTransferPeers
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyAmountAggregationTimePeriodMethod getDstTransferPeers() {
- return dstTransferPeers;
- }
-
- @JsonProperty(JSON_PROPERTY_DST_TRANSFER_PEERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDstTransferPeers(
- @jakarta.annotation.Nullable LegacyAmountAggregationTimePeriodMethod dstTransferPeers) {
- this.dstTransferPeers = dstTransferPeers;
- }
-
- /** Return true if this LegacyPolicyRule_amountAggregation object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleAmountAggregation legacyPolicyRuleAmountAggregation =
- (LegacyPolicyRuleAmountAggregation) o;
- return Objects.equals(this.operators, legacyPolicyRuleAmountAggregation.operators)
- && Objects.equals(
- this.srcTransferPeers, legacyPolicyRuleAmountAggregation.srcTransferPeers)
- && Objects.equals(
- this.dstTransferPeers, legacyPolicyRuleAmountAggregation.dstTransferPeers);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(operators, srcTransferPeers, dstTransferPeers);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleAmountAggregation {\n");
- sb.append(" operators: ").append(toIndentedString(operators)).append("\n");
- sb.append(" srcTransferPeers: ").append(toIndentedString(srcTransferPeers)).append("\n");
- sb.append(" dstTransferPeers: ").append(toIndentedString(dstTransferPeers)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `operators` to the URL query string
- if (getOperators() != null) {
- joiner.add(
- String.format(
- "%soperators%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getOperators()))));
- }
-
- // add `srcTransferPeers` to the URL query string
- if (getSrcTransferPeers() != null) {
- joiner.add(
- String.format(
- "%ssrcTransferPeers%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getSrcTransferPeers()))));
- }
-
- // add `dstTransferPeers` to the URL query string
- if (getDstTransferPeers() != null) {
- joiner.add(
- String.format(
- "%sdstTransferPeers%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDstTransferPeers()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java
deleted file mode 100644
index d60bd1d7..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroups.java
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonValue;
-import com.fireblocks.sdk.ApiClient;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Defines the transaction approval terms */
-@JsonPropertyOrder({
- LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_LOGIC,
- LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER,
- LegacyPolicyRuleAuthorizationGroups.JSON_PROPERTY_GROUPS
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleAuthorizationGroups {
- /**
- * * AND - requires approval of all authorization groups * OR - requires approval of at least
- * one of the authorization groups
- */
- public enum LogicEnum {
- AND(String.valueOf("AND")),
-
- OR(String.valueOf("OR"));
-
- private String value;
-
- LogicEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static LogicEnum fromValue(String value) {
- for (LogicEnum b : LogicEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_LOGIC = "logic";
- @jakarta.annotation.Nullable private LogicEnum logic;
-
- public static final String JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER =
- "allowOperatorAsAuthorizer";
- @jakarta.annotation.Nullable private Boolean allowOperatorAsAuthorizer;
-
- public static final String JSON_PROPERTY_GROUPS = "groups";
-
- @jakarta.annotation.Nullable
- private List groups;
-
- public LegacyPolicyRuleAuthorizationGroups() {}
-
- public LegacyPolicyRuleAuthorizationGroups logic(@jakarta.annotation.Nullable LogicEnum logic) {
- this.logic = logic;
- return this;
- }
-
- /**
- * * AND - requires approval of all authorization groups * OR - requires approval of at least
- * one of the authorization groups
- *
- * @return logic
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_LOGIC)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LogicEnum getLogic() {
- return logic;
- }
-
- @JsonProperty(JSON_PROPERTY_LOGIC)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setLogic(@jakarta.annotation.Nullable LogicEnum logic) {
- this.logic = logic;
- }
-
- public LegacyPolicyRuleAuthorizationGroups allowOperatorAsAuthorizer(
- @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) {
- this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer;
- return this;
- }
-
- /**
- * Defines whether the user who initiates a transaction can approve their own transaction and
- * count toward the approval threshold for their transaction
- *
- * @return allowOperatorAsAuthorizer
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Boolean getAllowOperatorAsAuthorizer() {
- return allowOperatorAsAuthorizer;
- }
-
- @JsonProperty(JSON_PROPERTY_ALLOW_OPERATOR_AS_AUTHORIZER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAllowOperatorAsAuthorizer(
- @jakarta.annotation.Nullable Boolean allowOperatorAsAuthorizer) {
- this.allowOperatorAsAuthorizer = allowOperatorAsAuthorizer;
- }
-
- public LegacyPolicyRuleAuthorizationGroups groups(
- @jakarta.annotation.Nullable
- List groups) {
- this.groups = groups;
- return this;
- }
-
- public LegacyPolicyRuleAuthorizationGroups addGroupsItem(
- LegacyPolicyRuleAuthorizationGroupsGroupsInner groupsItem) {
- if (this.groups == null) {
- this.groups = new ArrayList<>();
- }
- this.groups.add(groupsItem);
- return this;
- }
-
- /**
- * Groups of entities which can approve the transaction
- *
- * @return groups
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getGroups() {
- return groups;
- }
-
- @JsonProperty(JSON_PROPERTY_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setGroups(
- @jakarta.annotation.Nullable
- List groups) {
- this.groups = groups;
- }
-
- /** Return true if this LegacyPolicyRule_authorizationGroups object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleAuthorizationGroups legacyPolicyRuleAuthorizationGroups =
- (LegacyPolicyRuleAuthorizationGroups) o;
- return Objects.equals(this.logic, legacyPolicyRuleAuthorizationGroups.logic)
- && Objects.equals(
- this.allowOperatorAsAuthorizer,
- legacyPolicyRuleAuthorizationGroups.allowOperatorAsAuthorizer)
- && Objects.equals(this.groups, legacyPolicyRuleAuthorizationGroups.groups);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(logic, allowOperatorAsAuthorizer, groups);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleAuthorizationGroups {\n");
- sb.append(" logic: ").append(toIndentedString(logic)).append("\n");
- sb.append(" allowOperatorAsAuthorizer: ")
- .append(toIndentedString(allowOperatorAsAuthorizer))
- .append("\n");
- sb.append(" groups: ").append(toIndentedString(groups)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `logic` to the URL query string
- if (getLogic() != null) {
- joiner.add(
- String.format(
- "%slogic%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getLogic()))));
- }
-
- // add `allowOperatorAsAuthorizer` to the URL query string
- if (getAllowOperatorAsAuthorizer() != null) {
- joiner.add(
- String.format(
- "%sallowOperatorAsAuthorizer%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(
- ApiClient.valueToString(getAllowOperatorAsAuthorizer()))));
- }
-
- // add `groups` to the URL query string
- if (getGroups() != null) {
- for (int i = 0; i < getGroups().size(); i++) {
- if (getGroups().get(i) != null) {
- joiner.add(
- getGroups()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%sgroups%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java
deleted file mode 100644
index 371b8ce3..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInner.java
+++ /dev/null
@@ -1,260 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** LegacyPolicyRuleAuthorizationGroupsGroupsInner */
-@JsonPropertyOrder({
- LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS,
- LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_USERS_GROUPS,
- LegacyPolicyRuleAuthorizationGroupsGroupsInner.JSON_PROPERTY_TH
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleAuthorizationGroupsGroupsInner {
- public static final String JSON_PROPERTY_USERS = "users";
- @jakarta.annotation.Nullable private List users;
-
- public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups";
- @jakarta.annotation.Nullable private List usersGroups;
-
- public static final String JSON_PROPERTY_TH = "th";
- @jakarta.annotation.Nullable private BigDecimal th;
-
- public LegacyPolicyRuleAuthorizationGroupsGroupsInner() {}
-
- public LegacyPolicyRuleAuthorizationGroupsGroupsInner users(
- @jakarta.annotation.Nullable List users) {
- this.users = users;
- return this;
- }
-
- public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersItem(String usersItem) {
- if (this.users == null) {
- this.users = new ArrayList<>();
- }
- this.users.add(usersItem);
- return this;
- }
-
- /**
- * User ids
- *
- * @return users
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getUsers() {
- return users;
- }
-
- @JsonProperty(JSON_PROPERTY_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUsers(@jakarta.annotation.Nullable List users) {
- this.users = users;
- }
-
- public LegacyPolicyRuleAuthorizationGroupsGroupsInner usersGroups(
- @jakarta.annotation.Nullable List usersGroups) {
- this.usersGroups = usersGroups;
- return this;
- }
-
- public LegacyPolicyRuleAuthorizationGroupsGroupsInner addUsersGroupsItem(
- String usersGroupsItem) {
- if (this.usersGroups == null) {
- this.usersGroups = new ArrayList<>();
- }
- this.usersGroups.add(usersGroupsItem);
- return this;
- }
-
- /**
- * Group ids
- *
- * @return usersGroups
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_USERS_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getUsersGroups() {
- return usersGroups;
- }
-
- @JsonProperty(JSON_PROPERTY_USERS_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) {
- this.usersGroups = usersGroups;
- }
-
- public LegacyPolicyRuleAuthorizationGroupsGroupsInner th(
- @jakarta.annotation.Nullable BigDecimal th) {
- this.th = th;
- return this;
- }
-
- /**
- * Represents the min amount of entities which are required to approve the transaction, default
- * is 1.
- *
- * @return th
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BigDecimal getTh() {
- return th;
- }
-
- @JsonProperty(JSON_PROPERTY_TH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setTh(@jakarta.annotation.Nullable BigDecimal th) {
- this.th = th;
- }
-
- /**
- * Return true if this LegacyPolicyRule_authorizationGroups_groups_inner object is equal to o.
- */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleAuthorizationGroupsGroupsInner
- legacyPolicyRuleAuthorizationGroupsGroupsInner =
- (LegacyPolicyRuleAuthorizationGroupsGroupsInner) o;
- return Objects.equals(this.users, legacyPolicyRuleAuthorizationGroupsGroupsInner.users)
- && Objects.equals(
- this.usersGroups,
- legacyPolicyRuleAuthorizationGroupsGroupsInner.usersGroups)
- && Objects.equals(this.th, legacyPolicyRuleAuthorizationGroupsGroupsInner.th);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(users, usersGroups, th);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleAuthorizationGroupsGroupsInner {\n");
- sb.append(" users: ").append(toIndentedString(users)).append("\n");
- sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n");
- sb.append(" th: ").append(toIndentedString(th)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `users` to the URL query string
- if (getUsers() != null) {
- for (int i = 0; i < getUsers().size(); i++) {
- joiner.add(
- String.format(
- "%susers%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i)))));
- }
- }
-
- // add `usersGroups` to the URL query string
- if (getUsersGroups() != null) {
- for (int i = 0; i < getUsersGroups().size(); i++) {
- joiner.add(
- String.format(
- "%susersGroups%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(
- ApiClient.valueToString(getUsersGroups().get(i)))));
- }
- }
-
- // add `th` to the URL query string
- if (getTh() != null) {
- joiner.add(
- String.format(
- "%sth%s=%s",
- prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTh()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java
deleted file mode 100644
index 08319b66..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResult.java
+++ /dev/null
@@ -1,290 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonValue;
-import com.fireblocks.sdk.ApiClient;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** The rule validation result */
-@JsonPropertyOrder({
- LegacyPolicyRuleCheckResult.JSON_PROPERTY_INDEX,
- LegacyPolicyRuleCheckResult.JSON_PROPERTY_STATUS,
- LegacyPolicyRuleCheckResult.JSON_PROPERTY_ERRORS
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleCheckResult {
- public static final String JSON_PROPERTY_INDEX = "index";
- @jakarta.annotation.Nonnull private BigDecimal index;
-
- /** Validation status */
- public enum StatusEnum {
- OK(String.valueOf("ok")),
-
- FAILURE(String.valueOf("failure"));
-
- private String value;
-
- StatusEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static StatusEnum fromValue(String value) {
- for (StatusEnum b : StatusEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_STATUS = "status";
- @jakarta.annotation.Nonnull private StatusEnum status;
-
- public static final String JSON_PROPERTY_ERRORS = "errors";
- @jakarta.annotation.Nonnull private List errors;
-
- public LegacyPolicyRuleCheckResult() {}
-
- @JsonCreator
- public LegacyPolicyRuleCheckResult(
- @JsonProperty(value = JSON_PROPERTY_INDEX, required = true) BigDecimal index,
- @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) StatusEnum status,
- @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true)
- List errors) {
- this.index = index;
- this.status = status;
- this.errors = errors;
- }
-
- public LegacyPolicyRuleCheckResult index(@jakarta.annotation.Nonnull BigDecimal index) {
- this.index = index;
- return this;
- }
-
- /**
- * Rule index number in the policy
- *
- * @return index
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_INDEX)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public BigDecimal getIndex() {
- return index;
- }
-
- @JsonProperty(JSON_PROPERTY_INDEX)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setIndex(@jakarta.annotation.Nonnull BigDecimal index) {
- this.index = index;
- }
-
- public LegacyPolicyRuleCheckResult status(@jakarta.annotation.Nonnull StatusEnum status) {
- this.status = status;
- return this;
- }
-
- /**
- * Validation status
- *
- * @return status
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public StatusEnum getStatus() {
- return status;
- }
-
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setStatus(@jakarta.annotation.Nonnull StatusEnum status) {
- this.status = status;
- }
-
- public LegacyPolicyRuleCheckResult errors(
- @jakarta.annotation.Nonnull List errors) {
- this.errors = errors;
- return this;
- }
-
- public LegacyPolicyRuleCheckResult addErrorsItem(LegacyPolicyRuleError errorsItem) {
- if (this.errors == null) {
- this.errors = new ArrayList<>();
- }
- this.errors.add(errorsItem);
- return this;
- }
-
- /**
- * A set of rule validation error objects
- *
- * @return errors
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ERRORS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getErrors() {
- return errors;
- }
-
- @JsonProperty(JSON_PROPERTY_ERRORS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setErrors(@jakarta.annotation.Nonnull List errors) {
- this.errors = errors;
- }
-
- /** Return true if this LegacyPolicyRuleCheckResult object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleCheckResult legacyPolicyRuleCheckResult = (LegacyPolicyRuleCheckResult) o;
- return Objects.equals(this.index, legacyPolicyRuleCheckResult.index)
- && Objects.equals(this.status, legacyPolicyRuleCheckResult.status)
- && Objects.equals(this.errors, legacyPolicyRuleCheckResult.errors);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(index, status, errors);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleCheckResult {\n");
- sb.append(" index: ").append(toIndentedString(index)).append("\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `index` to the URL query string
- if (getIndex() != null) {
- joiner.add(
- String.format(
- "%sindex%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getIndex()))));
- }
-
- // add `status` to the URL query string
- if (getStatus() != null) {
- joiner.add(
- String.format(
- "%sstatus%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getStatus()))));
- }
-
- // add `errors` to the URL query string
- if (getErrors() != null) {
- for (int i = 0; i < getErrors().size(); i++) {
- if (getErrors().get(i) != null) {
- joiner.add(
- getErrors()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%serrors%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java
deleted file mode 100644
index 79737164..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSigners.java
+++ /dev/null
@@ -1,214 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Set of ids representing the users who signs transactions that match a specific rule */
-@JsonPropertyOrder({
- LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS,
- LegacyPolicyRuleDesignatedSigners.JSON_PROPERTY_USERS_GROUPS
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleDesignatedSigners {
- public static final String JSON_PROPERTY_USERS = "users";
- @jakarta.annotation.Nullable private List users;
-
- public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups";
- @jakarta.annotation.Nullable private List usersGroups;
-
- public LegacyPolicyRuleDesignatedSigners() {}
-
- public LegacyPolicyRuleDesignatedSigners users(
- @jakarta.annotation.Nullable List users) {
- this.users = users;
- return this;
- }
-
- public LegacyPolicyRuleDesignatedSigners addUsersItem(String usersItem) {
- if (this.users == null) {
- this.users = new ArrayList<>();
- }
- this.users.add(usersItem);
- return this;
- }
-
- /**
- * Set of users ids
- *
- * @return users
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getUsers() {
- return users;
- }
-
- @JsonProperty(JSON_PROPERTY_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUsers(@jakarta.annotation.Nullable List users) {
- this.users = users;
- }
-
- public LegacyPolicyRuleDesignatedSigners usersGroups(
- @jakarta.annotation.Nullable List usersGroups) {
- this.usersGroups = usersGroups;
- return this;
- }
-
- public LegacyPolicyRuleDesignatedSigners addUsersGroupsItem(String usersGroupsItem) {
- if (this.usersGroups == null) {
- this.usersGroups = new ArrayList<>();
- }
- this.usersGroups.add(usersGroupsItem);
- return this;
- }
-
- /**
- * Set of group ids
- *
- * @return usersGroups
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_USERS_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getUsersGroups() {
- return usersGroups;
- }
-
- @JsonProperty(JSON_PROPERTY_USERS_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) {
- this.usersGroups = usersGroups;
- }
-
- /** Return true if this LegacyPolicyRule_designatedSigners object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleDesignatedSigners legacyPolicyRuleDesignatedSigners =
- (LegacyPolicyRuleDesignatedSigners) o;
- return Objects.equals(this.users, legacyPolicyRuleDesignatedSigners.users)
- && Objects.equals(this.usersGroups, legacyPolicyRuleDesignatedSigners.usersGroups);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(users, usersGroups);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleDesignatedSigners {\n");
- sb.append(" users: ").append(toIndentedString(users)).append("\n");
- sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `users` to the URL query string
- if (getUsers() != null) {
- for (int i = 0; i < getUsers().size(); i++) {
- joiner.add(
- String.format(
- "%susers%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i)))));
- }
- }
-
- // add `usersGroups` to the URL query string
- if (getUsersGroups() != null) {
- for (int i = 0; i < getUsersGroups().size(); i++) {
- joiner.add(
- String.format(
- "%susersGroups%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(
- ApiClient.valueToString(getUsersGroups().get(i)))));
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java
deleted file mode 100644
index 2ba88cdd..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleDst.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Defines the destination accounts the rule allows transfers to */
-@JsonPropertyOrder({LegacyPolicyRuleDst.JSON_PROPERTY_IDS})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleDst {
- public static final String JSON_PROPERTY_IDS = "ids";
- @jakarta.annotation.Nullable private List> ids;
-
- public LegacyPolicyRuleDst() {}
-
- public LegacyPolicyRuleDst ids(
- @jakarta.annotation.Nullable List> ids) {
- this.ids = ids;
- return this;
- }
-
- public LegacyPolicyRuleDst addIdsItem(List idsItem) {
- if (this.ids == null) {
- this.ids = new ArrayList<>();
- }
- this.ids.add(idsItem);
- return this;
- }
-
- /**
- * A set of ids in a tuple format
- *
- * @return ids
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_IDS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List> getIds() {
- return ids;
- }
-
- @JsonProperty(JSON_PROPERTY_IDS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setIds(
- @jakarta.annotation.Nullable List> ids) {
- this.ids = ids;
- }
-
- /** Return true if this LegacyPolicyRule_dst object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleDst legacyPolicyRuleDst = (LegacyPolicyRuleDst) o;
- return Objects.equals(this.ids, legacyPolicyRuleDst.ids);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(ids);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleDst {\n");
- sb.append(" ids: ").append(toIndentedString(ids)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `ids` to the URL query string
- if (getIds() != null) {
- for (int i = 0; i < getIds().size(); i++) {
- if (getIds().get(i) != null) {
- joiner.add(
- String.format(
- "%sids%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i)))));
- }
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java
deleted file mode 100644
index 4270bbe6..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleError.java
+++ /dev/null
@@ -1,334 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonValue;
-import com.fireblocks.sdk.ApiClient;
-import java.math.BigDecimal;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Rule validation result error */
-@JsonPropertyOrder({
- LegacyPolicyRuleError.JSON_PROPERTY_ERROR_MESSAGE,
- LegacyPolicyRuleError.JSON_PROPERTY_ERROR_CODE,
- LegacyPolicyRuleError.JSON_PROPERTY_ERROR_CODE_NAME,
- LegacyPolicyRuleError.JSON_PROPERTY_ERROR_FIELD
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleError {
- public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage";
- @jakarta.annotation.Nonnull private String errorMessage;
-
- public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
- @jakarta.annotation.Nonnull private BigDecimal errorCode;
-
- public static final String JSON_PROPERTY_ERROR_CODE_NAME = "errorCodeName";
- @jakarta.annotation.Nonnull private String errorCodeName;
-
- /**
- * The field which the error relates to * operator - transaction initiator * operators -
- * transaction initiators * authorizationGroups - transaction authorizer groups *
- * designatedSigner - transaction signer * designatedSigners - transaction signers *
- * contractMethods - contract methods * amountAggregation - transaction amount aggregation
- * configuration * src - transaction source asset configuration * dst - transaction destination
- * asset configuration
- */
- public enum ErrorFieldEnum {
- OPERATOR(String.valueOf("operator")),
-
- OPERATORS(String.valueOf("operators")),
-
- AUTHORIZATION_GROUPS(String.valueOf("authorizationGroups")),
-
- DESIGNATED_SIGNER(String.valueOf("designatedSigner")),
-
- DESIGNATED_SIGNERS(String.valueOf("designatedSigners")),
-
- CONTRACT_METHODS(String.valueOf("contractMethods")),
-
- AMOUNT_AGGREGATION(String.valueOf("amountAggregation")),
-
- SRC(String.valueOf("src")),
-
- DST(String.valueOf("dst"));
-
- private String value;
-
- ErrorFieldEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static ErrorFieldEnum fromValue(String value) {
- for (ErrorFieldEnum b : ErrorFieldEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_ERROR_FIELD = "errorField";
- @jakarta.annotation.Nonnull private ErrorFieldEnum errorField;
-
- public LegacyPolicyRuleError() {}
-
- @JsonCreator
- public LegacyPolicyRuleError(
- @JsonProperty(value = JSON_PROPERTY_ERROR_MESSAGE, required = true) String errorMessage,
- @JsonProperty(value = JSON_PROPERTY_ERROR_CODE, required = true) BigDecimal errorCode,
- @JsonProperty(value = JSON_PROPERTY_ERROR_CODE_NAME, required = true)
- String errorCodeName,
- @JsonProperty(value = JSON_PROPERTY_ERROR_FIELD, required = true)
- ErrorFieldEnum errorField) {
- this.errorMessage = errorMessage;
- this.errorCode = errorCode;
- this.errorCodeName = errorCodeName;
- this.errorField = errorField;
- }
-
- public LegacyPolicyRuleError errorMessage(@jakarta.annotation.Nonnull String errorMessage) {
- this.errorMessage = errorMessage;
- return this;
- }
-
- /**
- * Error message
- *
- * @return errorMessage
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getErrorMessage() {
- return errorMessage;
- }
-
- @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setErrorMessage(@jakarta.annotation.Nonnull String errorMessage) {
- this.errorMessage = errorMessage;
- }
-
- public LegacyPolicyRuleError errorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) {
- this.errorCode = errorCode;
- return this;
- }
-
- /**
- * error code
- *
- * @return errorCode
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ERROR_CODE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public BigDecimal getErrorCode() {
- return errorCode;
- }
-
- @JsonProperty(JSON_PROPERTY_ERROR_CODE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setErrorCode(@jakarta.annotation.Nonnull BigDecimal errorCode) {
- this.errorCode = errorCode;
- }
-
- public LegacyPolicyRuleError errorCodeName(@jakarta.annotation.Nonnull String errorCodeName) {
- this.errorCodeName = errorCodeName;
- return this;
- }
-
- /**
- * error code name
- *
- * @return errorCodeName
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ERROR_CODE_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getErrorCodeName() {
- return errorCodeName;
- }
-
- @JsonProperty(JSON_PROPERTY_ERROR_CODE_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setErrorCodeName(@jakarta.annotation.Nonnull String errorCodeName) {
- this.errorCodeName = errorCodeName;
- }
-
- public LegacyPolicyRuleError errorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) {
- this.errorField = errorField;
- return this;
- }
-
- /**
- * The field which the error relates to * operator - transaction initiator * operators -
- * transaction initiators * authorizationGroups - transaction authorizer groups *
- * designatedSigner - transaction signer * designatedSigners - transaction signers *
- * contractMethods - contract methods * amountAggregation - transaction amount aggregation
- * configuration * src - transaction source asset configuration * dst - transaction destination
- * asset configuration
- *
- * @return errorField
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ERROR_FIELD)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public ErrorFieldEnum getErrorField() {
- return errorField;
- }
-
- @JsonProperty(JSON_PROPERTY_ERROR_FIELD)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setErrorField(@jakarta.annotation.Nonnull ErrorFieldEnum errorField) {
- this.errorField = errorField;
- }
-
- /** Return true if this LegacyPolicyRuleError object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleError legacyPolicyRuleError = (LegacyPolicyRuleError) o;
- return Objects.equals(this.errorMessage, legacyPolicyRuleError.errorMessage)
- && Objects.equals(this.errorCode, legacyPolicyRuleError.errorCode)
- && Objects.equals(this.errorCodeName, legacyPolicyRuleError.errorCodeName)
- && Objects.equals(this.errorField, legacyPolicyRuleError.errorField);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(errorMessage, errorCode, errorCodeName, errorField);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleError {\n");
- sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
- sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
- sb.append(" errorCodeName: ").append(toIndentedString(errorCodeName)).append("\n");
- sb.append(" errorField: ").append(toIndentedString(errorField)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `errorMessage` to the URL query string
- if (getErrorMessage() != null) {
- joiner.add(
- String.format(
- "%serrorMessage%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getErrorMessage()))));
- }
-
- // add `errorCode` to the URL query string
- if (getErrorCode() != null) {
- joiner.add(
- String.format(
- "%serrorCode%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getErrorCode()))));
- }
-
- // add `errorCodeName` to the URL query string
- if (getErrorCodeName() != null) {
- joiner.add(
- String.format(
- "%serrorCodeName%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getErrorCodeName()))));
- }
-
- // add `errorField` to the URL query string
- if (getErrorField() != null) {
- joiner.add(
- String.format(
- "%serrorField%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getErrorField()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java
deleted file mode 100644
index 1e674def..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperators.java
+++ /dev/null
@@ -1,342 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonValue;
-import com.fireblocks.sdk.ApiClient;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Defines users/groups who can initiate the type of transaction to which the rule applies. */
-@JsonPropertyOrder({
- LegacyPolicyRuleOperators.JSON_PROPERTY_WILDCARD,
- LegacyPolicyRuleOperators.JSON_PROPERTY_USERS,
- LegacyPolicyRuleOperators.JSON_PROPERTY_USERS_GROUPS,
- LegacyPolicyRuleOperators.JSON_PROPERTY_SERVICES
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleOperators {
- /**
- * If used then this property should appear as the only child property * \"*\" - All
- * users are allowed
- */
- public enum WildcardEnum {
- STAR(String.valueOf("*"));
-
- private String value;
-
- WildcardEnum(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static WildcardEnum fromValue(String value) {
- for (WildcardEnum b : WildcardEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
- }
-
- public static final String JSON_PROPERTY_WILDCARD = "wildcard";
- @jakarta.annotation.Nullable private WildcardEnum wildcard;
-
- public static final String JSON_PROPERTY_USERS = "users";
- @jakarta.annotation.Nullable private List users;
-
- public static final String JSON_PROPERTY_USERS_GROUPS = "usersGroups";
- @jakarta.annotation.Nullable private List usersGroups;
-
- public static final String JSON_PROPERTY_SERVICES = "services";
- @jakarta.annotation.Nullable private List services;
-
- public LegacyPolicyRuleOperators() {}
-
- public LegacyPolicyRuleOperators wildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) {
- this.wildcard = wildcard;
- return this;
- }
-
- /**
- * If used then this property should appear as the only child property * \"*\" - All
- * users are allowed
- *
- * @return wildcard
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_WILDCARD)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public WildcardEnum getWildcard() {
- return wildcard;
- }
-
- @JsonProperty(JSON_PROPERTY_WILDCARD)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setWildcard(@jakarta.annotation.Nullable WildcardEnum wildcard) {
- this.wildcard = wildcard;
- }
-
- public LegacyPolicyRuleOperators users(@jakarta.annotation.Nullable List users) {
- this.users = users;
- return this;
- }
-
- public LegacyPolicyRuleOperators addUsersItem(String usersItem) {
- if (this.users == null) {
- this.users = new ArrayList<>();
- }
- this.users.add(usersItem);
- return this;
- }
-
- /**
- * Set of users ids
- *
- * @return users
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getUsers() {
- return users;
- }
-
- @JsonProperty(JSON_PROPERTY_USERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUsers(@jakarta.annotation.Nullable List users) {
- this.users = users;
- }
-
- public LegacyPolicyRuleOperators usersGroups(
- @jakarta.annotation.Nullable List usersGroups) {
- this.usersGroups = usersGroups;
- return this;
- }
-
- public LegacyPolicyRuleOperators addUsersGroupsItem(String usersGroupsItem) {
- if (this.usersGroups == null) {
- this.usersGroups = new ArrayList<>();
- }
- this.usersGroups.add(usersGroupsItem);
- return this;
- }
-
- /**
- * Set of group ids
- *
- * @return usersGroups
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_USERS_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getUsersGroups() {
- return usersGroups;
- }
-
- @JsonProperty(JSON_PROPERTY_USERS_GROUPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setUsersGroups(@jakarta.annotation.Nullable List usersGroups) {
- this.usersGroups = usersGroups;
- }
-
- public LegacyPolicyRuleOperators services(@jakarta.annotation.Nullable List services) {
- this.services = services;
- return this;
- }
-
- public LegacyPolicyRuleOperators addServicesItem(String servicesItem) {
- if (this.services == null) {
- this.services = new ArrayList<>();
- }
- this.services.add(servicesItem);
- return this;
- }
-
- /**
- * set of services to initiate transactions
- *
- * @return services
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_SERVICES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getServices() {
- return services;
- }
-
- @JsonProperty(JSON_PROPERTY_SERVICES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setServices(@jakarta.annotation.Nullable List services) {
- this.services = services;
- }
-
- /** Return true if this LegacyPolicyRule_operators object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleOperators legacyPolicyRuleOperators = (LegacyPolicyRuleOperators) o;
- return Objects.equals(this.wildcard, legacyPolicyRuleOperators.wildcard)
- && Objects.equals(this.users, legacyPolicyRuleOperators.users)
- && Objects.equals(this.usersGroups, legacyPolicyRuleOperators.usersGroups)
- && Objects.equals(this.services, legacyPolicyRuleOperators.services);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(wildcard, users, usersGroups, services);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleOperators {\n");
- sb.append(" wildcard: ").append(toIndentedString(wildcard)).append("\n");
- sb.append(" users: ").append(toIndentedString(users)).append("\n");
- sb.append(" usersGroups: ").append(toIndentedString(usersGroups)).append("\n");
- sb.append(" services: ").append(toIndentedString(services)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `wildcard` to the URL query string
- if (getWildcard() != null) {
- joiner.add(
- String.format(
- "%swildcard%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getWildcard()))));
- }
-
- // add `users` to the URL query string
- if (getUsers() != null) {
- for (int i = 0; i < getUsers().size(); i++) {
- joiner.add(
- String.format(
- "%susers%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(ApiClient.valueToString(getUsers().get(i)))));
- }
- }
-
- // add `usersGroups` to the URL query string
- if (getUsersGroups() != null) {
- for (int i = 0; i < getUsersGroups().size(); i++) {
- joiner.add(
- String.format(
- "%susersGroups%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(
- ApiClient.valueToString(getUsersGroups().get(i)))));
- }
- }
-
- // add `services` to the URL query string
- if (getServices() != null) {
- for (int i = 0; i < getServices().size(); i++) {
- joiner.add(
- String.format(
- "%sservices%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(
- ApiClient.valueToString(getServices().get(i)))));
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java
deleted file mode 100644
index bb880f85..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigning.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Raw message signing configuration */
-@JsonPropertyOrder({
- LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_ALGORITHM,
- LegacyPolicyRuleRawMessageSigning.JSON_PROPERTY_DERIVATION_PATH
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleRawMessageSigning {
- public static final String JSON_PROPERTY_ALGORITHM = "algorithm";
- @jakarta.annotation.Nullable private String algorithm;
-
- public static final String JSON_PROPERTY_DERIVATION_PATH = "derivationPath";
-
- @jakarta.annotation.Nullable
- private LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath;
-
- public LegacyPolicyRuleRawMessageSigning() {}
-
- public LegacyPolicyRuleRawMessageSigning algorithm(
- @jakarta.annotation.Nullable String algorithm) {
- this.algorithm = algorithm;
- return this;
- }
-
- /**
- * Get algorithm
- *
- * @return algorithm
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ALGORITHM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getAlgorithm() {
- return algorithm;
- }
-
- @JsonProperty(JSON_PROPERTY_ALGORITHM)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAlgorithm(@jakarta.annotation.Nullable String algorithm) {
- this.algorithm = algorithm;
- }
-
- public LegacyPolicyRuleRawMessageSigning derivationPath(
- @jakarta.annotation.Nullable
- LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) {
- this.derivationPath = derivationPath;
- return this;
- }
-
- /**
- * Get derivationPath
- *
- * @return derivationPath
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DERIVATION_PATH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public LegacyPolicyRuleRawMessageSigningDerivationPath getDerivationPath() {
- return derivationPath;
- }
-
- @JsonProperty(JSON_PROPERTY_DERIVATION_PATH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDerivationPath(
- @jakarta.annotation.Nullable
- LegacyPolicyRuleRawMessageSigningDerivationPath derivationPath) {
- this.derivationPath = derivationPath;
- }
-
- /** Return true if this LegacyPolicyRule_rawMessageSigning object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleRawMessageSigning legacyPolicyRuleRawMessageSigning =
- (LegacyPolicyRuleRawMessageSigning) o;
- return Objects.equals(this.algorithm, legacyPolicyRuleRawMessageSigning.algorithm)
- && Objects.equals(
- this.derivationPath, legacyPolicyRuleRawMessageSigning.derivationPath);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(algorithm, derivationPath);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleRawMessageSigning {\n");
- sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n");
- sb.append(" derivationPath: ").append(toIndentedString(derivationPath)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `algorithm` to the URL query string
- if (getAlgorithm() != null) {
- joiner.add(
- String.format(
- "%salgorithm%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getAlgorithm()))));
- }
-
- // add `derivationPath` to the URL query string
- if (getDerivationPath() != null) {
- joiner.add(getDerivationPath().toUrlQueryString(prefix + "derivationPath" + suffix));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java
deleted file mode 100644
index 77a08f00..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPath.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** LegacyPolicyRuleRawMessageSigningDerivationPath */
-@JsonPropertyOrder({LegacyPolicyRuleRawMessageSigningDerivationPath.JSON_PROPERTY_PATH})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleRawMessageSigningDerivationPath {
- public static final String JSON_PROPERTY_PATH = "path";
- @jakarta.annotation.Nullable private List path;
-
- public LegacyPolicyRuleRawMessageSigningDerivationPath() {}
-
- public LegacyPolicyRuleRawMessageSigningDerivationPath path(
- @jakarta.annotation.Nullable List path) {
- this.path = path;
- return this;
- }
-
- public LegacyPolicyRuleRawMessageSigningDerivationPath addPathItem(BigDecimal pathItem) {
- if (this.path == null) {
- this.path = new ArrayList<>();
- }
- this.path.add(pathItem);
- return this;
- }
-
- /**
- * Get path
- *
- * @return path
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_PATH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getPath() {
- return path;
- }
-
- @JsonProperty(JSON_PROPERTY_PATH)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPath(@jakarta.annotation.Nullable List path) {
- this.path = path;
- }
-
- /**
- * Return true if this LegacyPolicyRule_rawMessageSigning_derivationPath object is equal to o.
- */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleRawMessageSigningDerivationPath
- legacyPolicyRuleRawMessageSigningDerivationPath =
- (LegacyPolicyRuleRawMessageSigningDerivationPath) o;
- return Objects.equals(this.path, legacyPolicyRuleRawMessageSigningDerivationPath.path);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(path);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleRawMessageSigningDerivationPath {\n");
- sb.append(" path: ").append(toIndentedString(path)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `path` to the URL query string
- if (getPath() != null) {
- for (int i = 0; i < getPath().size(); i++) {
- if (getPath().get(i) != null) {
- joiner.add(
- String.format(
- "%spath%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(
- ApiClient.valueToString(getPath().get(i)))));
- }
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java
deleted file mode 100644
index 8d43f1f2..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrc.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Defines source accounts the rule allows transfers to originate from */
-@JsonPropertyOrder({LegacyPolicyRuleSrc.JSON_PROPERTY_IDS})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRuleSrc {
- public static final String JSON_PROPERTY_IDS = "ids";
- @jakarta.annotation.Nullable private List> ids;
-
- public LegacyPolicyRuleSrc() {}
-
- public LegacyPolicyRuleSrc ids(
- @jakarta.annotation.Nullable List> ids) {
- this.ids = ids;
- return this;
- }
-
- public LegacyPolicyRuleSrc addIdsItem(List idsItem) {
- if (this.ids == null) {
- this.ids = new ArrayList<>();
- }
- this.ids.add(idsItem);
- return this;
- }
-
- /**
- * A set of ids in a tuple format
- *
- * @return ids
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_IDS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List> getIds() {
- return ids;
- }
-
- @JsonProperty(JSON_PROPERTY_IDS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setIds(
- @jakarta.annotation.Nullable List> ids) {
- this.ids = ids;
- }
-
- /** Return true if this LegacyPolicyRule_src object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRuleSrc legacyPolicyRuleSrc = (LegacyPolicyRuleSrc) o;
- return Objects.equals(this.ids, legacyPolicyRuleSrc.ids);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(ids);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRuleSrc {\n");
- sb.append(" ids: ").append(toIndentedString(ids)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `ids` to the URL query string
- if (getIds() != null) {
- for (int i = 0; i < getIds().size(); i++) {
- if (getIds().get(i) != null) {
- joiner.add(
- String.format(
- "%sids%s%s=%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s", containerPrefix, i, containerSuffix),
- ApiClient.urlEncode(ApiClient.valueToString(getIds().get(i)))));
- }
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java
deleted file mode 100644
index 47f2de65..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyRules.java
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** LegacyPolicyRules */
-@JsonPropertyOrder({LegacyPolicyRules.JSON_PROPERTY_RULES})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyRules {
- public static final String JSON_PROPERTY_RULES = "rules";
- @jakarta.annotation.Nullable private List rules;
-
- public LegacyPolicyRules() {}
-
- public LegacyPolicyRules rules(@jakarta.annotation.Nullable List rules) {
- this.rules = rules;
- return this;
- }
-
- public LegacyPolicyRules addRulesItem(LegacyPolicyRule rulesItem) {
- if (this.rules == null) {
- this.rules = new ArrayList<>();
- }
- this.rules.add(rulesItem);
- return this;
- }
-
- /**
- * Policy rules
- *
- * @return rules
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getRules() {
- return rules;
- }
-
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setRules(@jakarta.annotation.Nullable List rules) {
- this.rules = rules;
- }
-
- /** Return true if this LegacyPolicyRules object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyRules legacyPolicyRules = (LegacyPolicyRules) o;
- return Objects.equals(this.rules, legacyPolicyRules.rules);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(rules);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyRules {\n");
- sb.append(" rules: ").append(toIndentedString(rules)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `rules` to the URL query string
- if (getRules() != null) {
- for (int i = 0; i < getRules().size(); i++) {
- if (getRules().get(i) != null) {
- joiner.add(
- getRules()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%srules%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java
deleted file mode 100644
index 23cc4e33..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubType.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-/**
- * * EXTERNAL - A whitelisted wallet assigned as external is typically used for addresses managed by
- * your clients and counterparties * INTERNAL - A whitelisted wallet assigned as internal, is
- * typically used for addresses that you control outside of your Fireblocks workspace * CONTRACT - A
- * whitelisted wallet assigned as contract is for identifying and managing external smart contracts
- * * EXCHANGETEST - Exchanges which operate only on testnet assets * \"*\" - All subtypes
- */
-public enum LegacyPolicySrcOrDestSubType {
- EXTERNAL("EXTERNAL"),
-
- INTERNAL("INTERNAL"),
-
- CONTRACT("CONTRACT"),
-
- EXCHANGETEST("EXCHANGETEST"),
-
- STAR("*");
-
- private String value;
-
- LegacyPolicySrcOrDestSubType(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static LegacyPolicySrcOrDestSubType fromValue(String value) {
- for (LegacyPolicySrcOrDestSubType b : LegacyPolicySrcOrDestSubType.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- if (prefix == null) {
- prefix = "";
- }
-
- return String.format("%s=%s", prefix, this.toString());
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java
deleted file mode 100644
index 1caa2ded..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestType.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-/**
- * * EXCHANGE - A third-party exchange account connected to your workspace * UNMANAGED - A unmanaged
- * wallet outside of Fireblocks workspace * VAULT - An account in your Fireblocks Vault *
- * NETWORK_CONNECTION - A connection in your Fireblocks network * COMPOUND - (deprecated) An asset
- * retrieved by using the Compound DeFI protocol * FIAT_ACCOUNT - A third-party fiat account
- * connected to your workspace * ONE_TIME_ADDRESS - A non-whitelisted asset from your Fireblocks
- * Workspace * \"*\" - All types
- */
-public enum LegacyPolicySrcOrDestType {
- EXCHANGE("EXCHANGE"),
-
- UNMANAGED("UNMANAGED"),
-
- VAULT("VAULT"),
-
- NETWORK_CONNECTION("NETWORK_CONNECTION"),
-
- COMPOUND("COMPOUND"),
-
- FIAT_ACCOUNT("FIAT_ACCOUNT"),
-
- ONE_TIME_ADDRESS("ONE_TIME_ADDRESS"),
-
- STAR("*");
-
- private String value;
-
- LegacyPolicySrcOrDestType(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static LegacyPolicySrcOrDestType fromValue(String value) {
- for (LegacyPolicySrcOrDestType b : LegacyPolicySrcOrDestType.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- if (prefix == null) {
- prefix = "";
- }
-
- return String.format("%s=%s", prefix, this.toString());
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java
deleted file mode 100644
index c6399c67..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyStatus.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-/**
- * * SUCCESS - success * UNVALIDATED - not validated yet * INVALID_CONFIGURATION - at least one rule
- * is invalid * PENDING - pending approval * PENDING_CONSOLE_APPROVAL - pending approval from the
- * console app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled error
- */
-public enum LegacyPolicyStatus {
- SUCCESS("SUCCESS"),
-
- UNVALIDATED("UNVALIDATED"),
-
- INVALID_CONFIGURATION("INVALID_CONFIGURATION"),
-
- PENDING("PENDING"),
-
- PENDING_CONSOLE_APPROVAL("PENDING_CONSOLE_APPROVAL"),
-
- AWAITING_QUORUM("AWAITING_QUORUM"),
-
- UNHANDLED_ERROR("UNHANDLED_ERROR");
-
- private String value;
-
- LegacyPolicyStatus(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- @JsonCreator
- public static LegacyPolicyStatus fromValue(String value) {
- for (LegacyPolicyStatus b : LegacyPolicyStatus.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- if (prefix == null) {
- prefix = "";
- }
-
- return String.format("%s=%s", prefix, this.toString());
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java b/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java
deleted file mode 100644
index f1bb4aa8..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPolicyValidation.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Policy validation object */
-@JsonPropertyOrder({
- LegacyPolicyValidation.JSON_PROPERTY_STATUS,
- LegacyPolicyValidation.JSON_PROPERTY_CHECK_RESULT
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPolicyValidation {
- public static final String JSON_PROPERTY_STATUS = "status";
- @jakarta.annotation.Nonnull private String status;
-
- public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult";
- @jakarta.annotation.Nonnull private LegacyPolicyCheckResult checkResult;
-
- public LegacyPolicyValidation() {}
-
- @JsonCreator
- public LegacyPolicyValidation(
- @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) String status,
- @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true)
- LegacyPolicyCheckResult checkResult) {
- this.status = status;
- this.checkResult = checkResult;
- }
-
- public LegacyPolicyValidation status(@jakarta.annotation.Nonnull String status) {
- this.status = status;
- return this;
- }
-
- /**
- * Validation status
- *
- * @return status
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getStatus() {
- return status;
- }
-
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setStatus(@jakarta.annotation.Nonnull String status) {
- this.status = status;
- }
-
- public LegacyPolicyValidation checkResult(
- @jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) {
- this.checkResult = checkResult;
- return this;
- }
-
- /**
- * Get checkResult
- *
- * @return checkResult
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_CHECK_RESULT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyCheckResult getCheckResult() {
- return checkResult;
- }
-
- @JsonProperty(JSON_PROPERTY_CHECK_RESULT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setCheckResult(@jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) {
- this.checkResult = checkResult;
- }
-
- /** Return true if this LegacyPolicyValidation object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPolicyValidation legacyPolicyValidation = (LegacyPolicyValidation) o;
- return Objects.equals(this.status, legacyPolicyValidation.status)
- && Objects.equals(this.checkResult, legacyPolicyValidation.checkResult);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(status, checkResult);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPolicyValidation {\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" checkResult: ").append(toIndentedString(checkResult)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `status` to the URL query string
- if (getStatus() != null) {
- joiner.add(
- String.format(
- "%sstatus%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getStatus()))));
- }
-
- // add `checkResult` to the URL query string
- if (getCheckResult() != null) {
- joiner.add(getCheckResult().toUrlQueryString(prefix + "checkResult" + suffix));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java b/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java
deleted file mode 100644
index aacf9977..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPublishDraftRequest.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** LegacyPublishDraftRequest */
-@JsonPropertyOrder({LegacyPublishDraftRequest.JSON_PROPERTY_DRAFT_ID})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPublishDraftRequest {
- public static final String JSON_PROPERTY_DRAFT_ID = "draftId";
- @jakarta.annotation.Nullable private String draftId;
-
- public LegacyPublishDraftRequest() {}
-
- public LegacyPublishDraftRequest draftId(@jakarta.annotation.Nullable String draftId) {
- this.draftId = draftId;
- return this;
- }
-
- /**
- * draft unique identifier
- *
- * @return draftId
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DRAFT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getDraftId() {
- return draftId;
- }
-
- @JsonProperty(JSON_PROPERTY_DRAFT_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setDraftId(@jakarta.annotation.Nullable String draftId) {
- this.draftId = draftId;
- }
-
- /** Return true if this LegacyPublishDraftRequest object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPublishDraftRequest legacyPublishDraftRequest = (LegacyPublishDraftRequest) o;
- return Objects.equals(this.draftId, legacyPublishDraftRequest.draftId);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(draftId);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPublishDraftRequest {\n");
- sb.append(" draftId: ").append(toIndentedString(draftId)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `draftId` to the URL query string
- if (getDraftId() != null) {
- joiner.add(
- String.format(
- "%sdraftId%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getDraftId()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java b/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java
deleted file mode 100644
index d845a173..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacyPublishResult.java
+++ /dev/null
@@ -1,288 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** Response object of the publish policy operation */
-@JsonPropertyOrder({
- LegacyPublishResult.JSON_PROPERTY_STATUS,
- LegacyPublishResult.JSON_PROPERTY_RULES,
- LegacyPublishResult.JSON_PROPERTY_CHECK_RESULT,
- LegacyPublishResult.JSON_PROPERTY_METADATA
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class LegacyPublishResult {
- public static final String JSON_PROPERTY_STATUS = "status";
- @jakarta.annotation.Nonnull private LegacyPolicyStatus status;
-
- public static final String JSON_PROPERTY_RULES = "rules";
- @jakarta.annotation.Nonnull private List rules;
-
- public static final String JSON_PROPERTY_CHECK_RESULT = "checkResult";
- @jakarta.annotation.Nonnull private LegacyPolicyCheckResult checkResult;
-
- public static final String JSON_PROPERTY_METADATA = "metadata";
- @jakarta.annotation.Nonnull private LegacyPolicyMetadata metadata;
-
- public LegacyPublishResult() {}
-
- @JsonCreator
- public LegacyPublishResult(
- @JsonProperty(value = JSON_PROPERTY_STATUS, required = true) LegacyPolicyStatus status,
- @JsonProperty(value = JSON_PROPERTY_RULES, required = true)
- List rules,
- @JsonProperty(value = JSON_PROPERTY_CHECK_RESULT, required = true)
- LegacyPolicyCheckResult checkResult,
- @JsonProperty(value = JSON_PROPERTY_METADATA, required = true)
- LegacyPolicyMetadata metadata) {
- this.status = status;
- this.rules = rules;
- this.checkResult = checkResult;
- this.metadata = metadata;
- }
-
- public LegacyPublishResult status(@jakarta.annotation.Nonnull LegacyPolicyStatus status) {
- this.status = status;
- return this;
- }
-
- /**
- * Get status
- *
- * @return status
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyStatus getStatus() {
- return status;
- }
-
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setStatus(@jakarta.annotation.Nonnull LegacyPolicyStatus status) {
- this.status = status;
- }
-
- public LegacyPublishResult rules(@jakarta.annotation.Nonnull List rules) {
- this.rules = rules;
- return this;
- }
-
- public LegacyPublishResult addRulesItem(LegacyPolicyRule rulesItem) {
- if (this.rules == null) {
- this.rules = new ArrayList<>();
- }
- this.rules.add(rulesItem);
- return this;
- }
-
- /**
- * Get rules
- *
- * @return rules
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getRules() {
- return rules;
- }
-
- @JsonProperty(JSON_PROPERTY_RULES)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setRules(@jakarta.annotation.Nonnull List rules) {
- this.rules = rules;
- }
-
- public LegacyPublishResult checkResult(
- @jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) {
- this.checkResult = checkResult;
- return this;
- }
-
- /**
- * Get checkResult
- *
- * @return checkResult
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_CHECK_RESULT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyCheckResult getCheckResult() {
- return checkResult;
- }
-
- @JsonProperty(JSON_PROPERTY_CHECK_RESULT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setCheckResult(@jakarta.annotation.Nonnull LegacyPolicyCheckResult checkResult) {
- this.checkResult = checkResult;
- }
-
- public LegacyPublishResult metadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) {
- this.metadata = metadata;
- return this;
- }
-
- /**
- * Get metadata
- *
- * @return metadata
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_METADATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public LegacyPolicyMetadata getMetadata() {
- return metadata;
- }
-
- @JsonProperty(JSON_PROPERTY_METADATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setMetadata(@jakarta.annotation.Nonnull LegacyPolicyMetadata metadata) {
- this.metadata = metadata;
- }
-
- /** Return true if this LegacyPublishResult object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- LegacyPublishResult legacyPublishResult = (LegacyPublishResult) o;
- return Objects.equals(this.status, legacyPublishResult.status)
- && Objects.equals(this.rules, legacyPublishResult.rules)
- && Objects.equals(this.checkResult, legacyPublishResult.checkResult)
- && Objects.equals(this.metadata, legacyPublishResult.metadata);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(status, rules, checkResult, metadata);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class LegacyPublishResult {\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" rules: ").append(toIndentedString(rules)).append("\n");
- sb.append(" checkResult: ").append(toIndentedString(checkResult)).append("\n");
- sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `status` to the URL query string
- if (getStatus() != null) {
- joiner.add(
- String.format(
- "%sstatus%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getStatus()))));
- }
-
- // add `rules` to the URL query string
- if (getRules() != null) {
- for (int i = 0; i < getRules().size(); i++) {
- if (getRules().get(i) != null) {
- joiner.add(
- getRules()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%srules%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
- // add `checkResult` to the URL query string
- if (getCheckResult() != null) {
- joiner.add(getCheckResult().toUrlQueryString(prefix + "checkResult" + suffix));
- }
-
- // add `metadata` to the URL query string
- if (getMetadata() != null) {
- joiner.add(getMetadata().toUrlQueryString(prefix + "metadata" + suffix));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java b/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java
deleted file mode 100644
index 7ff1bbb4..00000000
--- a/src/main/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInner.java
+++ /dev/null
@@ -1,290 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonMappingException;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import com.fireblocks.sdk.JSON;
-import java.io.IOException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.StringJoiner;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-@JsonDeserialize(
- using = LegacySrcOrDestAttributesInner.LegacySrcOrDestAttributesInnerDeserializer.class)
-@JsonSerialize(
- using = LegacySrcOrDestAttributesInner.LegacySrcOrDestAttributesInnerSerializer.class)
-public class LegacySrcOrDestAttributesInner extends AbstractOpenApiSchema {
- private static final Logger log =
- Logger.getLogger(LegacySrcOrDestAttributesInner.class.getName());
-
- public static class LegacySrcOrDestAttributesInnerSerializer
- extends StdSerializer {
- public LegacySrcOrDestAttributesInnerSerializer(Class t) {
- super(t);
- }
-
- public LegacySrcOrDestAttributesInnerSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- LegacySrcOrDestAttributesInner value,
- JsonGenerator jgen,
- SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.getActualInstance());
- }
- }
-
- public static class LegacySrcOrDestAttributesInnerDeserializer
- extends StdDeserializer {
- public LegacySrcOrDestAttributesInnerDeserializer() {
- this(LegacySrcOrDestAttributesInner.class);
- }
-
- public LegacySrcOrDestAttributesInnerDeserializer(Class> vc) {
- super(vc);
- }
-
- @Override
- public LegacySrcOrDestAttributesInner deserialize(
- JsonParser jp, DeserializationContext ctxt)
- throws IOException, JsonProcessingException {
- JsonNode tree = jp.readValueAsTree();
-
- Object deserialized = null;
- // deserialize LegacyPolicySrcOrDestSubType
- try {
- deserialized =
- tree.traverse(jp.getCodec())
- .readValueAs(LegacyPolicySrcOrDestSubType.class);
- LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner();
- ret.setActualInstance(deserialized);
- return ret;
- } catch (Exception e) {
- // deserialization failed, continue, log to help debugging
- log.log(
- Level.FINER,
- "Input data does not match 'LegacySrcOrDestAttributesInner'",
- e);
- }
-
- // deserialize LegacyPolicySrcOrDestType
- try {
- deserialized =
- tree.traverse(jp.getCodec()).readValueAs(LegacyPolicySrcOrDestType.class);
- LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner();
- ret.setActualInstance(deserialized);
- return ret;
- } catch (Exception e) {
- // deserialization failed, continue, log to help debugging
- log.log(
- Level.FINER,
- "Input data does not match 'LegacySrcOrDestAttributesInner'",
- e);
- }
-
- // deserialize String
- try {
- deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class);
- LegacySrcOrDestAttributesInner ret = new LegacySrcOrDestAttributesInner();
- ret.setActualInstance(deserialized);
- return ret;
- } catch (Exception e) {
- // deserialization failed, continue, log to help debugging
- log.log(
- Level.FINER,
- "Input data does not match 'LegacySrcOrDestAttributesInner'",
- e);
- }
-
- throw new IOException(
- String.format(
- "Failed deserialization for LegacySrcOrDestAttributesInner: no match"
- + " found"));
- }
-
- /** Handle deserialization of the 'null' value. */
- @Override
- public LegacySrcOrDestAttributesInner getNullValue(DeserializationContext ctxt)
- throws JsonMappingException {
- throw new JsonMappingException(
- ctxt.getParser(), "LegacySrcOrDestAttributesInner cannot be null");
- }
- }
-
- // store a list of schema names defined in anyOf
- public static final Map> schemas = new HashMap>();
-
- public LegacySrcOrDestAttributesInner() {
- super("anyOf", Boolean.FALSE);
- }
-
- public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestSubType o) {
- super("anyOf", Boolean.FALSE);
- setActualInstance(o);
- }
-
- public LegacySrcOrDestAttributesInner(LegacyPolicySrcOrDestType o) {
- super("anyOf", Boolean.FALSE);
- setActualInstance(o);
- }
-
- public LegacySrcOrDestAttributesInner(String o) {
- super("anyOf", Boolean.FALSE);
- setActualInstance(o);
- }
-
- static {
- schemas.put("LegacyPolicySrcOrDestSubType", LegacyPolicySrcOrDestSubType.class);
- schemas.put("LegacyPolicySrcOrDestType", LegacyPolicySrcOrDestType.class);
- schemas.put("String", String.class);
- JSON.registerDescendants(
- LegacySrcOrDestAttributesInner.class, Collections.unmodifiableMap(schemas));
- }
-
- @Override
- public Map> getSchemas() {
- return LegacySrcOrDestAttributesInner.schemas;
- }
-
- /**
- * Set the instance that matches the anyOf child schema, check the instance parameter is valid
- * against the anyOf child schemas: LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType,
- * String
- *
- * It could be an instance of the 'anyOf' schemas. The anyOf child schemas may themselves be
- * a composed schema (allOf, anyOf, anyOf).
- */
- @Override
- public void setActualInstance(Object instance) {
- if (JSON.isInstanceOf(
- LegacyPolicySrcOrDestSubType.class, instance, new HashSet>())) {
- super.setActualInstance(instance);
- return;
- }
-
- if (JSON.isInstanceOf(LegacyPolicySrcOrDestType.class, instance, new HashSet>())) {
- super.setActualInstance(instance);
- return;
- }
-
- if (JSON.isInstanceOf(String.class, instance, new HashSet>())) {
- super.setActualInstance(instance);
- return;
- }
-
- throw new RuntimeException(
- "Invalid instance type. Must be LegacyPolicySrcOrDestSubType,"
- + " LegacyPolicySrcOrDestType, String");
- }
-
- /**
- * Get the actual instance, which can be the following: LegacyPolicySrcOrDestSubType,
- * LegacyPolicySrcOrDestType, String
- *
- * @return The actual instance (LegacyPolicySrcOrDestSubType, LegacyPolicySrcOrDestType, String)
- */
- @Override
- public Object getActualInstance() {
- return super.getActualInstance();
- }
-
- /**
- * Get the actual instance of `LegacyPolicySrcOrDestSubType`. If the actual instance is not
- * `LegacyPolicySrcOrDestSubType`, the ClassCastException will be thrown.
- *
- * @return The actual instance of `LegacyPolicySrcOrDestSubType`
- * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestSubType`
- */
- public LegacyPolicySrcOrDestSubType getLegacyPolicySrcOrDestSubType()
- throws ClassCastException {
- return (LegacyPolicySrcOrDestSubType) super.getActualInstance();
- }
-
- /**
- * Get the actual instance of `LegacyPolicySrcOrDestType`. If the actual instance is not
- * `LegacyPolicySrcOrDestType`, the ClassCastException will be thrown.
- *
- * @return The actual instance of `LegacyPolicySrcOrDestType`
- * @throws ClassCastException if the instance is not `LegacyPolicySrcOrDestType`
- */
- public LegacyPolicySrcOrDestType getLegacyPolicySrcOrDestType() throws ClassCastException {
- return (LegacyPolicySrcOrDestType) super.getActualInstance();
- }
-
- /**
- * Get the actual instance of `String`. If the actual instance is not `String`, the
- * ClassCastException will be thrown.
- *
- * @return The actual instance of `String`
- * @throws ClassCastException if the instance is not `String`
- */
- public String getString() throws ClassCastException {
- return (String) super.getActualInstance();
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- return null;
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java
deleted file mode 100644
index f0309eb4..00000000
--- a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.math.BigDecimal;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** SetAdminQuorumThresholdRequest */
-@JsonPropertyOrder({SetAdminQuorumThresholdRequest.JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class SetAdminQuorumThresholdRequest {
- public static final String JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD = "adminQuorumThreshold";
- @jakarta.annotation.Nullable private BigDecimal adminQuorumThreshold;
-
- public SetAdminQuorumThresholdRequest() {}
-
- public SetAdminQuorumThresholdRequest adminQuorumThreshold(
- @jakarta.annotation.Nullable BigDecimal adminQuorumThreshold) {
- this.adminQuorumThreshold = adminQuorumThreshold;
- return this;
- }
-
- /**
- * The number of admins that will requires to approve an operation
- *
- * @return adminQuorumThreshold
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BigDecimal getAdminQuorumThreshold() {
- return adminQuorumThreshold;
- }
-
- @JsonProperty(JSON_PROPERTY_ADMIN_QUORUM_THRESHOLD)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setAdminQuorumThreshold(
- @jakarta.annotation.Nullable BigDecimal adminQuorumThreshold) {
- this.adminQuorumThreshold = adminQuorumThreshold;
- }
-
- /** Return true if this SetAdminQuorumThresholdRequest object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SetAdminQuorumThresholdRequest setAdminQuorumThresholdRequest =
- (SetAdminQuorumThresholdRequest) o;
- return Objects.equals(
- this.adminQuorumThreshold, setAdminQuorumThresholdRequest.adminQuorumThreshold);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(adminQuorumThreshold);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SetAdminQuorumThresholdRequest {\n");
- sb.append(" adminQuorumThreshold: ")
- .append(toIndentedString(adminQuorumThreshold))
- .append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `adminQuorumThreshold` to the URL query string
- if (getAdminQuorumThreshold() != null) {
- joiner.add(
- String.format(
- "%sadminQuorumThreshold%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(
- ApiClient.valueToString(getAdminQuorumThreshold()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java b/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java
deleted file mode 100644
index 383eb7bd..00000000
--- a/src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fireblocks.sdk.ApiClient;
-import java.util.Objects;
-import java.util.StringJoiner;
-
-/** SetAdminQuorumThresholdResponse */
-@JsonPropertyOrder({SetAdminQuorumThresholdResponse.JSON_PROPERTY_MESSAGE})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class SetAdminQuorumThresholdResponse {
- public static final String JSON_PROPERTY_MESSAGE = "message";
- @jakarta.annotation.Nonnull private String message;
-
- public SetAdminQuorumThresholdResponse() {}
-
- @JsonCreator
- public SetAdminQuorumThresholdResponse(
- @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = true) String message) {
- this.message = message;
- }
-
- public SetAdminQuorumThresholdResponse message(@jakarta.annotation.Nonnull String message) {
- this.message = message;
- return this;
- }
-
- /**
- * The message which indicates the result of the operation.
- *
- * @return message
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getMessage() {
- return message;
- }
-
- @JsonProperty(JSON_PROPERTY_MESSAGE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setMessage(@jakarta.annotation.Nonnull String message) {
- this.message = message;
- }
-
- /** Return true if this SetAdminQuorumThresholdResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SetAdminQuorumThresholdResponse setAdminQuorumThresholdResponse =
- (SetAdminQuorumThresholdResponse) o;
- return Objects.equals(this.message, setAdminQuorumThresholdResponse.message);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(message);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SetAdminQuorumThresholdResponse {\n");
- sb.append(" message: ").append(toIndentedString(message)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @return URL query string
- */
- public String toUrlQueryString() {
- return toUrlQueryString(null);
- }
-
- /**
- * Convert the instance into URL query string.
- *
- * @param prefix prefix of the query string
- * @return URL query string
- */
- public String toUrlQueryString(String prefix) {
- String suffix = "";
- String containerSuffix = "";
- String containerPrefix = "";
- if (prefix == null) {
- // style=form, explode=true, e.g. /pet?name=cat&type=manx
- prefix = "";
- } else {
- // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
- prefix = prefix + "[";
- suffix = "]";
- containerSuffix = "]";
- containerPrefix = "[";
- }
-
- StringJoiner joiner = new StringJoiner("&");
-
- // add `message` to the URL query string
- if (getMessage() != null) {
- joiner.add(
- String.format(
- "%smessage%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getMessage()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/TradingPair.java b/src/main/java/com/fireblocks/sdk/model/TradingPair.java
index fb87475f..8fc8c37e 100644
--- a/src/main/java/com/fireblocks/sdk/model/TradingPair.java
+++ b/src/main/java/com/fireblocks/sdk/model/TradingPair.java
@@ -33,6 +33,8 @@
TradingPair.JSON_PROPERTY_ACCOUNT_ID,
TradingPair.JSON_PROPERTY_BASE_ASSET_ID,
TradingPair.JSON_PROPERTY_QUOTE_ASSET_ID,
+ TradingPair.JSON_PROPERTY_BASE_SYMBOL,
+ TradingPair.JSON_PROPERTY_QUOTE_SYMBOL,
TradingPair.JSON_PROPERTY_BASE_CHAIN,
TradingPair.JSON_PROPERTY_QUOTE_CHAIN,
TradingPair.JSON_PROPERTY_SIDE,
@@ -59,6 +61,12 @@ public class TradingPair {
public static final String JSON_PROPERTY_QUOTE_ASSET_ID = "quoteAssetId";
@jakarta.annotation.Nonnull private String quoteAssetId;
+ public static final String JSON_PROPERTY_BASE_SYMBOL = "baseSymbol";
+ @jakarta.annotation.Nullable private String baseSymbol;
+
+ public static final String JSON_PROPERTY_QUOTE_SYMBOL = "quoteSymbol";
+ @jakarta.annotation.Nullable private String quoteSymbol;
+
public static final String JSON_PROPERTY_BASE_CHAIN = "baseChain";
@jakarta.annotation.Nullable private String baseChain;
@@ -200,6 +208,58 @@ public void setQuoteAssetId(@jakarta.annotation.Nonnull String quoteAssetId) {
this.quoteAssetId = quoteAssetId;
}
+ public TradingPair baseSymbol(@jakarta.annotation.Nullable String baseSymbol) {
+ this.baseSymbol = baseSymbol;
+ return this;
+ }
+
+ /**
+ * Display symbol of the base asset, for readability when `baseAssetId` is not
+ * self-explanatory (a privately listed asset or a UUID). `*` when
+ * `baseAssetId` is `*`. Absent when the asset could not be resolved.
+ * Informational only, not an identifier.
+ *
+ * @return baseSymbol
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_BASE_SYMBOL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getBaseSymbol() {
+ return baseSymbol;
+ }
+
+ @JsonProperty(JSON_PROPERTY_BASE_SYMBOL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setBaseSymbol(@jakarta.annotation.Nullable String baseSymbol) {
+ this.baseSymbol = baseSymbol;
+ }
+
+ public TradingPair quoteSymbol(@jakarta.annotation.Nullable String quoteSymbol) {
+ this.quoteSymbol = quoteSymbol;
+ return this;
+ }
+
+ /**
+ * Display symbol of the quote asset, for readability when `quoteAssetId` is not
+ * self-explanatory (a privately listed asset or a UUID). `*` when
+ * `quoteAssetId` is `*`. Absent when the asset could not be resolved.
+ * Informational only, not an identifier.
+ *
+ * @return quoteSymbol
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_QUOTE_SYMBOL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getQuoteSymbol() {
+ return quoteSymbol;
+ }
+
+ @JsonProperty(JSON_PROPERTY_QUOTE_SYMBOL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setQuoteSymbol(@jakarta.annotation.Nullable String quoteSymbol) {
+ this.quoteSymbol = quoteSymbol;
+ }
+
public TradingPair baseChain(@jakarta.annotation.Nullable String baseChain) {
this.baseChain = baseChain;
return this;
@@ -426,6 +486,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.accountId, tradingPair.accountId)
&& Objects.equals(this.baseAssetId, tradingPair.baseAssetId)
&& Objects.equals(this.quoteAssetId, tradingPair.quoteAssetId)
+ && Objects.equals(this.baseSymbol, tradingPair.baseSymbol)
+ && Objects.equals(this.quoteSymbol, tradingPair.quoteSymbol)
&& Objects.equals(this.baseChain, tradingPair.baseChain)
&& Objects.equals(this.quoteChain, tradingPair.quoteChain)
&& Objects.equals(this.side, tradingPair.side)
@@ -444,6 +506,8 @@ public int hashCode() {
accountId,
baseAssetId,
quoteAssetId,
+ baseSymbol,
+ quoteSymbol,
baseChain,
quoteChain,
side,
@@ -463,6 +527,8 @@ public String toString() {
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" baseAssetId: ").append(toIndentedString(baseAssetId)).append("\n");
sb.append(" quoteAssetId: ").append(toIndentedString(quoteAssetId)).append("\n");
+ sb.append(" baseSymbol: ").append(toIndentedString(baseSymbol)).append("\n");
+ sb.append(" quoteSymbol: ").append(toIndentedString(quoteSymbol)).append("\n");
sb.append(" baseChain: ").append(toIndentedString(baseChain)).append("\n");
sb.append(" quoteChain: ").append(toIndentedString(quoteChain)).append("\n");
sb.append(" side: ").append(toIndentedString(side)).append("\n");
@@ -559,6 +625,26 @@ public String toUrlQueryString(String prefix) {
ApiClient.urlEncode(ApiClient.valueToString(getQuoteAssetId()))));
}
+ // add `baseSymbol` to the URL query string
+ if (getBaseSymbol() != null) {
+ joiner.add(
+ String.format(
+ "%sbaseSymbol%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getBaseSymbol()))));
+ }
+
+ // add `quoteSymbol` to the URL query string
+ if (getQuoteSymbol() != null) {
+ joiner.add(
+ String.format(
+ "%squoteSymbol%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getQuoteSymbol()))));
+ }
+
// add `baseChain` to the URL query string
if (getBaseChain() != null) {
joiner.add(
diff --git a/src/test/java/com/fireblocks/sdk/FireblocksTest.java b/src/test/java/com/fireblocks/sdk/FireblocksTest.java
index 1b6bf785..115744ba 100644
--- a/src/test/java/com/fireblocks/sdk/FireblocksTest.java
+++ b/src/test/java/com/fireblocks/sdk/FireblocksTest.java
@@ -622,14 +622,6 @@ public void testGetPaymentsPayoutApi() {
Assert.assertSame(paymentsPayout, fireblocks.paymentsPayout());
}
- @Test
- public void testGetPolicyEditorBetaApi() {
- setupFireblocks(true, null, null);
- PolicyEditorBetaApi policyEditorBeta = fireblocks.policyEditorBeta();
- Assert.assertNotNull(policyEditorBeta);
- Assert.assertSame(policyEditorBeta, fireblocks.policyEditorBeta());
- }
-
@Test
public void testGetPolicyEditorV2Api() {
setupFireblocks(true, null, null);
diff --git a/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java
deleted file mode 100644
index c7c29531..00000000
--- a/src/test/java/com/fireblocks/sdk/api/PolicyEditorBetaApiTest.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.api;
-
-
-import com.fireblocks.sdk.ApiResponse;
-import com.fireblocks.sdk.model.LegacyDraftReviewAndValidationResponse;
-import com.fireblocks.sdk.model.LegacyPolicyAndValidationResponse;
-import com.fireblocks.sdk.model.LegacyPolicyRules;
-import com.fireblocks.sdk.model.LegacyPublishDraftRequest;
-import com.fireblocks.sdk.model.LegacyPublishResult;
-import java.util.concurrent.CompletableFuture;
-import org.junit.Ignore;
-import org.junit.Test;
-
-/** API tests for PolicyEditorBetaApi */
-@Ignore
-public class PolicyEditorBetaApiTest {
-
- private final PolicyEditorBetaApi api = new PolicyEditorBetaApi();
-
- /**
- * Get the active policy and its validation
- *
- * Legacy Endpoint – Returns the active policy and its validation. **Note:** - This endpoint
- * will remain available for the foreseeable future and is not deprecated. - The
- * `getActivePolicy` endpoint under policy/paths provides policy type-specific
- * operations and improved functionality. - These endpoints are currently in beta and might be
- * subject to changes. If you want to participate and learn more about the Fireblocks TAP,
- * please contact your Fireblocks Customer Success Manager or send an email to
- * CSM@fireblocks.com.
- */
- @Test
- public void getActivePolicyLegacyTest() {
- CompletableFuture> response =
- api.getActivePolicyLegacy();
- }
-
- /**
- * Get the active draft
- *
- * Legacy Endpoint – Returns the active draft and its validation. **Note:** - This endpoint
- * will remain available for the foreseeable future and is not deprecated. - The
- * `getDraft` endpoint under policy/paths provides policy type-specific operations and
- * improved functionality. - These endpoints are currently in beta and might be subject to
- * changes. If you want to participate and learn more about the Fireblocks TAP, please contact
- * your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
- */
- @Test
- public void getDraftLegacyTest() {
- CompletableFuture> response =
- api.getDraftLegacy();
- }
-
- /**
- * Send publish request for a certain draft id
- *
- * Legacy Endpoint – Send publish request of certain draft id and returns the response.
- * **Note:** - This endpoint will remain available for the foreseeable future and is not
- * deprecated. - The `publishDraft` endpoint under policy/paths provides improved
- * functionality and better performance. - These endpoints are currently in beta and might be
- * subject to changes. If you want to participate and learn more about the Fireblocks TAP,
- * please contact your Fireblocks Customer Success Manager or send an email to
- * CSM@fireblocks.com.
- */
- @Test
- public void publishDraftLegacyTest() {
- LegacyPublishDraftRequest legacyPublishDraftRequest = null;
- String idempotencyKey = null;
- CompletableFuture> response =
- api.publishDraftLegacy(legacyPublishDraftRequest, idempotencyKey);
- }
-
- /**
- * Send publish request for a set of policy rules
- *
- * Send publish request of set of policy rules and returns the response. **Note:** These
- * endpoints are currently in beta and might be subject to changes. If you want to participate
- * and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success
- * Manager or send an email to CSM@fireblocks.com.
- */
- @Test
- public void publishPolicyRulesTest() {
- LegacyPolicyRules legacyPolicyRules = null;
- String idempotencyKey = null;
- CompletableFuture> response =
- api.publishPolicyRules(legacyPolicyRules, idempotencyKey);
- }
-
- /**
- * Update the draft with a new set of rules
- *
- * Legacy Endpoint – Update the draft and return its validation. **Note:** - This endpoint
- * will remain available for the foreseeable future and is not deprecated. - The
- * `updateDraft` endpoint under policy/paths provides policy type-specific operations
- * and improved functionality. - These endpoints are currently in beta and might be subject to
- * changes. If you want to participate and learn more about the Fireblocks TAP, please contact
- * your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
- */
- @Test
- public void updateDraftLegacyTest() {
- LegacyPolicyRules legacyPolicyRules = null;
- String idempotencyKey = null;
- CompletableFuture> response =
- api.updateDraftLegacy(legacyPolicyRules, idempotencyKey);
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java
deleted file mode 100644
index 9f4896e7..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyAmountAggregationTimePeriodMethodTest.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyAmountAggregationTimePeriodMethod */
-class LegacyAmountAggregationTimePeriodMethodTest {
- /** Model tests for LegacyAmountAggregationTimePeriodMethod */
- @Test
- void testLegacyAmountAggregationTimePeriodMethod() {
- // TODO: test LegacyAmountAggregationTimePeriodMethod
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java
deleted file mode 100644
index bd3116d9..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyDraftResponseTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyDraftResponse */
-class LegacyDraftResponseTest {
- private final LegacyDraftResponse model = new LegacyDraftResponse();
-
- /** Model tests for LegacyDraftResponse */
- @Test
- void testLegacyDraftResponse() {
- // TODO: test LegacyDraftResponse
- }
-
- /** Test the property 'status' */
- @Test
- void statusTest() {
- // TODO: test status
- }
-
- /** Test the property 'rules' */
- @Test
- void rulesTest() {
- // TODO: test rules
- }
-
- /** Test the property 'draftId' */
- @Test
- void draftIdTest() {
- // TODO: test draftId
- }
-
- /** Test the property 'metadata' */
- @Test
- void metadataTest() {
- // TODO: test metadata
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java
deleted file mode 100644
index 968a3632..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyDraftReviewAndValidationResponseTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyDraftReviewAndValidationResponse */
-class LegacyDraftReviewAndValidationResponseTest {
- private final LegacyDraftReviewAndValidationResponse model =
- new LegacyDraftReviewAndValidationResponse();
-
- /** Model tests for LegacyDraftReviewAndValidationResponse */
- @Test
- void testLegacyDraftReviewAndValidationResponse() {
- // TODO: test LegacyDraftReviewAndValidationResponse
- }
-
- /** Test the property 'draftResponse' */
- @Test
- void draftResponseTest() {
- // TODO: test draftResponse
- }
-
- /** Test the property 'validation' */
- @Test
- void validationTest() {
- // TODO: test validation
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java
deleted file mode 100644
index 1f0c4576..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyAndValidationResponseTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyAndValidationResponse */
-class LegacyPolicyAndValidationResponseTest {
- private final LegacyPolicyAndValidationResponse model = new LegacyPolicyAndValidationResponse();
-
- /** Model tests for LegacyPolicyAndValidationResponse */
- @Test
- void testLegacyPolicyAndValidationResponse() {
- // TODO: test LegacyPolicyAndValidationResponse
- }
-
- /** Test the property 'policy' */
- @Test
- void policyTest() {
- // TODO: test policy
- }
-
- /** Test the property 'validation' */
- @Test
- void validationTest() {
- // TODO: test validation
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java
deleted file mode 100644
index 9f8f6c58..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyCheckResultTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyCheckResult */
-class LegacyPolicyCheckResultTest {
- private final LegacyPolicyCheckResult model = new LegacyPolicyCheckResult();
-
- /** Model tests for LegacyPolicyCheckResult */
- @Test
- void testLegacyPolicyCheckResult() {
- // TODO: test LegacyPolicyCheckResult
- }
-
- /** Test the property 'errors' */
- @Test
- void errorsTest() {
- // TODO: test errors
- }
-
- /** Test the property 'results' */
- @Test
- void resultsTest() {
- // TODO: test results
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java
deleted file mode 100644
index 09f9c238..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyMetadataTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyMetadata */
-class LegacyPolicyMetadataTest {
- private final LegacyPolicyMetadata model = new LegacyPolicyMetadata();
-
- /** Model tests for LegacyPolicyMetadata */
- @Test
- void testLegacyPolicyMetadata() {
- // TODO: test LegacyPolicyMetadata
- }
-
- /** Test the property 'editedBy' */
- @Test
- void editedByTest() {
- // TODO: test editedBy
- }
-
- /** Test the property 'editedAt' */
- @Test
- void editedAtTest() {
- // TODO: test editedAt
- }
-
- /** Test the property 'publishedBy' */
- @Test
- void publishedByTest() {
- // TODO: test publishedBy
- }
-
- /** Test the property 'publishedAt' */
- @Test
- void publishedAtTest() {
- // TODO: test publishedAt
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java
deleted file mode 100644
index 12397aa9..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyResponseTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyResponse */
-class LegacyPolicyResponseTest {
- private final LegacyPolicyResponse model = new LegacyPolicyResponse();
-
- /** Model tests for LegacyPolicyResponse */
- @Test
- void testLegacyPolicyResponse() {
- // TODO: test LegacyPolicyResponse
- }
-
- /** Test the property 'rules' */
- @Test
- void rulesTest() {
- // TODO: test rules
- }
-
- /** Test the property 'metadata' */
- @Test
- void metadataTest() {
- // TODO: test metadata
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java
deleted file mode 100644
index e0ce08f4..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountAggregationTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleAmountAggregation */
-class LegacyPolicyRuleAmountAggregationTest {
- private final LegacyPolicyRuleAmountAggregation model = new LegacyPolicyRuleAmountAggregation();
-
- /** Model tests for LegacyPolicyRuleAmountAggregation */
- @Test
- void testLegacyPolicyRuleAmountAggregation() {
- // TODO: test LegacyPolicyRuleAmountAggregation
- }
-
- /** Test the property 'operators' */
- @Test
- void operatorsTest() {
- // TODO: test operators
- }
-
- /** Test the property 'srcTransferPeers' */
- @Test
- void srcTransferPeersTest() {
- // TODO: test srcTransferPeers
- }
-
- /** Test the property 'dstTransferPeers' */
- @Test
- void dstTransferPeersTest() {
- // TODO: test dstTransferPeers
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java
deleted file mode 100644
index 464c9841..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAmountTest.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleAmount */
-class LegacyPolicyRuleAmountTest {
- private final LegacyPolicyRuleAmount model = new LegacyPolicyRuleAmount();
-
- /** Model tests for LegacyPolicyRuleAmount */
- @Test
- void testLegacyPolicyRuleAmount() {
- // TODO: test LegacyPolicyRuleAmount
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java
deleted file mode 100644
index 47c4462e..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */
-class LegacyPolicyRuleAuthorizationGroupsGroupsInnerTest {
- private final LegacyPolicyRuleAuthorizationGroupsGroupsInner model =
- new LegacyPolicyRuleAuthorizationGroupsGroupsInner();
-
- /** Model tests for LegacyPolicyRuleAuthorizationGroupsGroupsInner */
- @Test
- void testLegacyPolicyRuleAuthorizationGroupsGroupsInner() {
- // TODO: test LegacyPolicyRuleAuthorizationGroupsGroupsInner
- }
-
- /** Test the property 'users' */
- @Test
- void usersTest() {
- // TODO: test users
- }
-
- /** Test the property 'usersGroups' */
- @Test
- void usersGroupsTest() {
- // TODO: test usersGroups
- }
-
- /** Test the property 'th' */
- @Test
- void thTest() {
- // TODO: test th
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java
deleted file mode 100644
index 75c6e4e7..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleAuthorizationGroupsTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleAuthorizationGroups */
-class LegacyPolicyRuleAuthorizationGroupsTest {
- private final LegacyPolicyRuleAuthorizationGroups model =
- new LegacyPolicyRuleAuthorizationGroups();
-
- /** Model tests for LegacyPolicyRuleAuthorizationGroups */
- @Test
- void testLegacyPolicyRuleAuthorizationGroups() {
- // TODO: test LegacyPolicyRuleAuthorizationGroups
- }
-
- /** Test the property 'logic' */
- @Test
- void logicTest() {
- // TODO: test logic
- }
-
- /** Test the property 'allowOperatorAsAuthorizer' */
- @Test
- void allowOperatorAsAuthorizerTest() {
- // TODO: test allowOperatorAsAuthorizer
- }
-
- /** Test the property 'groups' */
- @Test
- void groupsTest() {
- // TODO: test groups
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java
deleted file mode 100644
index 2cd2d31d..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleCheckResultTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleCheckResult */
-class LegacyPolicyRuleCheckResultTest {
- private final LegacyPolicyRuleCheckResult model = new LegacyPolicyRuleCheckResult();
-
- /** Model tests for LegacyPolicyRuleCheckResult */
- @Test
- void testLegacyPolicyRuleCheckResult() {
- // TODO: test LegacyPolicyRuleCheckResult
- }
-
- /** Test the property 'index' */
- @Test
- void indexTest() {
- // TODO: test index
- }
-
- /** Test the property 'status' */
- @Test
- void statusTest() {
- // TODO: test status
- }
-
- /** Test the property 'errors' */
- @Test
- void errorsTest() {
- // TODO: test errors
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java
deleted file mode 100644
index de23c3ba..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDesignatedSignersTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleDesignatedSigners */
-class LegacyPolicyRuleDesignatedSignersTest {
- private final LegacyPolicyRuleDesignatedSigners model = new LegacyPolicyRuleDesignatedSigners();
-
- /** Model tests for LegacyPolicyRuleDesignatedSigners */
- @Test
- void testLegacyPolicyRuleDesignatedSigners() {
- // TODO: test LegacyPolicyRuleDesignatedSigners
- }
-
- /** Test the property 'users' */
- @Test
- void usersTest() {
- // TODO: test users
- }
-
- /** Test the property 'usersGroups' */
- @Test
- void usersGroupsTest() {
- // TODO: test usersGroups
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java
deleted file mode 100644
index 24903274..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleDstTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleDst */
-class LegacyPolicyRuleDstTest {
- private final LegacyPolicyRuleDst model = new LegacyPolicyRuleDst();
-
- /** Model tests for LegacyPolicyRuleDst */
- @Test
- void testLegacyPolicyRuleDst() {
- // TODO: test LegacyPolicyRuleDst
- }
-
- /** Test the property 'ids' */
- @Test
- void idsTest() {
- // TODO: test ids
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java
deleted file mode 100644
index 8c937fed..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleErrorTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleError */
-class LegacyPolicyRuleErrorTest {
- private final LegacyPolicyRuleError model = new LegacyPolicyRuleError();
-
- /** Model tests for LegacyPolicyRuleError */
- @Test
- void testLegacyPolicyRuleError() {
- // TODO: test LegacyPolicyRuleError
- }
-
- /** Test the property 'errorMessage' */
- @Test
- void errorMessageTest() {
- // TODO: test errorMessage
- }
-
- /** Test the property 'errorCode' */
- @Test
- void errorCodeTest() {
- // TODO: test errorCode
- }
-
- /** Test the property 'errorCodeName' */
- @Test
- void errorCodeNameTest() {
- // TODO: test errorCodeName
- }
-
- /** Test the property 'errorField' */
- @Test
- void errorFieldTest() {
- // TODO: test errorField
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java
deleted file mode 100644
index ce3a8c3f..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleOperatorsTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleOperators */
-class LegacyPolicyRuleOperatorsTest {
- private final LegacyPolicyRuleOperators model = new LegacyPolicyRuleOperators();
-
- /** Model tests for LegacyPolicyRuleOperators */
- @Test
- void testLegacyPolicyRuleOperators() {
- // TODO: test LegacyPolicyRuleOperators
- }
-
- /** Test the property 'wildcard' */
- @Test
- void wildcardTest() {
- // TODO: test wildcard
- }
-
- /** Test the property 'users' */
- @Test
- void usersTest() {
- // TODO: test users
- }
-
- /** Test the property 'usersGroups' */
- @Test
- void usersGroupsTest() {
- // TODO: test usersGroups
- }
-
- /** Test the property 'services' */
- @Test
- void servicesTest() {
- // TODO: test services
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java
deleted file mode 100644
index 21b9512d..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningDerivationPathTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleRawMessageSigningDerivationPath */
-class LegacyPolicyRuleRawMessageSigningDerivationPathTest {
- private final LegacyPolicyRuleRawMessageSigningDerivationPath model =
- new LegacyPolicyRuleRawMessageSigningDerivationPath();
-
- /** Model tests for LegacyPolicyRuleRawMessageSigningDerivationPath */
- @Test
- void testLegacyPolicyRuleRawMessageSigningDerivationPath() {
- // TODO: test LegacyPolicyRuleRawMessageSigningDerivationPath
- }
-
- /** Test the property 'path' */
- @Test
- void pathTest() {
- // TODO: test path
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java
deleted file mode 100644
index 770253b7..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleRawMessageSigningTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleRawMessageSigning */
-class LegacyPolicyRuleRawMessageSigningTest {
- private final LegacyPolicyRuleRawMessageSigning model = new LegacyPolicyRuleRawMessageSigning();
-
- /** Model tests for LegacyPolicyRuleRawMessageSigning */
- @Test
- void testLegacyPolicyRuleRawMessageSigning() {
- // TODO: test LegacyPolicyRuleRawMessageSigning
- }
-
- /** Test the property 'algorithm' */
- @Test
- void algorithmTest() {
- // TODO: test algorithm
- }
-
- /** Test the property 'derivationPath' */
- @Test
- void derivationPathTest() {
- // TODO: test derivationPath
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java
deleted file mode 100644
index c3ecc5fb..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleSrcTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRuleSrc */
-class LegacyPolicyRuleSrcTest {
- private final LegacyPolicyRuleSrc model = new LegacyPolicyRuleSrc();
-
- /** Model tests for LegacyPolicyRuleSrc */
- @Test
- void testLegacyPolicyRuleSrc() {
- // TODO: test LegacyPolicyRuleSrc
- }
-
- /** Test the property 'ids' */
- @Test
- void idsTest() {
- // TODO: test ids
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java
deleted file mode 100644
index eeb9e0f3..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRuleTest.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRule */
-class LegacyPolicyRuleTest {
- private final LegacyPolicyRule model = new LegacyPolicyRule();
-
- /** Model tests for LegacyPolicyRule */
- @Test
- void testLegacyPolicyRule() {
- // TODO: test LegacyPolicyRule
- }
-
- /** Test the property 'operator' */
- @Test
- void operatorTest() {
- // TODO: test operator
- }
-
- /** Test the property 'operators' */
- @Test
- void operatorsTest() {
- // TODO: test operators
- }
-
- /** Test the property 'transactionType' */
- @Test
- void transactionTypeTest() {
- // TODO: test transactionType
- }
-
- /** Test the property 'designatedSigner' */
- @Test
- void designatedSignerTest() {
- // TODO: test designatedSigner
- }
-
- /** Test the property 'designatedSigners' */
- @Test
- void designatedSignersTest() {
- // TODO: test designatedSigners
- }
-
- /** Test the property 'type' */
- @Test
- void typeTest() {
- // TODO: test type
- }
-
- /** Test the property 'action' */
- @Test
- void actionTest() {
- // TODO: test action
- }
-
- /** Test the property 'asset' */
- @Test
- void assetTest() {
- // TODO: test asset
- }
-
- /** Test the property 'srcType' */
- @Test
- void srcTypeTest() {
- // TODO: test srcType
- }
-
- /** Test the property 'srcSubType' */
- @Test
- void srcSubTypeTest() {
- // TODO: test srcSubType
- }
-
- /** Test the property 'srcId' */
- @Test
- void srcIdTest() {
- // TODO: test srcId
- }
-
- /** Test the property 'src' */
- @Test
- void srcTest() {
- // TODO: test src
- }
-
- /** Test the property 'dstType' */
- @Test
- void dstTypeTest() {
- // TODO: test dstType
- }
-
- /** Test the property 'dstSubType' */
- @Test
- void dstSubTypeTest() {
- // TODO: test dstSubType
- }
-
- /** Test the property 'dstId' */
- @Test
- void dstIdTest() {
- // TODO: test dstId
- }
-
- /** Test the property 'dst' */
- @Test
- void dstTest() {
- // TODO: test dst
- }
-
- /** Test the property 'dstAddressType' */
- @Test
- void dstAddressTypeTest() {
- // TODO: test dstAddressType
- }
-
- /** Test the property 'amountCurrency' */
- @Test
- void amountCurrencyTest() {
- // TODO: test amountCurrency
- }
-
- /** Test the property 'amountScope' */
- @Test
- void amountScopeTest() {
- // TODO: test amountScope
- }
-
- /** Test the property 'amount' */
- @Test
- void amountTest() {
- // TODO: test amount
- }
-
- /** Test the property 'periodSec' */
- @Test
- void periodSecTest() {
- // TODO: test periodSec
- }
-
- /** Test the property 'authorizers' */
- @Test
- void authorizersTest() {
- // TODO: test authorizers
- }
-
- /** Test the property 'authorizersCount' */
- @Test
- void authorizersCountTest() {
- // TODO: test authorizersCount
- }
-
- /** Test the property 'authorizationGroups' */
- @Test
- void authorizationGroupsTest() {
- // TODO: test authorizationGroups
- }
-
- /** Test the property 'amountAggregation' */
- @Test
- void amountAggregationTest() {
- // TODO: test amountAggregation
- }
-
- /** Test the property 'rawMessageSigning' */
- @Test
- void rawMessageSigningTest() {
- // TODO: test rawMessageSigning
- }
-
- /** Test the property 'applyForApprove' */
- @Test
- void applyForApproveTest() {
- // TODO: test applyForApprove
- }
-
- /** Test the property 'applyForTypedMessage' */
- @Test
- void applyForTypedMessageTest() {
- // TODO: test applyForTypedMessage
- }
-
- /** Test the property 'externalDescriptor' */
- @Test
- void externalDescriptorTest() {
- // TODO: test externalDescriptor
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java
deleted file mode 100644
index f6722507..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyRulesTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyRules */
-class LegacyPolicyRulesTest {
- private final LegacyPolicyRules model = new LegacyPolicyRules();
-
- /** Model tests for LegacyPolicyRules */
- @Test
- void testLegacyPolicyRules() {
- // TODO: test LegacyPolicyRules
- }
-
- /** Test the property 'rules' */
- @Test
- void rulesTest() {
- // TODO: test rules
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java
deleted file mode 100644
index 246d9aa4..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestSubTypeTest.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicySrcOrDestSubType */
-class LegacyPolicySrcOrDestSubTypeTest {
- /** Model tests for LegacyPolicySrcOrDestSubType */
- @Test
- void testLegacyPolicySrcOrDestSubType() {
- // TODO: test LegacyPolicySrcOrDestSubType
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java
deleted file mode 100644
index 17eaa673..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicySrcOrDestTypeTest.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicySrcOrDestType */
-class LegacyPolicySrcOrDestTypeTest {
- /** Model tests for LegacyPolicySrcOrDestType */
- @Test
- void testLegacyPolicySrcOrDestType() {
- // TODO: test LegacyPolicySrcOrDestType
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java
deleted file mode 100644
index 400c6278..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyStatusTest.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyStatus */
-class LegacyPolicyStatusTest {
- /** Model tests for LegacyPolicyStatus */
- @Test
- void testLegacyPolicyStatus() {
- // TODO: test LegacyPolicyStatus
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java
deleted file mode 100644
index ff45e5ec..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPolicyValidationTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPolicyValidation */
-class LegacyPolicyValidationTest {
- private final LegacyPolicyValidation model = new LegacyPolicyValidation();
-
- /** Model tests for LegacyPolicyValidation */
- @Test
- void testLegacyPolicyValidation() {
- // TODO: test LegacyPolicyValidation
- }
-
- /** Test the property 'status' */
- @Test
- void statusTest() {
- // TODO: test status
- }
-
- /** Test the property 'checkResult' */
- @Test
- void checkResultTest() {
- // TODO: test checkResult
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java
deleted file mode 100644
index 7ab43b3f..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPublishDraftRequestTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPublishDraftRequest */
-class LegacyPublishDraftRequestTest {
- private final LegacyPublishDraftRequest model = new LegacyPublishDraftRequest();
-
- /** Model tests for LegacyPublishDraftRequest */
- @Test
- void testLegacyPublishDraftRequest() {
- // TODO: test LegacyPublishDraftRequest
- }
-
- /** Test the property 'draftId' */
- @Test
- void draftIdTest() {
- // TODO: test draftId
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java b/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java
deleted file mode 100644
index 74d827f1..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacyPublishResultTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacyPublishResult */
-class LegacyPublishResultTest {
- private final LegacyPublishResult model = new LegacyPublishResult();
-
- /** Model tests for LegacyPublishResult */
- @Test
- void testLegacyPublishResult() {
- // TODO: test LegacyPublishResult
- }
-
- /** Test the property 'status' */
- @Test
- void statusTest() {
- // TODO: test status
- }
-
- /** Test the property 'rules' */
- @Test
- void rulesTest() {
- // TODO: test rules
- }
-
- /** Test the property 'checkResult' */
- @Test
- void checkResultTest() {
- // TODO: test checkResult
- }
-
- /** Test the property 'metadata' */
- @Test
- void metadataTest() {
- // TODO: test metadata
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java b/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java
deleted file mode 100644
index 56437c93..00000000
--- a/src/test/java/com/fireblocks/sdk/model/LegacySrcOrDestAttributesInnerTest.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for LegacySrcOrDestAttributesInner */
-class LegacySrcOrDestAttributesInnerTest {
- private final LegacySrcOrDestAttributesInner model = new LegacySrcOrDestAttributesInner();
-
- /** Model tests for LegacySrcOrDestAttributesInner */
- @Test
- void testLegacySrcOrDestAttributesInner() {
- // TODO: test LegacySrcOrDestAttributesInner
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java
deleted file mode 100644
index d3e407aa..00000000
--- a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for SetAdminQuorumThresholdRequest */
-class SetAdminQuorumThresholdRequestTest {
- private final SetAdminQuorumThresholdRequest model = new SetAdminQuorumThresholdRequest();
-
- /** Model tests for SetAdminQuorumThresholdRequest */
- @Test
- void testSetAdminQuorumThresholdRequest() {
- // TODO: test SetAdminQuorumThresholdRequest
- }
-
- /** Test the property 'adminQuorumThreshold' */
- @Test
- void adminQuorumThresholdTest() {
- // TODO: test adminQuorumThreshold
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java
deleted file mode 100644
index 2b054d28..00000000
--- a/src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Fireblocks API
- * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
- *
- * The version of the OpenAPI document: 1.6.2
- * Contact: developers@fireblocks.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.fireblocks.sdk.model;
-
-
-import org.junit.jupiter.api.Test;
-
-/** Model tests for SetAdminQuorumThresholdResponse */
-class SetAdminQuorumThresholdResponseTest {
- private final SetAdminQuorumThresholdResponse model = new SetAdminQuorumThresholdResponse();
-
- /** Model tests for SetAdminQuorumThresholdResponse */
- @Test
- void testSetAdminQuorumThresholdResponse() {
- // TODO: test SetAdminQuorumThresholdResponse
- }
-
- /** Test the property 'message' */
- @Test
- void messageTest() {
- // TODO: test message
- }
-}
diff --git a/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java b/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java
index 959320b7..2e6bfe2e 100644
--- a/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/TradingPairTest.java
@@ -49,6 +49,18 @@ void quoteAssetIdTest() {
// TODO: test quoteAssetId
}
+ /** Test the property 'baseSymbol' */
+ @Test
+ void baseSymbolTest() {
+ // TODO: test baseSymbol
+ }
+
+ /** Test the property 'quoteSymbol' */
+ @Test
+ void quoteSymbolTest() {
+ // TODO: test quoteSymbol
+ }
+
/** Test the property 'baseChain' */
@Test
void baseChainTest() {