> getSchemas() {
- return FeeBreakdown.schemas;
+ public FeeBreakdown rent(@jakarta.annotation.Nullable String rent) {
+ this.rent = rent;
+ return this;
}
/**
- * Set the instance that matches the oneOf child schema, check the instance parameter is valid
- * against the oneOf child schemas: FeeBreakdownOneOf, FeeBreakdownOneOf1
+ * Rent fee for account creation/storage (Solana-specific, optional)
*
- * It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be
- * a composed schema (allOf, anyOf, oneOf).
+ * @return rent
*/
- @Override
- public void setActualInstance(Object instance) {
- if (JSON.isInstanceOf(FeeBreakdownOneOf.class, instance, new HashSet>())) {
- super.setActualInstance(instance);
- return;
- }
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_RENT)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getRent() {
+ return rent;
+ }
- if (JSON.isInstanceOf(FeeBreakdownOneOf1.class, instance, new HashSet>())) {
- super.setActualInstance(instance);
- return;
- }
+ @JsonProperty(JSON_PROPERTY_RENT)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setRent(@jakarta.annotation.Nullable String rent) {
+ this.rent = rent;
+ }
- throw new RuntimeException(
- "Invalid instance type. Must be FeeBreakdownOneOf, FeeBreakdownOneOf1");
+ public FeeBreakdown totalFee(@jakarta.annotation.Nullable String totalFee) {
+ this.totalFee = totalFee;
+ return this;
}
/**
- * Get the actual instance, which can be the following: FeeBreakdownOneOf, FeeBreakdownOneOf1
+ * Total fee amount
*
- * @return The actual instance (FeeBreakdownOneOf, FeeBreakdownOneOf1)
+ * @return totalFee
*/
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TOTAL_FEE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTotalFee() {
+ return totalFee;
+ }
+
+ @JsonProperty(JSON_PROPERTY_TOTAL_FEE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setTotalFee(@jakarta.annotation.Nullable String totalFee) {
+ this.totalFee = totalFee;
+ }
+
+ /** Return true if this FeeBreakdown object is equal to o. */
@Override
- public Object getActualInstance() {
- return super.getActualInstance();
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ FeeBreakdown feeBreakdown = (FeeBreakdown) o;
+ return Objects.equals(this.baseFee, feeBreakdown.baseFee)
+ && Objects.equals(this.priorityFee, feeBreakdown.priorityFee)
+ && Objects.equals(this.rent, feeBreakdown.rent)
+ && Objects.equals(this.totalFee, feeBreakdown.totalFee);
}
- /**
- * Get the actual instance of `FeeBreakdownOneOf`. If the actual instance is not
- * `FeeBreakdownOneOf`, the ClassCastException will be thrown.
- *
- * @return The actual instance of `FeeBreakdownOneOf`
- * @throws ClassCastException if the instance is not `FeeBreakdownOneOf`
- */
- public FeeBreakdownOneOf getFeeBreakdownOneOf() throws ClassCastException {
- return (FeeBreakdownOneOf) super.getActualInstance();
+ @Override
+ public int hashCode() {
+ return Objects.hash(baseFee, priorityFee, rent, totalFee);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class FeeBreakdown {\n");
+ sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n");
+ sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n");
+ sb.append(" rent: ").append(toIndentedString(rent)).append("\n");
+ sb.append(" totalFee: ").append(toIndentedString(totalFee)).append("\n");
+ sb.append("}");
+ return sb.toString();
}
/**
- * Get the actual instance of `FeeBreakdownOneOf1`. If the actual instance is not
- * `FeeBreakdownOneOf1`, the ClassCastException will be thrown.
- *
- * @return The actual instance of `FeeBreakdownOneOf1`
- * @throws ClassCastException if the instance is not `FeeBreakdownOneOf1`
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
*/
- public FeeBreakdownOneOf1 getFeeBreakdownOneOf1() throws ClassCastException {
- return (FeeBreakdownOneOf1) super.getActualInstance();
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
}
/**
@@ -297,22 +213,46 @@ public String toUrlQueryString(String prefix) {
StringJoiner joiner = new StringJoiner("&");
- if (getActualInstance() instanceof FeeBreakdownOneOf) {
- if (getActualInstance() != null) {
- joiner.add(
- ((FeeBreakdownOneOf) getActualInstance())
- .toUrlQueryString(prefix + "one_of_0" + suffix));
- }
- return joiner.toString();
+ // add `baseFee` to the URL query string
+ if (getBaseFee() != null) {
+ joiner.add(
+ String.format(
+ "%sbaseFee%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getBaseFee()))));
+ }
+
+ // add `priorityFee` to the URL query string
+ if (getPriorityFee() != null) {
+ joiner.add(
+ String.format(
+ "%spriorityFee%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee()))));
+ }
+
+ // add `rent` to the URL query string
+ if (getRent() != null) {
+ joiner.add(
+ String.format(
+ "%srent%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getRent()))));
}
- if (getActualInstance() instanceof FeeBreakdownOneOf1) {
- if (getActualInstance() != null) {
- joiner.add(
- ((FeeBreakdownOneOf1) getActualInstance())
- .toUrlQueryString(prefix + "one_of_1" + suffix));
- }
- return joiner.toString();
+
+ // add `totalFee` to the URL query string
+ if (getTotalFee() != null) {
+ joiner.add(
+ String.format(
+ "%stotalFee%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getTotalFee()))));
}
- return null;
+
+ return joiner.toString();
}
}
diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java
deleted file mode 100644
index 8d4e01f3..00000000
--- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.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;
-
-/** Solana-specific fee breakdown */
-@JsonPropertyOrder({
- FeeBreakdownOneOf.JSON_PROPERTY_BASE_FEE,
- FeeBreakdownOneOf.JSON_PROPERTY_PRIORITY_FEE,
- FeeBreakdownOneOf.JSON_PROPERTY_RENT,
- FeeBreakdownOneOf.JSON_PROPERTY_TOTAL_FEE
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class FeeBreakdownOneOf {
- public static final String JSON_PROPERTY_BASE_FEE = "baseFee";
- @jakarta.annotation.Nullable private String baseFee;
-
- public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee";
- @jakarta.annotation.Nullable private String priorityFee;
-
- public static final String JSON_PROPERTY_RENT = "rent";
- @jakarta.annotation.Nullable private String rent;
-
- public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee";
- @jakarta.annotation.Nullable private String totalFee;
-
- public FeeBreakdownOneOf() {}
-
- public FeeBreakdownOneOf baseFee(@jakarta.annotation.Nullable String baseFee) {
- this.baseFee = baseFee;
- return this;
- }
-
- /**
- * Base fee for Solana transaction
- *
- * @return baseFee
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_BASE_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getBaseFee() {
- return baseFee;
- }
-
- @JsonProperty(JSON_PROPERTY_BASE_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setBaseFee(@jakarta.annotation.Nullable String baseFee) {
- this.baseFee = baseFee;
- }
-
- public FeeBreakdownOneOf priorityFee(@jakarta.annotation.Nullable String priorityFee) {
- this.priorityFee = priorityFee;
- return this;
- }
-
- /**
- * Priority fee for Solana transaction
- *
- * @return priorityFee
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_PRIORITY_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getPriorityFee() {
- return priorityFee;
- }
-
- @JsonProperty(JSON_PROPERTY_PRIORITY_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) {
- this.priorityFee = priorityFee;
- }
-
- public FeeBreakdownOneOf rent(@jakarta.annotation.Nullable String rent) {
- this.rent = rent;
- return this;
- }
-
- /**
- * Rent fee for Solana account creation/storage
- *
- * @return rent
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_RENT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getRent() {
- return rent;
- }
-
- @JsonProperty(JSON_PROPERTY_RENT)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setRent(@jakarta.annotation.Nullable String rent) {
- this.rent = rent;
- }
-
- public FeeBreakdownOneOf totalFee(@jakarta.annotation.Nullable String totalFee) {
- this.totalFee = totalFee;
- return this;
- }
-
- /**
- * Total fee amount
- *
- * @return totalFee
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TOTAL_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getTotalFee() {
- return totalFee;
- }
-
- @JsonProperty(JSON_PROPERTY_TOTAL_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setTotalFee(@jakarta.annotation.Nullable String totalFee) {
- this.totalFee = totalFee;
- }
-
- /** Return true if this FeeBreakdown_oneOf object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FeeBreakdownOneOf feeBreakdownOneOf = (FeeBreakdownOneOf) o;
- return Objects.equals(this.baseFee, feeBreakdownOneOf.baseFee)
- && Objects.equals(this.priorityFee, feeBreakdownOneOf.priorityFee)
- && Objects.equals(this.rent, feeBreakdownOneOf.rent)
- && Objects.equals(this.totalFee, feeBreakdownOneOf.totalFee);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(baseFee, priorityFee, rent, totalFee);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class FeeBreakdownOneOf {\n");
- sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n");
- sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n");
- sb.append(" rent: ").append(toIndentedString(rent)).append("\n");
- sb.append(" totalFee: ").append(toIndentedString(totalFee)).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 `baseFee` to the URL query string
- if (getBaseFee() != null) {
- joiner.add(
- String.format(
- "%sbaseFee%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getBaseFee()))));
- }
-
- // add `priorityFee` to the URL query string
- if (getPriorityFee() != null) {
- joiner.add(
- String.format(
- "%spriorityFee%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee()))));
- }
-
- // add `rent` to the URL query string
- if (getRent() != null) {
- joiner.add(
- String.format(
- "%srent%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getRent()))));
- }
-
- // add `totalFee` to the URL query string
- if (getTotalFee() != null) {
- joiner.add(
- String.format(
- "%stotalFee%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getTotalFee()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java
deleted file mode 100644
index 74fa6836..00000000
--- a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java
+++ /dev/null
@@ -1,219 +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;
-
-/** Generic fee breakdown for other blockchains */
-@JsonPropertyOrder({
- FeeBreakdownOneOf1.JSON_PROPERTY_BASE_FEE,
- FeeBreakdownOneOf1.JSON_PROPERTY_PRIORITY_FEE,
- FeeBreakdownOneOf1.JSON_PROPERTY_TOTAL_FEE
-})
-@jakarta.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.14.0")
-public class FeeBreakdownOneOf1 {
- public static final String JSON_PROPERTY_BASE_FEE = "baseFee";
- @jakarta.annotation.Nullable private String baseFee;
-
- public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee";
- @jakarta.annotation.Nullable private String priorityFee;
-
- public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee";
- @jakarta.annotation.Nullable private String totalFee;
-
- public FeeBreakdownOneOf1() {}
-
- public FeeBreakdownOneOf1 baseFee(@jakarta.annotation.Nullable String baseFee) {
- this.baseFee = baseFee;
- return this;
- }
-
- /**
- * Base fee component
- *
- * @return baseFee
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_BASE_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getBaseFee() {
- return baseFee;
- }
-
- @JsonProperty(JSON_PROPERTY_BASE_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setBaseFee(@jakarta.annotation.Nullable String baseFee) {
- this.baseFee = baseFee;
- }
-
- public FeeBreakdownOneOf1 priorityFee(@jakarta.annotation.Nullable String priorityFee) {
- this.priorityFee = priorityFee;
- return this;
- }
-
- /**
- * Priority fee component
- *
- * @return priorityFee
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_PRIORITY_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getPriorityFee() {
- return priorityFee;
- }
-
- @JsonProperty(JSON_PROPERTY_PRIORITY_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setPriorityFee(@jakarta.annotation.Nullable String priorityFee) {
- this.priorityFee = priorityFee;
- }
-
- public FeeBreakdownOneOf1 totalFee(@jakarta.annotation.Nullable String totalFee) {
- this.totalFee = totalFee;
- return this;
- }
-
- /**
- * Total fee amount
- *
- * @return totalFee
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TOTAL_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getTotalFee() {
- return totalFee;
- }
-
- @JsonProperty(JSON_PROPERTY_TOTAL_FEE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setTotalFee(@jakarta.annotation.Nullable String totalFee) {
- this.totalFee = totalFee;
- }
-
- /** Return true if this FeeBreakdown_oneOf_1 object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- FeeBreakdownOneOf1 feeBreakdownOneOf1 = (FeeBreakdownOneOf1) o;
- return Objects.equals(this.baseFee, feeBreakdownOneOf1.baseFee)
- && Objects.equals(this.priorityFee, feeBreakdownOneOf1.priorityFee)
- && Objects.equals(this.totalFee, feeBreakdownOneOf1.totalFee);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(baseFee, priorityFee, totalFee);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class FeeBreakdownOneOf1 {\n");
- sb.append(" baseFee: ").append(toIndentedString(baseFee)).append("\n");
- sb.append(" priorityFee: ").append(toIndentedString(priorityFee)).append("\n");
- sb.append(" totalFee: ").append(toIndentedString(totalFee)).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 `baseFee` to the URL query string
- if (getBaseFee() != null) {
- joiner.add(
- String.format(
- "%sbaseFee%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getBaseFee()))));
- }
-
- // add `priorityFee` to the URL query string
- if (getPriorityFee() != null) {
- joiner.add(
- String.format(
- "%spriorityFee%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getPriorityFee()))));
- }
-
- // add `totalFee` to the URL query string
- if (getTotalFee() != null) {
- joiner.add(
- String.format(
- "%stotalFee%s=%s",
- prefix,
- suffix,
- ApiClient.urlEncode(ApiClient.valueToString(getTotalFee()))));
- }
-
- return joiner.toString();
- }
-}
diff --git a/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java b/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java
index 5dce923d..9ca4a324 100644
--- a/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java
+++ b/src/main/java/com/fireblocks/sdk/model/PersonalIdentification.java
@@ -31,7 +31,11 @@
PersonalIdentification.JSON_PROPERTY_DATE_OF_BIRTH,
PersonalIdentification.JSON_PROPERTY_POSTAL_ADDRESS,
PersonalIdentification.JSON_PROPERTY_EMAIL,
- PersonalIdentification.JSON_PROPERTY_PHONE
+ PersonalIdentification.JSON_PROPERTY_PHONE,
+ PersonalIdentification.JSON_PROPERTY_ID_NUMBER,
+ PersonalIdentification.JSON_PROPERTY_ID_TYPE,
+ PersonalIdentification.JSON_PROPERTY_ADDITIONAL_ID_NUMBER,
+ PersonalIdentification.JSON_PROPERTY_ADDITIONAL_ID_TYPE
})
@jakarta.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
@@ -62,6 +66,18 @@ public class PersonalIdentification {
public static final String JSON_PROPERTY_PHONE = "phone";
@jakarta.annotation.Nullable private String phone;
+ public static final String JSON_PROPERTY_ID_NUMBER = "idNumber";
+ @jakarta.annotation.Nullable private String idNumber;
+
+ public static final String JSON_PROPERTY_ID_TYPE = "idType";
+ @jakarta.annotation.Nullable private PersonalIdentificationType idType;
+
+ public static final String JSON_PROPERTY_ADDITIONAL_ID_NUMBER = "additionalIdNumber";
+ @jakarta.annotation.Nullable private String additionalIdNumber;
+
+ public static final String JSON_PROPERTY_ADDITIONAL_ID_TYPE = "additionalIdType";
+ @jakarta.annotation.Nullable private PersonalIdentificationType additionalIdType;
+
public PersonalIdentification() {}
@JsonCreator
@@ -276,6 +292,104 @@ public void setPhone(@jakarta.annotation.Nullable String phone) {
this.phone = phone;
}
+ public PersonalIdentification idNumber(@jakarta.annotation.Nullable String idNumber) {
+ this.idNumber = idNumber;
+ return this;
+ }
+
+ /**
+ * The identification number corresponding to the primary identification document type specified
+ * in idType
+ *
+ * @return idNumber
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ID_NUMBER)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getIdNumber() {
+ return idNumber;
+ }
+
+ @JsonProperty(JSON_PROPERTY_ID_NUMBER)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setIdNumber(@jakarta.annotation.Nullable String idNumber) {
+ this.idNumber = idNumber;
+ }
+
+ public PersonalIdentification idType(
+ @jakarta.annotation.Nullable PersonalIdentificationType idType) {
+ this.idType = idType;
+ return this;
+ }
+
+ /**
+ * Get idType
+ *
+ * @return idType
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ID_TYPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public PersonalIdentificationType getIdType() {
+ return idType;
+ }
+
+ @JsonProperty(JSON_PROPERTY_ID_TYPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setIdType(@jakarta.annotation.Nullable PersonalIdentificationType idType) {
+ this.idType = idType;
+ }
+
+ public PersonalIdentification additionalIdNumber(
+ @jakarta.annotation.Nullable String additionalIdNumber) {
+ this.additionalIdNumber = additionalIdNumber;
+ return this;
+ }
+
+ /**
+ * The identification number corresponding to the additional identification document type
+ * specified in additionalIdType
+ *
+ * @return additionalIdNumber
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_NUMBER)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAdditionalIdNumber() {
+ return additionalIdNumber;
+ }
+
+ @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_NUMBER)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setAdditionalIdNumber(@jakarta.annotation.Nullable String additionalIdNumber) {
+ this.additionalIdNumber = additionalIdNumber;
+ }
+
+ public PersonalIdentification additionalIdType(
+ @jakarta.annotation.Nullable PersonalIdentificationType additionalIdType) {
+ this.additionalIdType = additionalIdType;
+ return this;
+ }
+
+ /**
+ * Get additionalIdType
+ *
+ * @return additionalIdType
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_TYPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public PersonalIdentificationType getAdditionalIdType() {
+ return additionalIdType;
+ }
+
+ @JsonProperty(JSON_PROPERTY_ADDITIONAL_ID_TYPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setAdditionalIdType(
+ @jakarta.annotation.Nullable PersonalIdentificationType additionalIdType) {
+ this.additionalIdType = additionalIdType;
+ }
+
/** Return true if this PersonalIdentification object is equal to o. */
@Override
public boolean equals(Object o) {
@@ -295,7 +409,12 @@ public boolean equals(Object o) {
&& Objects.equals(this.dateOfBirth, personalIdentification.dateOfBirth)
&& Objects.equals(this.postalAddress, personalIdentification.postalAddress)
&& Objects.equals(this.email, personalIdentification.email)
- && Objects.equals(this.phone, personalIdentification.phone);
+ && Objects.equals(this.phone, personalIdentification.phone)
+ && Objects.equals(this.idNumber, personalIdentification.idNumber)
+ && Objects.equals(this.idType, personalIdentification.idType)
+ && Objects.equals(
+ this.additionalIdNumber, personalIdentification.additionalIdNumber)
+ && Objects.equals(this.additionalIdType, personalIdentification.additionalIdType);
}
@Override
@@ -308,7 +427,11 @@ public int hashCode() {
dateOfBirth,
postalAddress,
email,
- phone);
+ phone,
+ idNumber,
+ idType,
+ additionalIdNumber,
+ additionalIdType);
}
@Override
@@ -327,6 +450,12 @@ public String toString() {
sb.append(" postalAddress: ").append(toIndentedString(postalAddress)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
+ sb.append(" idNumber: ").append(toIndentedString(idNumber)).append("\n");
+ sb.append(" idType: ").append(toIndentedString(idType)).append("\n");
+ sb.append(" additionalIdNumber: ")
+ .append(toIndentedString(additionalIdNumber))
+ .append("\n");
+ sb.append(" additionalIdType: ").append(toIndentedString(additionalIdType)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -446,6 +575,46 @@ public String toUrlQueryString(String prefix) {
ApiClient.urlEncode(ApiClient.valueToString(getPhone()))));
}
+ // add `idNumber` to the URL query string
+ if (getIdNumber() != null) {
+ joiner.add(
+ String.format(
+ "%sidNumber%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getIdNumber()))));
+ }
+
+ // add `idType` to the URL query string
+ if (getIdType() != null) {
+ joiner.add(
+ String.format(
+ "%sidType%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getIdType()))));
+ }
+
+ // add `additionalIdNumber` to the URL query string
+ if (getAdditionalIdNumber() != null) {
+ joiner.add(
+ String.format(
+ "%sadditionalIdNumber%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getAdditionalIdNumber()))));
+ }
+
+ // add `additionalIdType` to the URL query string
+ if (getAdditionalIdType() != null) {
+ joiner.add(
+ String.format(
+ "%sadditionalIdType%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getAdditionalIdType()))));
+ }
+
return joiner.toString();
}
}
diff --git a/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java b/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java
new file mode 100644
index 00000000..290c31fe
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/PersonalIdentificationType.java
@@ -0,0 +1,114 @@
+/*
+ * 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;
+
+/**
+ * Type of identification document. Acceptable values are: - 'NIN_SLIP_CARD': National
+ * Identification Number (NIN) Slip Card - temporary identification card issued in Nigeria -
+ * 'BVN': Bank Verification Number - unique identity number for bank account holders in
+ * Nigeria - 'ID_CARD': General national identity card - 'ID_BOOK': Identity book or
+ * booklet format identification document - 'NATIONAL_ID': National identity document issued
+ * by government authorities - 'ALIEN_CARD': Alien registration card for foreign nationals -
+ * 'PASSPORT': International travel document and proof of identity - 'ECOWAS_CARD':
+ * Economic Community of West African States identification card - 'RWANDA_CARD': Rwandan
+ * national identification card - 'DRIVERS_LICENSE': Driver's license or driving permit
+ * - 'RESIDENT_CARD': Resident permit or permanent resident card - 'VOTER_ID': Voter
+ * identification card used for electoral registration - 'HEALTH_INSURANCE_ID': Health
+ * insurance identification card - 'GHANA_CARD': Ghana Card - national identification card
+ * issued in Ghana - 'REFUGEE_ID': Refugee identification document - 'SSNIT': Social
+ * Security and National Insurance Trust ID - social security number in Ghana -
+ * 'NON_CITIZEN_ID': Identification document for non-citizens or foreign residents -
+ * 'NATIONAL_REGISTRATION_CARD': National registration card issued by national registration
+ * authority
+ */
+public enum PersonalIdentificationType {
+ NIN_SLIP_CARD("NIN_SLIP_CARD"),
+
+ BVN("BVN"),
+
+ ID_CARD("ID_CARD"),
+
+ ID_BOOK("ID_BOOK"),
+
+ NATIONAL_ID("NATIONAL_ID"),
+
+ ALIEN_CARD("ALIEN_CARD"),
+
+ PASSPORT("PASSPORT"),
+
+ ECOWAS_CARD("ECOWAS_CARD"),
+
+ RWANDA_CARD("RWANDA_CARD"),
+
+ DRIVERS_LICENSE("DRIVERS_LICENSE"),
+
+ RESIDENT_CARD("RESIDENT_CARD"),
+
+ VOTER_ID("VOTER_ID"),
+
+ HEALTH_INSURANCE_ID("HEALTH_INSURANCE_ID"),
+
+ GHANA_CARD("GHANA_CARD"),
+
+ REFUGEE_ID("REFUGEE_ID"),
+
+ SSNIT("SSNIT"),
+
+ NON_CITIZEN_ID("NON_CITIZEN_ID"),
+
+ NATIONAL_REGISTRATION_CARD("NATIONAL_REGISTRATION_CARD");
+
+ private String value;
+
+ PersonalIdentificationType(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ @JsonCreator
+ public static PersonalIdentificationType fromValue(String value) {
+ for (PersonalIdentificationType b : PersonalIdentificationType.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/QuoteFailure.java b/src/main/java/com/fireblocks/sdk/model/QuoteFailure.java
new file mode 100644
index 00000000..b4d2e64f
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/QuoteFailure.java
@@ -0,0 +1,223 @@
+/*
+ * 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;
+
+/** QuoteFailure */
+@JsonPropertyOrder({
+ QuoteFailure.JSON_PROPERTY_PROVIDER_ID,
+ QuoteFailure.JSON_PROPERTY_ACCOUNT_ID,
+ QuoteFailure.JSON_PROPERTY_ERROR
+})
+@jakarta.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.14.0")
+public class QuoteFailure {
+ public static final String JSON_PROPERTY_PROVIDER_ID = "providerId";
+ @jakarta.annotation.Nonnull private String providerId;
+
+ public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
+ @jakarta.annotation.Nullable private String accountId;
+
+ public static final String JSON_PROPERTY_ERROR = "error";
+ @jakarta.annotation.Nonnull private TradingErrorSchema error;
+
+ public QuoteFailure() {}
+
+ @JsonCreator
+ public QuoteFailure(
+ @JsonProperty(value = JSON_PROPERTY_PROVIDER_ID, required = true) String providerId,
+ @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) TradingErrorSchema error) {
+ this.providerId = providerId;
+ this.error = error;
+ }
+
+ public QuoteFailure providerId(@jakarta.annotation.Nonnull String providerId) {
+ this.providerId = providerId;
+ return this;
+ }
+
+ /**
+ * Identifier of the provider for which the quote request failed.
+ *
+ * @return providerId
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_PROVIDER_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public String getProviderId() {
+ return providerId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_PROVIDER_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setProviderId(@jakarta.annotation.Nonnull String providerId) {
+ this.providerId = providerId;
+ }
+
+ public QuoteFailure accountId(@jakarta.annotation.Nullable String accountId) {
+ this.accountId = accountId;
+ return this;
+ }
+
+ /**
+ * Identifier of the account for which the quote request failed (optional).
+ *
+ * @return accountId
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAccountId() {
+ return accountId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setAccountId(@jakarta.annotation.Nullable String accountId) {
+ this.accountId = accountId;
+ }
+
+ public QuoteFailure error(@jakarta.annotation.Nonnull TradingErrorSchema error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Get error
+ *
+ * @return error
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_ERROR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public TradingErrorSchema getError() {
+ return error;
+ }
+
+ @JsonProperty(JSON_PROPERTY_ERROR)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setError(@jakarta.annotation.Nonnull TradingErrorSchema error) {
+ this.error = error;
+ }
+
+ /** Return true if this QuoteFailure object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ QuoteFailure quoteFailure = (QuoteFailure) o;
+ return Objects.equals(this.providerId, quoteFailure.providerId)
+ && Objects.equals(this.accountId, quoteFailure.accountId)
+ && Objects.equals(this.error, quoteFailure.error);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(providerId, accountId, error);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class QuoteFailure {\n");
+ sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n");
+ sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
+ sb.append(" error: ").append(toIndentedString(error)).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 `providerId` to the URL query string
+ if (getProviderId() != null) {
+ joiner.add(
+ String.format(
+ "%sproviderId%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getProviderId()))));
+ }
+
+ // add `accountId` to the URL query string
+ if (getAccountId() != null) {
+ joiner.add(
+ String.format(
+ "%saccountId%s=%s",
+ prefix,
+ suffix,
+ ApiClient.urlEncode(ApiClient.valueToString(getAccountId()))));
+ }
+
+ // add `error` to the URL query string
+ if (getError() != null) {
+ joiner.add(getError().toUrlQueryString(prefix + "error" + suffix));
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java b/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java
index 5fe2ff2a..77b986a2 100644
--- a/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java
+++ b/src/main/java/com/fireblocks/sdk/model/QuotesResponse.java
@@ -13,6 +13,7 @@
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;
@@ -22,17 +23,32 @@
import java.util.StringJoiner;
/** QuotesResponse */
-@JsonPropertyOrder({QuotesResponse.JSON_PROPERTY_QUOTES})
+@JsonPropertyOrder({
+ QuotesResponse.JSON_PROPERTY_QUOTES,
+ QuotesResponse.JSON_PROPERTY_QUOTE_FAILURES
+})
@jakarta.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.14.0")
public class QuotesResponse {
public static final String JSON_PROPERTY_QUOTES = "quotes";
- @jakarta.annotation.Nullable private List quotes;
+ @jakarta.annotation.Nonnull private List quotes;
+
+ public static final String JSON_PROPERTY_QUOTE_FAILURES = "quoteFailures";
+ @jakarta.annotation.Nonnull private List quoteFailures;
public QuotesResponse() {}
- public QuotesResponse quotes(@jakarta.annotation.Nullable List quotes) {
+ @JsonCreator
+ public QuotesResponse(
+ @JsonProperty(value = JSON_PROPERTY_QUOTES, required = true) List quotes,
+ @JsonProperty(value = JSON_PROPERTY_QUOTE_FAILURES, required = true)
+ List quoteFailures) {
+ this.quotes = quotes;
+ this.quoteFailures = quoteFailures;
+ }
+
+ public QuotesResponse quotes(@jakarta.annotation.Nonnull List quotes) {
this.quotes = quotes;
return this;
}
@@ -50,19 +66,52 @@ public QuotesResponse addQuotesItem(Quote quotesItem) {
*
* @return quotes
*/
- @jakarta.annotation.Nullable
+ @jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_QUOTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getQuotes() {
return quotes;
}
@JsonProperty(JSON_PROPERTY_QUOTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setQuotes(@jakarta.annotation.Nullable List quotes) {
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setQuotes(@jakarta.annotation.Nonnull List quotes) {
this.quotes = quotes;
}
+ public QuotesResponse quoteFailures(
+ @jakarta.annotation.Nonnull List quoteFailures) {
+ this.quoteFailures = quoteFailures;
+ return this;
+ }
+
+ public QuotesResponse addQuoteFailuresItem(QuoteFailure quoteFailuresItem) {
+ if (this.quoteFailures == null) {
+ this.quoteFailures = new ArrayList<>();
+ }
+ this.quoteFailures.add(quoteFailuresItem);
+ return this;
+ }
+
+ /**
+ * List of partial failures encountered while requesting quotes. Empty when all quote attempts
+ * succeed.
+ *
+ * @return quoteFailures
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_QUOTE_FAILURES)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public List getQuoteFailures() {
+ return quoteFailures;
+ }
+
+ @JsonProperty(JSON_PROPERTY_QUOTE_FAILURES)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setQuoteFailures(@jakarta.annotation.Nonnull List quoteFailures) {
+ this.quoteFailures = quoteFailures;
+ }
+
/** Return true if this QuotesResponse object is equal to o. */
@Override
public boolean equals(Object o) {
@@ -73,12 +122,13 @@ public boolean equals(Object o) {
return false;
}
QuotesResponse quotesResponse = (QuotesResponse) o;
- return Objects.equals(this.quotes, quotesResponse.quotes);
+ return Objects.equals(this.quotes, quotesResponse.quotes)
+ && Objects.equals(this.quoteFailures, quotesResponse.quoteFailures);
}
@Override
public int hashCode() {
- return Objects.hash(quotes);
+ return Objects.hash(quotes, quoteFailures);
}
@Override
@@ -86,6 +136,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QuotesResponse {\n");
sb.append(" quotes: ").append(toIndentedString(quotes)).append("\n");
+ sb.append(" quoteFailures: ").append(toIndentedString(quoteFailures)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -156,6 +207,29 @@ public String toUrlQueryString(String prefix) {
}
}
+ // add `quoteFailures` to the URL query string
+ if (getQuoteFailures() != null) {
+ for (int i = 0; i < getQuoteFailures().size(); i++) {
+ if (getQuoteFailures().get(i) != null) {
+ joiner.add(
+ getQuoteFailures()
+ .get(i)
+ .toUrlQueryString(
+ String.format(
+ "%squoteFailures%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/Side.java b/src/main/java/com/fireblocks/sdk/model/Side.java
index 911a2d00..fcf65157 100644
--- a/src/main/java/com/fireblocks/sdk/model/Side.java
+++ b/src/main/java/com/fireblocks/sdk/model/Side.java
@@ -16,7 +16,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
-/** Side of the order */
+/** BUY: receive base / pay quote; SELL: give base / receive quote. */
public enum Side {
BUY("BUY"),
diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java
index ed53abd8..9bdadf62 100644
--- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java
+++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java
@@ -136,7 +136,11 @@ public enum BlockchainDescriptorEnum {
APECHAIN(String.valueOf("APECHAIN")),
- APECHAIN_TEST(String.valueOf("APECHAIN_TEST"));
+ APECHAIN_TEST(String.valueOf("APECHAIN_TEST")),
+
+ CRONOS(String.valueOf("CRONOS")),
+
+ CRONOS_TEST(String.valueOf("CRONOS_TEST"));
private String value;
diff --git a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java
index 8d63f92b..aa00e988 100644
--- a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java
+++ b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java
@@ -116,7 +116,11 @@ public enum BlockchainDescriptorEnum {
APECHAIN(String.valueOf("APECHAIN")),
- APECHAIN_TEST(String.valueOf("APECHAIN_TEST"));
+ APECHAIN_TEST(String.valueOf("APECHAIN_TEST")),
+
+ CRONOS(String.valueOf("CRONOS")),
+
+ CRONOS_TEST(String.valueOf("CRONOS_TEST"));
private String value;
diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java
index dff01867..8001b701 100644
--- a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java
+++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java
@@ -789,8 +789,8 @@ public TransactionRequest travelRuleMessageId(
}
/**
- * The ID of the travel rule message from any travel rule provider. Used for travel rule linking
- * functionality to associate transactions with existing travel rule messages.
+ * The ID of the travel rule message from any travel rule provider. Used for travel rule
+ * supporting functionality to associate transactions with existing travel rule messages.
*
* @return travelRuleMessageId
*/
diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java
index 81eb20cf..deeff4f9 100644
--- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java
+++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java
@@ -100,8 +100,8 @@ public TransactionRequestDestination travelRuleMessageId(
}
/**
- * The ID of the travel rule message from any travel rule provider. Used for travel rule linking
- * functionality to associate transactions with existing travel rule messages.
+ * The ID of the travel rule message from any travel rule provider. Used for travel rule
+ * supporting functionality to associate transactions with existing travel rule messages.
*
* @return travelRuleMessageId
*/
diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java
index d4363b86..28dc3d0d 100644
--- a/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java
+++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponse.java
@@ -1112,8 +1112,8 @@ public TransactionResponse travelRuleMessageId(
}
/**
- * The ID of the travel rule message from any travel rule provider. Used for travel rule linking
- * functionality to associate transactions with existing travel rule messages.
+ * The ID of the travel rule message from any travel rule provider. Used for travel rule
+ * supporting functionality to associate transactions with existing travel rule messages.
*
* @return travelRuleMessageId
*/
diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java b/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java
index 92f32be1..cfef454e 100644
--- a/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java
+++ b/src/main/java/com/fireblocks/sdk/model/TransactionResponseDestination.java
@@ -106,8 +106,8 @@ public TransactionResponseDestination travelRuleMessageId(
}
/**
- * The ID of the travel rule message from any travel rule provider. Used for travel rule linking
- * functionality to associate transactions with existing travel rule messages.
+ * The ID of the travel rule message from any travel rule provider. Used for travel rule
+ * supporting functionality to associate transactions with existing travel rule messages.
*
* @return travelRuleMessageId
*/
diff --git a/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java
index d4ae1664..ac14955c 100644
--- a/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java
+++ b/src/test/java/com/fireblocks/sdk/api/ComplianceApiTest.java
@@ -15,6 +15,7 @@
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.model.AddressRegistryLegalEntity;
import com.fireblocks.sdk.model.AmlVerdictManualRequest;
import com.fireblocks.sdk.model.AmlVerdictManualResponse;
import com.fireblocks.sdk.model.ComplianceResultFullPayload;
@@ -59,6 +60,23 @@ public void getAmlScreeningPolicyTest() throws ApiException {
api.getAmlScreeningPolicy();
}
+ /**
+ * Look up legal entity by address and asset
+ *
+ * Returns the legal entity (company name, jurisdiction, companyId) for the given blockchain
+ * address and optional asset. Both the requester and the owner of the address must be opted in
+ * to the address registry.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void getLegalEntityByAddressTest() throws ApiException {
+ String address = null;
+ String asset = null;
+ CompletableFuture> response =
+ api.getLegalEntityByAddress(address, asset);
+ }
+
/**
* Travel Rule - View Post-Screening Policy
*
diff --git a/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java b/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java
index 370f5409..cd381d0e 100644
--- a/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java
+++ b/src/test/java/com/fireblocks/sdk/api/NetworkConnectionsApiTest.java
@@ -88,7 +88,7 @@ public void createNetworkConnectionTest() throws ApiException {
/**
* Creates a new Network ID
*
- * Creates a new Network ID.
+ *
Create a new Network ID.
*
* @throws ApiException if the Api call fails
*/
@@ -101,7 +101,7 @@ public void createNetworkIdTest() throws ApiException {
}
/**
- * Deletes a network connection by ID
+ * Delete a network connection by ID
*
*
Deletes an existing network connection specified by its connection ID.
*
@@ -115,7 +115,7 @@ public void deleteNetworkConnectionTest() throws ApiException {
}
/**
- * Deletes specific network ID.
+ * Delete specific network ID.
*
*
Deletes a network by its ID.
*
@@ -165,7 +165,7 @@ public void getNetworkConnectionsTest() throws ApiException {
}
/**
- * Returns specific network ID.
+ * Return specific network ID.
*
*
Returns specific network ID.
*
@@ -190,7 +190,7 @@ public void getNetworkIdsTest() throws ApiException {
}
/**
- * Returns all enabled routing policy asset groups
+ * Return all enabled routing policy asset groups
*
*
Returns all enabled routing policy asset groups
*
diff --git a/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java b/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java
index 1dca7008..c1be4e05 100644
--- a/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java
+++ b/src/test/java/com/fireblocks/sdk/api/TrLinkApiTest.java
@@ -110,8 +110,8 @@ public void connectTRLinkIntegrationTest() throws ApiException {
/**
* Create customer
*
- *
Creates a new customer (legal entity/VASP) for TRLink Travel Rule compliance operations.
- * The customer represents your organization in the Travel Rule network and contains
+ *
Creates a new customer (legal entity/VASP) for TRSupport Travel Rule compliance
+ * operations. The customer represents your organization in the Travel Rule network and contains
* IVMS101-compliant identity information.
*
* @throws ApiException if the Api call fails
@@ -127,9 +127,9 @@ public void createTRLinkCustomerTest() throws ApiException {
/**
* Create customer integration
*
- *
Creates a new TRLink integration for a customer. This establishes a connection placeholder
- * between a customer and a Travel Rule partner. Use the connect endpoint to provide credentials
- * after creation.
+ *
Creates a new TRSupport integration for a customer. This establishes a connection
+ * placeholder between a customer and a Travel Rule partner. Use the connect endpoint to provide
+ * credentials after creation.
*
* @throws ApiException if the Api call fails
*/
@@ -220,7 +220,7 @@ public void getTRLinkCustomerIntegrationByIdTest() throws ApiException {
/**
* Get customer integrations
*
- *
Retrieves all TRLink integrations for a specific customer. Returns a list of partner
+ *
Retrieves all TRSupport integrations for a specific customer. Returns a list of partner
* integrations configured for Travel Rule compliance.
*
* @throws ApiException if the Api call fails
@@ -263,10 +263,11 @@ public void getTRLinkIntegrationPublicKeyTest() throws ApiException {
}
/**
- * List available TRLink partners
+ * List available TRSupport partners
*
- *
Retrieves a list of all available Travel Rule Link integration partners. Partners provide
- * Travel Rule compliance services such as VASP discovery, TRM exchange, and PII encryption.
+ *
Retrieves a list of all available Travel Rule Support integration partners. Partners
+ * provide Travel Rule compliance services such as VASP discovery, TRM exchange, and PII
+ * encryption.
*
* @throws ApiException if the Api call fails
*/
@@ -279,10 +280,11 @@ public void getTRLinkPartnersTest() throws ApiException {
/**
* Get TRLink policy
*
- *
Retrieves the complete TRLink policy for the authenticated tenant, including pre-screening
- * rules, post-screening rules, and missing TRM rules. Pre-screening rules determine whether
- * transactions should be screened. Post-screening rules determine actions based on screening
- * results. Missing TRM rules handle cases when screening data is unavailable.
+ *
Retrieves the complete TRSupport policy for the authenticated tenant, including
+ * pre-screening rules, post-screening rules, and missing TRM rules. Pre-screening rules
+ * determine whether transactions should be screened. Post-screening rules determine actions
+ * based on screening results. Missing TRM rules handle cases when screening data is
+ * unavailable.
*
* @throws ApiException if the Api call fails
*/
diff --git a/src/test/java/com/fireblocks/sdk/model/AddressRegistryErrorTest.java b/src/test/java/com/fireblocks/sdk/model/AddressRegistryErrorTest.java
new file mode 100644
index 00000000..90aa71d0
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/AddressRegistryErrorTest.java
@@ -0,0 +1,39 @@
+/*
+ * 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 AddressRegistryError */
+class AddressRegistryErrorTest {
+ private final AddressRegistryError model = new AddressRegistryError();
+
+ /** Model tests for AddressRegistryError */
+ @Test
+ void testAddressRegistryError() {
+ // TODO: test AddressRegistryError
+ }
+
+ /** Test the property 'code' */
+ @Test
+ void codeTest() {
+ // TODO: test code
+ }
+
+ /** Test the property 'message' */
+ @Test
+ void messageTest() {
+ // TODO: test message
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java b/src/test/java/com/fireblocks/sdk/model/AddressRegistryLegalEntityTest.java
similarity index 53%
rename from src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java
rename to src/test/java/com/fireblocks/sdk/model/AddressRegistryLegalEntityTest.java
index 45f558fe..fdf8d83b 100644
--- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/AddressRegistryLegalEntityTest.java
@@ -15,37 +15,31 @@
import org.junit.jupiter.api.Test;
-/** Model tests for FeeBreakdownOneOf */
-class FeeBreakdownOneOfTest {
- private final FeeBreakdownOneOf model = new FeeBreakdownOneOf();
+/** Model tests for AddressRegistryLegalEntity */
+class AddressRegistryLegalEntityTest {
+ private final AddressRegistryLegalEntity model = new AddressRegistryLegalEntity();
- /** Model tests for FeeBreakdownOneOf */
+ /** Model tests for AddressRegistryLegalEntity */
@Test
- void testFeeBreakdownOneOf() {
- // TODO: test FeeBreakdownOneOf
+ void testAddressRegistryLegalEntity() {
+ // TODO: test AddressRegistryLegalEntity
}
- /** Test the property 'baseFee' */
+ /** Test the property 'companyName' */
@Test
- void baseFeeTest() {
- // TODO: test baseFee
+ void companyNameTest() {
+ // TODO: test companyName
}
- /** Test the property 'priorityFee' */
+ /** Test the property 'countryCode' */
@Test
- void priorityFeeTest() {
- // TODO: test priorityFee
+ void countryCodeTest() {
+ // TODO: test countryCode
}
- /** Test the property 'rent' */
+ /** Test the property 'companyId' */
@Test
- void rentTest() {
- // TODO: test rent
- }
-
- /** Test the property 'totalFee' */
- @Test
- void totalFeeTest() {
- // TODO: test totalFee
+ void companyIdTest() {
+ // TODO: test companyId
}
}
diff --git a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java
index 644895fc..e9335987 100644
--- a/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/CreateTokenRequestDtoTest.java
@@ -72,4 +72,16 @@ void feeTest() {
void feeLevelTest() {
// TODO: test feeLevel
}
+
+ /** Test the property 'txNote' */
+ @Test
+ void txNoteTest() {
+ // TODO: test txNote
+ }
+
+ /** Test the property 'externalId' */
+ @Test
+ void externalIdTest() {
+ // TODO: test externalId
+ }
}
diff --git a/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java
index 9bfe44fd..bf24b3c0 100644
--- a/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/IdentificationTest.java
@@ -73,6 +73,30 @@ void phoneTest() {
// TODO: test phone
}
+ /** Test the property 'idNumber' */
+ @Test
+ void idNumberTest() {
+ // TODO: test idNumber
+ }
+
+ /** Test the property 'idType' */
+ @Test
+ void idTypeTest() {
+ // TODO: test idType
+ }
+
+ /** Test the property 'additionalIdNumber' */
+ @Test
+ void additionalIdNumberTest() {
+ // TODO: test additionalIdNumber
+ }
+
+ /** Test the property 'additionalIdType' */
+ @Test
+ void additionalIdTypeTest() {
+ // TODO: test additionalIdType
+ }
+
/** Test the property 'businessName' */
@Test
void businessNameTest() {
diff --git a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java
index c1eaeba8..cb960e3f 100644
--- a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTest.java
@@ -72,4 +72,28 @@ void emailTest() {
void phoneTest() {
// TODO: test phone
}
+
+ /** Test the property 'idNumber' */
+ @Test
+ void idNumberTest() {
+ // TODO: test idNumber
+ }
+
+ /** Test the property 'idType' */
+ @Test
+ void idTypeTest() {
+ // TODO: test idType
+ }
+
+ /** Test the property 'additionalIdNumber' */
+ @Test
+ void additionalIdNumberTest() {
+ // TODO: test additionalIdNumber
+ }
+
+ /** Test the property 'additionalIdType' */
+ @Test
+ void additionalIdTypeTest() {
+ // TODO: test additionalIdType
+ }
}
diff --git a/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java
new file mode 100644
index 00000000..80bffb52
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/PersonalIdentificationTypeTest.java
@@ -0,0 +1,25 @@
+/*
+ * 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 PersonalIdentificationType */
+class PersonalIdentificationTypeTest {
+ /** Model tests for PersonalIdentificationType */
+ @Test
+ void testPersonalIdentificationType() {
+ // TODO: test PersonalIdentificationType
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java b/src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java
similarity index 57%
rename from src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java
rename to src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java
index 7c7582d2..7b280bb6 100644
--- a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java
+++ b/src/test/java/com/fireblocks/sdk/model/QuoteFailureTest.java
@@ -15,31 +15,31 @@
import org.junit.jupiter.api.Test;
-/** Model tests for FeeBreakdownOneOf1 */
-class FeeBreakdownOneOf1Test {
- private final FeeBreakdownOneOf1 model = new FeeBreakdownOneOf1();
+/** Model tests for QuoteFailure */
+class QuoteFailureTest {
+ private final QuoteFailure model = new QuoteFailure();
- /** Model tests for FeeBreakdownOneOf1 */
+ /** Model tests for QuoteFailure */
@Test
- void testFeeBreakdownOneOf1() {
- // TODO: test FeeBreakdownOneOf1
+ void testQuoteFailure() {
+ // TODO: test QuoteFailure
}
- /** Test the property 'baseFee' */
+ /** Test the property 'providerId' */
@Test
- void baseFeeTest() {
- // TODO: test baseFee
+ void providerIdTest() {
+ // TODO: test providerId
}
- /** Test the property 'priorityFee' */
+ /** Test the property 'accountId' */
@Test
- void priorityFeeTest() {
- // TODO: test priorityFee
+ void accountIdTest() {
+ // TODO: test accountId
}
- /** Test the property 'totalFee' */
+ /** Test the property 'error' */
@Test
- void totalFeeTest() {
- // TODO: test totalFee
+ void errorTest() {
+ // TODO: test error
}
}
diff --git a/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java b/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java
index dde09c90..0a319c8c 100644
--- a/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/QuotesResponseTest.java
@@ -30,4 +30,10 @@ void testQuotesResponse() {
void quotesTest() {
// TODO: test quotes
}
+
+ /** Test the property 'quoteFailures' */
+ @Test
+ void quoteFailuresTest() {
+ // TODO: test quoteFailures
+ }
}