amlRegistration) {
this.amlRegistration = amlRegistration;
}
- /** Return true if this ComplianceResult object is equal to o. */
+ /** Return true if this ComplianceResults object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -285,12 +285,12 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- ComplianceResult complianceResult = (ComplianceResult) o;
- return Objects.equals(this.aml, complianceResult.aml)
- && Objects.equals(this.tr, complianceResult.tr)
- && Objects.equals(this.amlList, complianceResult.amlList)
- && Objects.equals(this.status, complianceResult.status)
- && Objects.equals(this.amlRegistration, complianceResult.amlRegistration);
+ ComplianceResults complianceResults = (ComplianceResults) o;
+ return Objects.equals(this.aml, complianceResults.aml)
+ && Objects.equals(this.tr, complianceResults.tr)
+ && Objects.equals(this.amlList, complianceResults.amlList)
+ && Objects.equals(this.status, complianceResults.status)
+ && Objects.equals(this.amlRegistration, complianceResults.amlRegistration);
}
@Override
@@ -301,7 +301,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class ComplianceResult {\n");
+ sb.append("class ComplianceResults {\n");
sb.append(" aml: ").append(toIndentedString(aml)).append("\n");
sb.append(" tr: ").append(toIndentedString(tr)).append("\n");
sb.append(" amlList: ").append(toIndentedString(amlList)).append("\n");
diff --git a/src/main/java/com/fireblocks/sdk/model/FeeInfo.java b/src/main/java/com/fireblocks/sdk/model/FeeInfo.java
index 5069b374..ec0f8ebf 100644
--- a/src/main/java/com/fireblocks/sdk/model/FeeInfo.java
+++ b/src/main/java/com/fireblocks/sdk/model/FeeInfo.java
@@ -13,9 +13,11 @@
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 java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Objects;
@@ -25,7 +27,11 @@
@JsonPropertyOrder({
FeeInfo.JSON_PROPERTY_NETWORK_FEE,
FeeInfo.JSON_PROPERTY_SERVICE_FEE,
- FeeInfo.JSON_PROPERTY_GAS_PRICE
+ FeeInfo.JSON_PROPERTY_GAS_PRICE,
+ FeeInfo.JSON_PROPERTY_PAID_BY_RELAY,
+ FeeInfo.JSON_PROPERTY_RELAY_TYPE,
+ FeeInfo.JSON_PROPERTY_RELAY_ID,
+ FeeInfo.JSON_PROPERTY_RELAY_NAME
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FeeInfo {
@@ -38,6 +44,51 @@ public class FeeInfo {
public static final String JSON_PROPERTY_GAS_PRICE = "gasPrice";
private String gasPrice;
+ public static final String JSON_PROPERTY_PAID_BY_RELAY = "paidByRelay";
+ private Boolean paidByRelay;
+
+ /** Wether the relay is the same tenant (LOCAL) or another tenant (THIRD_PARTY) */
+ public enum RelayTypeEnum {
+ LOCAL("LOCAL"),
+
+ THIRD_PARTY("THIRD_PARTY");
+
+ private String value;
+
+ RelayTypeEnum(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ @JsonCreator
+ public static RelayTypeEnum fromValue(String value) {
+ for (RelayTypeEnum b : RelayTypeEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+ }
+
+ public static final String JSON_PROPERTY_RELAY_TYPE = "relayType";
+ private RelayTypeEnum relayType;
+
+ public static final String JSON_PROPERTY_RELAY_ID = "relayId";
+ private String relayId;
+
+ public static final String JSON_PROPERTY_RELAY_NAME = "relayName";
+ private String relayName;
+
public FeeInfo() {}
public FeeInfo networkFee(String networkFee) {
@@ -110,6 +161,98 @@ public void setGasPrice(String gasPrice) {
this.gasPrice = gasPrice;
}
+ public FeeInfo paidByRelay(Boolean paidByRelay) {
+ this.paidByRelay = paidByRelay;
+ return this;
+ }
+
+ /**
+ * Wether the fee was paid by the relay or not
+ *
+ * @return paidByRelay
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PAID_BY_RELAY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getPaidByRelay() {
+ return paidByRelay;
+ }
+
+ @JsonProperty(JSON_PROPERTY_PAID_BY_RELAY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setPaidByRelay(Boolean paidByRelay) {
+ this.paidByRelay = paidByRelay;
+ }
+
+ public FeeInfo relayType(RelayTypeEnum relayType) {
+ this.relayType = relayType;
+ return this;
+ }
+
+ /**
+ * Wether the relay is the same tenant (LOCAL) or another tenant (THIRD_PARTY)
+ *
+ * @return relayType
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_RELAY_TYPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public RelayTypeEnum getRelayType() {
+ return relayType;
+ }
+
+ @JsonProperty(JSON_PROPERTY_RELAY_TYPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setRelayType(RelayTypeEnum relayType) {
+ this.relayType = relayType;
+ }
+
+ public FeeInfo relayId(String relayId) {
+ this.relayId = relayId;
+ return this;
+ }
+
+ /**
+ * The vault account ID of the relay
+ *
+ * @return relayId
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_RELAY_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getRelayId() {
+ return relayId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_RELAY_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setRelayId(String relayId) {
+ this.relayId = relayId;
+ }
+
+ public FeeInfo relayName(String relayName) {
+ this.relayName = relayName;
+ return this;
+ }
+
+ /**
+ * The name of the tenant, only for THIRD_PARTY relays
+ *
+ * @return relayName
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_RELAY_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getRelayName() {
+ return relayName;
+ }
+
+ @JsonProperty(JSON_PROPERTY_RELAY_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setRelayName(String relayName) {
+ this.relayName = relayName;
+ }
+
/** Return true if this FeeInfo object is equal to o. */
@Override
public boolean equals(Object o) {
@@ -122,12 +265,17 @@ public boolean equals(Object o) {
FeeInfo feeInfo = (FeeInfo) o;
return Objects.equals(this.networkFee, feeInfo.networkFee)
&& Objects.equals(this.serviceFee, feeInfo.serviceFee)
- && Objects.equals(this.gasPrice, feeInfo.gasPrice);
+ && Objects.equals(this.gasPrice, feeInfo.gasPrice)
+ && Objects.equals(this.paidByRelay, feeInfo.paidByRelay)
+ && Objects.equals(this.relayType, feeInfo.relayType)
+ && Objects.equals(this.relayId, feeInfo.relayId)
+ && Objects.equals(this.relayName, feeInfo.relayName);
}
@Override
public int hashCode() {
- return Objects.hash(networkFee, serviceFee, gasPrice);
+ return Objects.hash(
+ networkFee, serviceFee, gasPrice, paidByRelay, relayType, relayId, relayName);
}
@Override
@@ -137,6 +285,10 @@ public String toString() {
sb.append(" networkFee: ").append(toIndentedString(networkFee)).append("\n");
sb.append(" serviceFee: ").append(toIndentedString(serviceFee)).append("\n");
sb.append(" gasPrice: ").append(toIndentedString(gasPrice)).append("\n");
+ sb.append(" paidByRelay: ").append(toIndentedString(paidByRelay)).append("\n");
+ sb.append(" relayType: ").append(toIndentedString(relayType)).append("\n");
+ sb.append(" relayId: ").append(toIndentedString(relayId)).append("\n");
+ sb.append(" relayName: ").append(toIndentedString(relayName)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -219,6 +371,54 @@ public String toUrlQueryString(String prefix) {
.replaceAll("\\+", "%20")));
}
+ // add `paidByRelay` to the URL query string
+ if (getPaidByRelay() != null) {
+ joiner.add(
+ String.format(
+ "%spaidByRelay%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getPaidByRelay()),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `relayType` to the URL query string
+ if (getRelayType() != null) {
+ joiner.add(
+ String.format(
+ "%srelayType%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getRelayType()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `relayId` to the URL query string
+ if (getRelayId() != null) {
+ joiner.add(
+ String.format(
+ "%srelayId%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getRelayId()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `relayName` to the URL query string
+ if (getRelayName() != null) {
+ joiner.add(
+ String.format(
+ "%srelayName%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getRelayName()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
return joiner.toString();
}
}
diff --git a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java
new file mode 100644
index 00000000..b1456fff
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsRequest.java
@@ -0,0 +1,305 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@fireblocks.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.fireblocks.sdk.model;
+
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.Objects;
+import java.util.StringJoiner;
+import java.util.UUID;
+
+/** MergeStakeAccountsRequest */
+@JsonPropertyOrder({
+ MergeStakeAccountsRequest.JSON_PROPERTY_SOURCE_ID,
+ MergeStakeAccountsRequest.JSON_PROPERTY_DESTINATION_ID,
+ MergeStakeAccountsRequest.JSON_PROPERTY_FEE,
+ MergeStakeAccountsRequest.JSON_PROPERTY_FEE_LEVEL,
+ MergeStakeAccountsRequest.JSON_PROPERTY_TX_NOTE
+})
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class MergeStakeAccountsRequest {
+ public static final String JSON_PROPERTY_SOURCE_ID = "sourceId";
+ private UUID sourceId;
+
+ public static final String JSON_PROPERTY_DESTINATION_ID = "destinationId";
+ private UUID destinationId;
+
+ public static final String JSON_PROPERTY_FEE = "fee";
+ private String fee;
+
+ public static final String JSON_PROPERTY_FEE_LEVEL = "feeLevel";
+ private FeeLevel feeLevel;
+
+ public static final String JSON_PROPERTY_TX_NOTE = "txNote";
+ private String txNote;
+
+ public MergeStakeAccountsRequest() {}
+
+ public MergeStakeAccountsRequest sourceId(UUID sourceId) {
+ this.sourceId = sourceId;
+ return this;
+ }
+
+ /**
+ * Id of the source position to merge from
+ *
+ * @return sourceId
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_SOURCE_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public UUID getSourceId() {
+ return sourceId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_SOURCE_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setSourceId(UUID sourceId) {
+ this.sourceId = sourceId;
+ }
+
+ public MergeStakeAccountsRequest destinationId(UUID destinationId) {
+ this.destinationId = destinationId;
+ return this;
+ }
+
+ /**
+ * Id of the destination position to merge into
+ *
+ * @return destinationId
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_DESTINATION_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public UUID getDestinationId() {
+ return destinationId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_DESTINATION_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setDestinationId(UUID destinationId) {
+ this.destinationId = destinationId;
+ }
+
+ public MergeStakeAccountsRequest fee(String fee) {
+ this.fee = fee;
+ return this;
+ }
+
+ /**
+ * Represents the fee for a transaction, which can be specified as a percentage value. Only one
+ * of fee/feeLevel is required.
+ *
+ * @return fee
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_FEE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getFee() {
+ return fee;
+ }
+
+ @JsonProperty(JSON_PROPERTY_FEE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setFee(String fee) {
+ this.fee = fee;
+ }
+
+ public MergeStakeAccountsRequest feeLevel(FeeLevel feeLevel) {
+ this.feeLevel = feeLevel;
+ return this;
+ }
+
+ /**
+ * Get feeLevel
+ *
+ * @return feeLevel
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_FEE_LEVEL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public FeeLevel getFeeLevel() {
+ return feeLevel;
+ }
+
+ @JsonProperty(JSON_PROPERTY_FEE_LEVEL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setFeeLevel(FeeLevel feeLevel) {
+ this.feeLevel = feeLevel;
+ }
+
+ public MergeStakeAccountsRequest txNote(String txNote) {
+ this.txNote = txNote;
+ return this;
+ }
+
+ /**
+ * The note to associate with the transactions.
+ *
+ * @return txNote
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TX_NOTE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTxNote() {
+ return txNote;
+ }
+
+ @JsonProperty(JSON_PROPERTY_TX_NOTE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setTxNote(String txNote) {
+ this.txNote = txNote;
+ }
+
+ /** Return true if this MergeStakeAccountsRequest object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ MergeStakeAccountsRequest mergeStakeAccountsRequest = (MergeStakeAccountsRequest) o;
+ return Objects.equals(this.sourceId, mergeStakeAccountsRequest.sourceId)
+ && Objects.equals(this.destinationId, mergeStakeAccountsRequest.destinationId)
+ && Objects.equals(this.fee, mergeStakeAccountsRequest.fee)
+ && Objects.equals(this.feeLevel, mergeStakeAccountsRequest.feeLevel)
+ && Objects.equals(this.txNote, mergeStakeAccountsRequest.txNote);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(sourceId, destinationId, fee, feeLevel, txNote);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class MergeStakeAccountsRequest {\n");
+ sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n");
+ sb.append(" destinationId: ").append(toIndentedString(destinationId)).append("\n");
+ sb.append(" fee: ").append(toIndentedString(fee)).append("\n");
+ sb.append(" feeLevel: ").append(toIndentedString(feeLevel)).append("\n");
+ sb.append(" txNote: ").append(toIndentedString(txNote)).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 `sourceId` to the URL query string
+ if (getSourceId() != null) {
+ joiner.add(
+ String.format(
+ "%ssourceId%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getSourceId()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `destinationId` to the URL query string
+ if (getDestinationId() != null) {
+ joiner.add(
+ String.format(
+ "%sdestinationId%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getDestinationId()),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `fee` to the URL query string
+ if (getFee() != null) {
+ joiner.add(
+ String.format(
+ "%sfee%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getFee()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `feeLevel` to the URL query string
+ if (getFeeLevel() != null) {
+ joiner.add(
+ String.format(
+ "%sfeeLevel%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getFeeLevel()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `txNote` to the URL query string
+ if (getTxNote() != null) {
+ joiner.add(
+ String.format(
+ "%stxNote%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getTxNote()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java
new file mode 100644
index 00000000..3e5a6105
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/MergeStakeAccountsResponse.java
@@ -0,0 +1,140 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@fireblocks.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.fireblocks.sdk.model;
+
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.Objects;
+import java.util.StringJoiner;
+import java.util.UUID;
+
+/** MergeStakeAccountsResponse */
+@JsonPropertyOrder({MergeStakeAccountsResponse.JSON_PROPERTY_ID})
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class MergeStakeAccountsResponse {
+ public static final String JSON_PROPERTY_ID = "id";
+ private UUID id;
+
+ public MergeStakeAccountsResponse() {}
+
+ public MergeStakeAccountsResponse id(UUID id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * The unique identifier of the merge position (the id of the destination position)
+ *
+ * @return id
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public UUID getId() {
+ return id;
+ }
+
+ @JsonProperty(JSON_PROPERTY_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setId(UUID id) {
+ this.id = id;
+ }
+
+ /** Return true if this MergeStakeAccountsResponse object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ MergeStakeAccountsResponse mergeStakeAccountsResponse = (MergeStakeAccountsResponse) o;
+ return Objects.equals(this.id, mergeStakeAccountsResponse.id);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class MergeStakeAccountsResponse {\n");
+ sb.append(" id: ").append(toIndentedString(id)).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 `id` to the URL query string
+ if (getId() != null) {
+ joiner.add(
+ String.format(
+ "%sid%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java
index 1aa5ea90..a97ce26b 100644
--- a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java
+++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java
@@ -59,7 +59,7 @@
TransactionResponse.JSON_PROPERTY_EXCHANGE_TX_ID,
TransactionResponse.JSON_PROPERTY_CUSTOMER_REF_ID,
TransactionResponse.JSON_PROPERTY_AML_SCREENING_RESULT,
- TransactionResponse.JSON_PROPERTY_COMPLIANCE_RESULT,
+ TransactionResponse.JSON_PROPERTY_COMPLIANCE_RESULTS,
TransactionResponse.JSON_PROPERTY_EXTRA_PARAMETERS,
TransactionResponse.JSON_PROPERTY_SIGNED_MESSAGES,
TransactionResponse.JSON_PROPERTY_NUM_OF_CONFIRMATIONS,
@@ -173,8 +173,8 @@ public class TransactionResponse {
public static final String JSON_PROPERTY_AML_SCREENING_RESULT = "amlScreeningResult";
private AmlScreeningResult amlScreeningResult;
- public static final String JSON_PROPERTY_COMPLIANCE_RESULT = "complianceResult";
- private ComplianceResult complianceResult;
+ public static final String JSON_PROPERTY_COMPLIANCE_RESULTS = "complianceResults";
+ private ComplianceResults complianceResults;
public static final String JSON_PROPERTY_EXTRA_PARAMETERS = "extraParameters";
private Object extraParameters;
@@ -1042,27 +1042,27 @@ public void setAmlScreeningResult(AmlScreeningResult amlScreeningResult) {
this.amlScreeningResult = amlScreeningResult;
}
- public TransactionResponse complianceResult(ComplianceResult complianceResult) {
- this.complianceResult = complianceResult;
+ public TransactionResponse complianceResults(ComplianceResults complianceResults) {
+ this.complianceResults = complianceResults;
return this;
}
/**
- * Get complianceResult
+ * Get complianceResults
*
- * @return complianceResult
+ * @return complianceResults
*/
@jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULT)
+ @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ComplianceResult getComplianceResult() {
- return complianceResult;
+ public ComplianceResults getComplianceResults() {
+ return complianceResults;
}
- @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULT)
+ @JsonProperty(JSON_PROPERTY_COMPLIANCE_RESULTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setComplianceResult(ComplianceResult complianceResult) {
- this.complianceResult = complianceResult;
+ public void setComplianceResults(ComplianceResults complianceResults) {
+ this.complianceResults = complianceResults;
}
public TransactionResponse extraParameters(Object extraParameters) {
@@ -1524,7 +1524,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.exchangeTxId, transactionResponse.exchangeTxId)
&& Objects.equals(this.customerRefId, transactionResponse.customerRefId)
&& Objects.equals(this.amlScreeningResult, transactionResponse.amlScreeningResult)
- && Objects.equals(this.complianceResult, transactionResponse.complianceResult)
+ && Objects.equals(this.complianceResults, transactionResponse.complianceResults)
&& Objects.equals(this.extraParameters, transactionResponse.extraParameters)
&& Objects.equals(this.signedMessages, transactionResponse.signedMessages)
&& Objects.equals(this.numOfConfirmations, transactionResponse.numOfConfirmations)
@@ -1577,7 +1577,7 @@ public int hashCode() {
exchangeTxId,
customerRefId,
amlScreeningResult,
- complianceResult,
+ complianceResults,
extraParameters,
signedMessages,
numOfConfirmations,
@@ -1643,7 +1643,9 @@ public String toString() {
sb.append(" amlScreeningResult: ")
.append(toIndentedString(amlScreeningResult))
.append("\n");
- sb.append(" complianceResult: ").append(toIndentedString(complianceResult)).append("\n");
+ sb.append(" complianceResults: ")
+ .append(toIndentedString(complianceResults))
+ .append("\n");
sb.append(" extraParameters: ").append(toIndentedString(extraParameters)).append("\n");
sb.append(" signedMessages: ").append(toIndentedString(signedMessages)).append("\n");
sb.append(" numOfConfirmations: ")
@@ -2070,10 +2072,10 @@ public String toUrlQueryString(String prefix) {
.toUrlQueryString(prefix + "amlScreeningResult" + suffix));
}
- // add `complianceResult` to the URL query string
- if (getComplianceResult() != null) {
+ // add `complianceResults` to the URL query string
+ if (getComplianceResults() != null) {
joiner.add(
- getComplianceResult().toUrlQueryString(prefix + "complianceResult" + suffix));
+ getComplianceResults().toUrlQueryString(prefix + "complianceResults" + suffix));
}
// add `extraParameters` to the URL query string
diff --git a/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java b/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java
index decc7eb8..8b6974c5 100644
--- a/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java
+++ b/src/test/java/com/fireblocks/sdk/api/StakingApiTest.java
@@ -20,6 +20,8 @@
import com.fireblocks.sdk.model.ClaimRewardsRequest;
import com.fireblocks.sdk.model.Delegation;
import com.fireblocks.sdk.model.DelegationSummary;
+import com.fireblocks.sdk.model.MergeStakeAccountsRequest;
+import com.fireblocks.sdk.model.MergeStakeAccountsResponse;
import com.fireblocks.sdk.model.Provider;
import com.fireblocks.sdk.model.SplitRequest;
import com.fireblocks.sdk.model.SplitResponse;
@@ -169,6 +171,22 @@ public void getSummaryByVaultTest() throws ApiException {
api.getSummaryByVault();
}
+ /**
+ * Execute a Merge operation on SOL/SOL_TEST stake accounts
+ *
+ * Perform a Solana Merge of two active stake accounts into one.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void mergeStakeAccountsTest() throws ApiException {
+ MergeStakeAccountsRequest mergeStakeAccountsRequest = null;
+ String chainDescriptor = null;
+ String idempotencyKey = null;
+ CompletableFuture> response =
+ api.mergeStakeAccounts(mergeStakeAccountsRequest, chainDescriptor, idempotencyKey);
+ }
+
/**
* Execute a Split operation on SOL/SOL_TEST stake account
*
diff --git a/src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java b/src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java
similarity index 79%
rename from src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java
rename to src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java
index 458ec6dc..b6e6bb8b 100644
--- a/src/test/java/com/fireblocks/sdk/model/ComplianceResultTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/ComplianceResultsTest.java
@@ -15,14 +15,14 @@
import org.junit.Test;
-/** Model tests for ComplianceResult */
-public class ComplianceResultTest {
- private final ComplianceResult model = new ComplianceResult();
+/** Model tests for ComplianceResults */
+public class ComplianceResultsTest {
+ private final ComplianceResults model = new ComplianceResults();
- /** Model tests for ComplianceResult */
+ /** Model tests for ComplianceResults */
@Test
- public void testComplianceResult() {
- // TODO: test ComplianceResult
+ public void testComplianceResults() {
+ // TODO: test ComplianceResults
}
/** Test the property 'aml' */
diff --git a/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java b/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java
index c2f87b21..98cb303c 100644
--- a/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/FeeInfoTest.java
@@ -42,4 +42,28 @@ public void serviceFeeTest() {
public void gasPriceTest() {
// TODO: test gasPrice
}
+
+ /** Test the property 'paidByRelay' */
+ @Test
+ public void paidByRelayTest() {
+ // TODO: test paidByRelay
+ }
+
+ /** Test the property 'relayType' */
+ @Test
+ public void relayTypeTest() {
+ // TODO: test relayType
+ }
+
+ /** Test the property 'relayId' */
+ @Test
+ public void relayIdTest() {
+ // TODO: test relayId
+ }
+
+ /** Test the property 'relayName' */
+ @Test
+ public void relayNameTest() {
+ // TODO: test relayName
+ }
}
diff --git a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java
new file mode 100644
index 00000000..e8c2c9f8
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsRequestTest.java
@@ -0,0 +1,57 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@fireblocks.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.fireblocks.sdk.model;
+
+
+import org.junit.Test;
+
+/** Model tests for MergeStakeAccountsRequest */
+public class MergeStakeAccountsRequestTest {
+ private final MergeStakeAccountsRequest model = new MergeStakeAccountsRequest();
+
+ /** Model tests for MergeStakeAccountsRequest */
+ @Test
+ public void testMergeStakeAccountsRequest() {
+ // TODO: test MergeStakeAccountsRequest
+ }
+
+ /** Test the property 'sourceId' */
+ @Test
+ public void sourceIdTest() {
+ // TODO: test sourceId
+ }
+
+ /** Test the property 'destinationId' */
+ @Test
+ public void destinationIdTest() {
+ // TODO: test destinationId
+ }
+
+ /** Test the property 'fee' */
+ @Test
+ public void feeTest() {
+ // TODO: test fee
+ }
+
+ /** Test the property 'feeLevel' */
+ @Test
+ public void feeLevelTest() {
+ // TODO: test feeLevel
+ }
+
+ /** Test the property 'txNote' */
+ @Test
+ public void txNoteTest() {
+ // TODO: test txNote
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java
new file mode 100644
index 00000000..7dfa846b
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/MergeStakeAccountsResponseTest.java
@@ -0,0 +1,33 @@
+/*
+ * Fireblocks API
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+ *
+ * The version of the OpenAPI document: 1.6.2
+ * Contact: support@fireblocks.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.fireblocks.sdk.model;
+
+
+import org.junit.Test;
+
+/** Model tests for MergeStakeAccountsResponse */
+public class MergeStakeAccountsResponseTest {
+ private final MergeStakeAccountsResponse model = new MergeStakeAccountsResponse();
+
+ /** Model tests for MergeStakeAccountsResponse */
+ @Test
+ public void testMergeStakeAccountsResponse() {
+ // TODO: test MergeStakeAccountsResponse
+ }
+
+ /** Test the property 'id' */
+ @Test
+ public void idTest() {
+ // TODO: test id
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java
index f3210724..16125ca1 100644
--- a/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/TransactionResponseTest.java
@@ -211,10 +211,10 @@ public void amlScreeningResultTest() {
// TODO: test amlScreeningResult
}
- /** Test the property 'complianceResult' */
+ /** Test the property 'complianceResults' */
@Test
- public void complianceResultTest() {
- // TODO: test complianceResult
+ public void complianceResultsTest() {
+ // TODO: test complianceResults
}
/** Test the property 'extraParameters' */