> getSchemas() {
+ return FeeBreakdown.schemas;
+ }
+
+ /**
+ * Set the instance that matches the oneOf child schema, check the instance parameter is valid
+ * against the oneOf child schemas: FeeBreakdownOneOf, FeeBreakdownOneOf1
+ *
+ * It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be
+ * a composed schema (allOf, anyOf, oneOf).
+ */
+ @Override
+ public void setActualInstance(Object instance) {
+ if (JSON.isInstanceOf(FeeBreakdownOneOf.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+
+ if (JSON.isInstanceOf(FeeBreakdownOneOf1.class, instance, new HashSet>())) {
+ super.setActualInstance(instance);
+ return;
+ }
+
+ throw new RuntimeException(
+ "Invalid instance type. Must be FeeBreakdownOneOf, FeeBreakdownOneOf1");
+ }
+
+ /**
+ * Get the actual instance, which can be the following: FeeBreakdownOneOf, FeeBreakdownOneOf1
+ *
+ * @return The actual instance (FeeBreakdownOneOf, FeeBreakdownOneOf1)
+ */
+ @Override
+ public Object getActualInstance() {
+ return super.getActualInstance();
+ }
+
+ /**
+ * 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();
+ }
+
+ /**
+ * 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`
+ */
+ public FeeBreakdownOneOf1 getFeeBreakdownOneOf1() throws ClassCastException {
+ return (FeeBreakdownOneOf1) super.getActualInstance();
+ }
+
+ /**
+ * Convert the instance into URL query string.
+ *
+ * @return URL query string
+ */
+ public String toUrlQueryString() {
+ return toUrlQueryString(null);
+ }
+
+ /**
+ * Convert the instance into URL query string.
+ *
+ * @param prefix prefix of the query string
+ * @return URL query string
+ */
+ public String toUrlQueryString(String prefix) {
+ String suffix = "";
+ String containerSuffix = "";
+ String containerPrefix = "";
+ if (prefix == null) {
+ // style=form, explode=true, e.g. /pet?name=cat&type=manx
+ prefix = "";
+ } else {
+ // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
+ prefix = prefix + "[";
+ suffix = "]";
+ containerSuffix = "]";
+ containerPrefix = "[";
+ }
+
+ StringJoiner joiner = new StringJoiner("&");
+
+ if (getActualInstance() instanceof FeeBreakdownOneOf) {
+ if (getActualInstance() != null) {
+ joiner.add(
+ ((FeeBreakdownOneOf) getActualInstance())
+ .toUrlQueryString(prefix + "one_of_0" + suffix));
+ }
+ return joiner.toString();
+ }
+ if (getActualInstance() instanceof FeeBreakdownOneOf1) {
+ if (getActualInstance() != null) {
+ joiner.add(
+ ((FeeBreakdownOneOf1) getActualInstance())
+ .toUrlQueryString(prefix + "one_of_1" + suffix));
+ }
+ return joiner.toString();
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java
new file mode 100644
index 00000000..6569852f
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf.java
@@ -0,0 +1,263 @@
+/*
+ * 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;
+
+/** 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")
+public class FeeBreakdownOneOf {
+ public static final String JSON_PROPERTY_BASE_FEE = "baseFee";
+ private String baseFee;
+
+ public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee";
+ private String priorityFee;
+
+ public static final String JSON_PROPERTY_RENT = "rent";
+ private String rent;
+
+ public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee";
+ private String totalFee;
+
+ public FeeBreakdownOneOf() {}
+
+ public FeeBreakdownOneOf baseFee(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(String baseFee) {
+ this.baseFee = baseFee;
+ }
+
+ public FeeBreakdownOneOf priorityFee(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(String priorityFee) {
+ this.priorityFee = priorityFee;
+ }
+
+ public FeeBreakdownOneOf rent(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(String rent) {
+ this.rent = rent;
+ }
+
+ public FeeBreakdownOneOf totalFee(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(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,
+ URLEncoder.encode(String.valueOf(getBaseFee()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `priorityFee` to the URL query string
+ if (getPriorityFee() != null) {
+ joiner.add(
+ String.format(
+ "%spriorityFee%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getPriorityFee()),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `rent` to the URL query string
+ if (getRent() != null) {
+ joiner.add(
+ String.format(
+ "%srent%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getRent()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `totalFee` to the URL query string
+ if (getTotalFee() != null) {
+ joiner.add(
+ String.format(
+ "%stotalFee%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getTotalFee()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ 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
new file mode 100644
index 00000000..7950d697
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1.java
@@ -0,0 +1,223 @@
+/*
+ * 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;
+
+/** 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")
+public class FeeBreakdownOneOf1 {
+ public static final String JSON_PROPERTY_BASE_FEE = "baseFee";
+ private String baseFee;
+
+ public static final String JSON_PROPERTY_PRIORITY_FEE = "priorityFee";
+ private String priorityFee;
+
+ public static final String JSON_PROPERTY_TOTAL_FEE = "totalFee";
+ private String totalFee;
+
+ public FeeBreakdownOneOf1() {}
+
+ public FeeBreakdownOneOf1 baseFee(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(String baseFee) {
+ this.baseFee = baseFee;
+ }
+
+ public FeeBreakdownOneOf1 priorityFee(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(String priorityFee) {
+ this.priorityFee = priorityFee;
+ }
+
+ public FeeBreakdownOneOf1 totalFee(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(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,
+ URLEncoder.encode(String.valueOf(getBaseFee()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `priorityFee` to the URL query string
+ if (getPriorityFee() != null) {
+ joiner.add(
+ String.format(
+ "%spriorityFee%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getPriorityFee()),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `totalFee` to the URL query string
+ if (getTotalFee() != null) {
+ joiner.add(
+ String.format(
+ "%stotalFee%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getTotalFee()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/Notification.java b/src/main/java/com/fireblocks/sdk/model/Notification.java
index b7a9deff..9e3bff66 100644
--- a/src/main/java/com/fireblocks/sdk/model/Notification.java
+++ b/src/main/java/com/fireblocks/sdk/model/Notification.java
@@ -18,8 +18,6 @@
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
-import java.util.ArrayList;
-import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
import java.util.UUID;
@@ -31,8 +29,7 @@
Notification.JSON_PROPERTY_UPDATED_AT,
Notification.JSON_PROPERTY_STATUS,
Notification.JSON_PROPERTY_EVENT_TYPE,
- Notification.JSON_PROPERTY_RESOURCE_ID,
- Notification.JSON_PROPERTY_ATTEMPTS
+ Notification.JSON_PROPERTY_RESOURCE_ID
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Notification {
@@ -54,9 +51,6 @@ public class Notification {
public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId";
private UUID resourceId;
- public static final String JSON_PROPERTY_ATTEMPTS = "attempts";
- private List attempts = new ArrayList<>();
-
public Notification() {}
public Notification id(UUID id) {
@@ -197,37 +191,6 @@ public void setResourceId(UUID resourceId) {
this.resourceId = resourceId;
}
- public Notification attempts(List attempts) {
- this.attempts = attempts;
- return this;
- }
-
- public Notification addAttemptsItem(NotificationAttempt attemptsItem) {
- if (this.attempts == null) {
- this.attempts = new ArrayList<>();
- }
- this.attempts.add(attemptsItem);
- return this;
- }
-
- /**
- * The attempts related to Notification
- *
- * @return attempts
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ATTEMPTS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getAttempts() {
- return attempts;
- }
-
- @JsonProperty(JSON_PROPERTY_ATTEMPTS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAttempts(List attempts) {
- this.attempts = attempts;
- }
-
/** Return true if this Notification object is equal to o. */
@Override
public boolean equals(Object o) {
@@ -243,13 +206,12 @@ public boolean equals(Object o) {
&& Objects.equals(this.updatedAt, notification.updatedAt)
&& Objects.equals(this.status, notification.status)
&& Objects.equals(this.eventType, notification.eventType)
- && Objects.equals(this.resourceId, notification.resourceId)
- && Objects.equals(this.attempts, notification.attempts);
+ && Objects.equals(this.resourceId, notification.resourceId);
}
@Override
public int hashCode() {
- return Objects.hash(id, createdAt, updatedAt, status, eventType, resourceId, attempts);
+ return Objects.hash(id, createdAt, updatedAt, status, eventType, resourceId);
}
@Override
@@ -262,7 +224,6 @@ public String toString() {
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n");
- sb.append(" attempts: ").append(toIndentedString(attempts)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -380,29 +341,6 @@ public String toUrlQueryString(String prefix) {
.replaceAll("\\+", "%20")));
}
- // add `attempts` to the URL query string
- if (getAttempts() != null) {
- for (int i = 0; i < getAttempts().size(); i++) {
- if (getAttempts().get(i) != null) {
- joiner.add(
- getAttempts()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%sattempts%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/NotificationAttemptsPaginatedResponse.java b/src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java
new file mode 100644
index 00000000..6adae358
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponse.java
@@ -0,0 +1,204 @@
+/*
+ * 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.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.StringJoiner;
+
+/** NotificationAttemptsPaginatedResponse */
+@JsonPropertyOrder({
+ NotificationAttemptsPaginatedResponse.JSON_PROPERTY_DATA,
+ NotificationAttemptsPaginatedResponse.JSON_PROPERTY_NEXT
+})
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class NotificationAttemptsPaginatedResponse {
+ public static final String JSON_PROPERTY_DATA = "data";
+ private List data = new ArrayList<>();
+
+ public static final String JSON_PROPERTY_NEXT = "next";
+ private String next;
+
+ public NotificationAttemptsPaginatedResponse() {}
+
+ public NotificationAttemptsPaginatedResponse data(List data) {
+ this.data = data;
+ return this;
+ }
+
+ public NotificationAttemptsPaginatedResponse addDataItem(NotificationAttempt dataItem) {
+ if (this.data == null) {
+ this.data = new ArrayList<>();
+ }
+ this.data.add(dataItem);
+ return this;
+ }
+
+ /**
+ * The data of the current page
+ *
+ * @return data
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_DATA)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public List getData() {
+ return data;
+ }
+
+ @JsonProperty(JSON_PROPERTY_DATA)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setData(List data) {
+ this.data = data;
+ }
+
+ public NotificationAttemptsPaginatedResponse next(String next) {
+ this.next = next;
+ return this;
+ }
+
+ /**
+ * The ID of the next page
+ *
+ * @return next
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_NEXT)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getNext() {
+ return next;
+ }
+
+ @JsonProperty(JSON_PROPERTY_NEXT)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setNext(String next) {
+ this.next = next;
+ }
+
+ /** Return true if this NotificationAttemptsPaginatedResponse object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ NotificationAttemptsPaginatedResponse notificationAttemptsPaginatedResponse =
+ (NotificationAttemptsPaginatedResponse) o;
+ return Objects.equals(this.data, notificationAttemptsPaginatedResponse.data)
+ && Objects.equals(this.next, notificationAttemptsPaginatedResponse.next);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(data, next);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class NotificationAttemptsPaginatedResponse {\n");
+ sb.append(" data: ").append(toIndentedString(data)).append("\n");
+ sb.append(" next: ").append(toIndentedString(next)).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 `data` to the URL query string
+ if (getData() != null) {
+ for (int i = 0; i < getData().size(); i++) {
+ if (getData().get(i) != null) {
+ joiner.add(
+ getData()
+ .get(i)
+ .toUrlQueryString(
+ String.format(
+ "%sdata%s%s",
+ prefix,
+ suffix,
+ "".equals(suffix)
+ ? ""
+ : String.format(
+ "%s%d%s",
+ containerPrefix,
+ i,
+ containerSuffix))));
+ }
+ }
+ }
+
+ // add `next` to the URL query string
+ if (getNext() != null) {
+ joiner.add(
+ String.format(
+ "%snext%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getNext()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java b/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java
index 3d0644fb..e1b38b46 100644
--- a/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java
+++ b/src/main/java/com/fireblocks/sdk/model/NotificationWithData.java
@@ -18,8 +18,6 @@
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
-import java.util.ArrayList;
-import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
import java.util.UUID;
@@ -32,7 +30,6 @@
NotificationWithData.JSON_PROPERTY_STATUS,
NotificationWithData.JSON_PROPERTY_EVENT_TYPE,
NotificationWithData.JSON_PROPERTY_RESOURCE_ID,
- NotificationWithData.JSON_PROPERTY_ATTEMPTS,
NotificationWithData.JSON_PROPERTY_DATA
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@@ -55,9 +52,6 @@ public class NotificationWithData {
public static final String JSON_PROPERTY_RESOURCE_ID = "resourceId";
private UUID resourceId;
- public static final String JSON_PROPERTY_ATTEMPTS = "attempts";
- private List attempts = new ArrayList<>();
-
public static final String JSON_PROPERTY_DATA = "data";
private Object data;
@@ -201,37 +195,6 @@ public void setResourceId(UUID resourceId) {
this.resourceId = resourceId;
}
- public NotificationWithData attempts(List attempts) {
- this.attempts = attempts;
- return this;
- }
-
- public NotificationWithData addAttemptsItem(NotificationAttempt attemptsItem) {
- if (this.attempts == null) {
- this.attempts = new ArrayList<>();
- }
- this.attempts.add(attemptsItem);
- return this;
- }
-
- /**
- * The attempts related to Notification
- *
- * @return attempts
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ATTEMPTS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getAttempts() {
- return attempts;
- }
-
- @JsonProperty(JSON_PROPERTY_ATTEMPTS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setAttempts(List attempts) {
- this.attempts = attempts;
- }
-
public NotificationWithData data(Object data) {
this.data = data;
return this;
@@ -271,14 +234,12 @@ public boolean equals(Object o) {
&& Objects.equals(this.status, notificationWithData.status)
&& Objects.equals(this.eventType, notificationWithData.eventType)
&& Objects.equals(this.resourceId, notificationWithData.resourceId)
- && Objects.equals(this.attempts, notificationWithData.attempts)
&& Objects.equals(this.data, notificationWithData.data);
}
@Override
public int hashCode() {
- return Objects.hash(
- id, createdAt, updatedAt, status, eventType, resourceId, attempts, data);
+ return Objects.hash(id, createdAt, updatedAt, status, eventType, resourceId, data);
}
@Override
@@ -291,7 +252,6 @@ public String toString() {
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n");
- sb.append(" attempts: ").append(toIndentedString(attempts)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append("}");
return sb.toString();
@@ -410,29 +370,6 @@ public String toUrlQueryString(String prefix) {
.replaceAll("\\+", "%20")));
}
- // add `attempts` to the URL query string
- if (getAttempts() != null) {
- for (int i = 0; i < getAttempts().size(); i++) {
- if (getAttempts().get(i) != null) {
- joiner.add(
- getAttempts()
- .get(i)
- .toUrlQueryString(
- String.format(
- "%sattempts%s%s",
- prefix,
- suffix,
- "".equals(suffix)
- ? ""
- : String.format(
- "%s%d%s",
- containerPrefix,
- i,
- containerSuffix))));
- }
- }
- }
-
// add `data` to the URL query string
if (getData() != null) {
joiner.add(
diff --git a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java
new file mode 100644
index 00000000..293805b2
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponse.java
@@ -0,0 +1,304 @@
+/*
+ * 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.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.math.BigDecimal;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.Objects;
+import java.util.StringJoiner;
+
+/** ResendFailedNotificationsJobStatusResponse */
+@JsonPropertyOrder({
+ ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_JOB_ID,
+ ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_STATUS,
+ ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_PROCESSED,
+ ResendFailedNotificationsJobStatusResponse.JSON_PROPERTY_TOTAL
+})
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class ResendFailedNotificationsJobStatusResponse {
+ public static final String JSON_PROPERTY_JOB_ID = "jobId";
+ private String jobId;
+
+ /** Bulk resend job status */
+ public enum StatusEnum {
+ QUEUED("QUEUED"),
+
+ IN_PROGRESS("IN_PROGRESS"),
+
+ COMPLETED("COMPLETED"),
+
+ FAILED("FAILED");
+
+ private String value;
+
+ StatusEnum(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ @JsonCreator
+ public static StatusEnum fromValue(String value) {
+ for (StatusEnum b : StatusEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+ }
+
+ public static final String JSON_PROPERTY_STATUS = "status";
+ private StatusEnum status;
+
+ public static final String JSON_PROPERTY_PROCESSED = "processed";
+ private BigDecimal processed;
+
+ public static final String JSON_PROPERTY_TOTAL = "total";
+ private BigDecimal total;
+
+ public ResendFailedNotificationsJobStatusResponse() {}
+
+ public ResendFailedNotificationsJobStatusResponse jobId(String jobId) {
+ this.jobId = jobId;
+ return this;
+ }
+
+ /**
+ * Bulk resend job ID
+ *
+ * @return jobId
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_JOB_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public String getJobId() {
+ return jobId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_JOB_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setJobId(String jobId) {
+ this.jobId = jobId;
+ }
+
+ public ResendFailedNotificationsJobStatusResponse status(StatusEnum status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Bulk resend job status
+ *
+ * @return status
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_STATUS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public StatusEnum getStatus() {
+ return status;
+ }
+
+ @JsonProperty(JSON_PROPERTY_STATUS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setStatus(StatusEnum status) {
+ this.status = status;
+ }
+
+ public ResendFailedNotificationsJobStatusResponse processed(BigDecimal processed) {
+ this.processed = processed;
+ return this;
+ }
+
+ /**
+ * Number of notifications processed
+ *
+ * @return processed
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_PROCESSED)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public BigDecimal getProcessed() {
+ return processed;
+ }
+
+ @JsonProperty(JSON_PROPERTY_PROCESSED)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setProcessed(BigDecimal processed) {
+ this.processed = processed;
+ }
+
+ public ResendFailedNotificationsJobStatusResponse total(BigDecimal total) {
+ this.total = total;
+ return this;
+ }
+
+ /**
+ * Total number of notifications to process
+ *
+ * @return total
+ */
+ @jakarta.annotation.Nonnull
+ @JsonProperty(JSON_PROPERTY_TOTAL)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public BigDecimal getTotal() {
+ return total;
+ }
+
+ @JsonProperty(JSON_PROPERTY_TOTAL)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public void setTotal(BigDecimal total) {
+ this.total = total;
+ }
+
+ /** Return true if this ResendFailedNotificationsJobStatusResponse object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResendFailedNotificationsJobStatusResponse resendFailedNotificationsJobStatusResponse =
+ (ResendFailedNotificationsJobStatusResponse) o;
+ return Objects.equals(this.jobId, resendFailedNotificationsJobStatusResponse.jobId)
+ && Objects.equals(this.status, resendFailedNotificationsJobStatusResponse.status)
+ && Objects.equals(
+ this.processed, resendFailedNotificationsJobStatusResponse.processed)
+ && Objects.equals(this.total, resendFailedNotificationsJobStatusResponse.total);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(jobId, status, processed, total);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResendFailedNotificationsJobStatusResponse {\n");
+ sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" processed: ").append(toIndentedString(processed)).append("\n");
+ sb.append(" total: ").append(toIndentedString(total)).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 `jobId` to the URL query string
+ if (getJobId() != null) {
+ joiner.add(
+ String.format(
+ "%sjobId%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getJobId()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `status` to the URL query string
+ if (getStatus() != null) {
+ joiner.add(
+ String.format(
+ "%sstatus%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `processed` to the URL query string
+ if (getProcessed() != null) {
+ joiner.add(
+ String.format(
+ "%sprocessed%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getProcessed()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `total` to the URL query string
+ if (getTotal() != null) {
+ joiner.add(
+ String.format(
+ "%stotal%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java
new file mode 100644
index 00000000..ea62b0a8
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequest.java
@@ -0,0 +1,208 @@
+/*
+ * 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.math.BigDecimal;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.StringJoiner;
+
+/** ResendFailedNotificationsRequest */
+@JsonPropertyOrder({
+ ResendFailedNotificationsRequest.JSON_PROPERTY_START_TIME,
+ ResendFailedNotificationsRequest.JSON_PROPERTY_EVENTS
+})
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class ResendFailedNotificationsRequest {
+ public static final String JSON_PROPERTY_START_TIME = "startTime";
+ private BigDecimal startTime;
+
+ public static final String JSON_PROPERTY_EVENTS = "events";
+ private List events;
+
+ public ResendFailedNotificationsRequest() {}
+
+ public ResendFailedNotificationsRequest startTime(BigDecimal startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * (optional) Start time for the resend window in milliseconds since epoch up to 24 hours before
+ * the current time - Default if missing means 24 hours before the current time in milliseconds
+ * since epoch - Maximum value is current time in milliseconds since epoch - Minimum value is 24
+ * hours before the current time in milliseconds since epoch
+ *
+ * @return startTime
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_START_TIME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public BigDecimal getStartTime() {
+ return startTime;
+ }
+
+ @JsonProperty(JSON_PROPERTY_START_TIME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setStartTime(BigDecimal startTime) {
+ this.startTime = startTime;
+ }
+
+ public ResendFailedNotificationsRequest events(List events) {
+ this.events = events;
+ return this;
+ }
+
+ public ResendFailedNotificationsRequest addEventsItem(WebhookEvent eventsItem) {
+ if (this.events == null) {
+ this.events = new ArrayList<>();
+ }
+ this.events.add(eventsItem);
+ return this;
+ }
+
+ /**
+ * (optional) Event types to resend, default is all event types - Default if missing means all
+ * events will be included - Empty array means all events will be included
+ *
+ * @return events
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_EVENTS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getEvents() {
+ return events;
+ }
+
+ @JsonProperty(JSON_PROPERTY_EVENTS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setEvents(List events) {
+ this.events = events;
+ }
+
+ /** Return true if this ResendFailedNotificationsRequest object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResendFailedNotificationsRequest resendFailedNotificationsRequest =
+ (ResendFailedNotificationsRequest) o;
+ return Objects.equals(this.startTime, resendFailedNotificationsRequest.startTime)
+ && Objects.equals(this.events, resendFailedNotificationsRequest.events);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(startTime, events);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResendFailedNotificationsRequest {\n");
+ sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
+ sb.append(" events: ").append(toIndentedString(events)).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 `startTime` to the URL query string
+ if (getStartTime() != null) {
+ joiner.add(
+ String.format(
+ "%sstartTime%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getStartTime()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `events` to the URL query string
+ if (getEvents() != null) {
+ for (int i = 0; i < getEvents().size(); i++) {
+ if (getEvents().get(i) != null) {
+ joiner.add(
+ String.format(
+ "%sevents%s%s=%s",
+ prefix,
+ suffix,
+ "".equals(suffix)
+ ? ""
+ : String.format(
+ "%s%d%s", containerPrefix, i, containerSuffix),
+ URLEncoder.encode(
+ String.valueOf(getEvents().get(i)),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+ }
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java
new file mode 100644
index 00000000..74aac8fc
--- /dev/null
+++ b/src/main/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponse.java
@@ -0,0 +1,141 @@
+/*
+ * 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.math.BigDecimal;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.util.Objects;
+import java.util.StringJoiner;
+
+/** ResendFailedNotificationsResponse */
+@JsonPropertyOrder({ResendFailedNotificationsResponse.JSON_PROPERTY_TOTAL})
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class ResendFailedNotificationsResponse {
+ public static final String JSON_PROPERTY_TOTAL = "total";
+ private BigDecimal total;
+
+ public ResendFailedNotificationsResponse() {}
+
+ public ResendFailedNotificationsResponse total(BigDecimal total) {
+ this.total = total;
+ return this;
+ }
+
+ /**
+ * The total number of failed notifications that are scheduled to be resent.
+ *
+ * @return total
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TOTAL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public BigDecimal getTotal() {
+ return total;
+ }
+
+ @JsonProperty(JSON_PROPERTY_TOTAL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setTotal(BigDecimal total) {
+ this.total = total;
+ }
+
+ /** Return true if this ResendFailedNotificationsResponse object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResendFailedNotificationsResponse resendFailedNotificationsResponse =
+ (ResendFailedNotificationsResponse) o;
+ return Objects.equals(this.total, resendFailedNotificationsResponse.total);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(total);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResendFailedNotificationsResponse {\n");
+ sb.append(" total: ").append(toIndentedString(total)).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 `total` to the URL query string
+ if (getTotal() != null) {
+ joiner.add(
+ String.format(
+ "%stotal%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java
index 9a2e913d..d3db6831 100644
--- a/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java
+++ b/src/main/java/com/fireblocks/sdk/model/SourceTransferPeerPathResponse.java
@@ -109,14 +109,13 @@ public SourceTransferPeerPathResponse id(String id) {
/**
* The ID of the peer. You can retrieve the ID of each venue object using the endpoints for
- * [listing vault
- * accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing
- * exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts),
- * [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts),
- * [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets),
- * [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets),
+ * [listing vault accounts](https://developers.fireblocks.com/reference/getpagedvaultaccounts),
+ * [listing exchange account](https://developers.fireblocks.com/reference/getexchangeaccounts),
+ * [listing fiat accounts](https://developers.fireblocks.com/reference/getfiataccounts),
+ * [listing internal wallets](https://developers.fireblocks.com/reference/getinternalwallets),
+ * [listing external wallets](https://developers.fireblocks.com/reference/getexternalwallets),
* [listing network
- * connections](https://developers.fireblocks.com/reference/get_network-connections). For the
+ * connections](https://developers.fireblocks.com/reference/getnetworkconnections). For the
* other types, this parameter is not needed.
*
* @return id
diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java
index f792588e..a09c0fc2 100644
--- a/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java
+++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequest.java
@@ -50,6 +50,7 @@
TransactionRequest.JSON_PROPERTY_EXTRA_PARAMETERS,
TransactionRequest.JSON_PROPERTY_CUSTOMER_REF_ID,
TransactionRequest.JSON_PROPERTY_TRAVEL_RULE_MESSAGE,
+ TransactionRequest.JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID,
TransactionRequest.JSON_PROPERTY_AUTO_STAKING,
TransactionRequest.JSON_PROPERTY_NETWORK_STAKING,
TransactionRequest.JSON_PROPERTY_CPU_STAKING,
@@ -164,6 +165,9 @@ public static FeeLevelEnum fromValue(String value) {
public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE = "travelRuleMessage";
private TravelRuleCreateTransactionRequest travelRuleMessage;
+ public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID = "travelRuleMessageId";
+ private String travelRuleMessageId;
+
public static final String JSON_PROPERTY_AUTO_STAKING = "autoStaking";
private Boolean autoStaking;
@@ -761,6 +765,30 @@ public void setTravelRuleMessage(TravelRuleCreateTransactionRequest travelRuleMe
this.travelRuleMessage = travelRuleMessage;
}
+ public TransactionRequest travelRuleMessageId(String travelRuleMessageId) {
+ this.travelRuleMessageId = travelRuleMessageId;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ * @return travelRuleMessageId
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTravelRuleMessageId() {
+ return travelRuleMessageId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setTravelRuleMessageId(String travelRuleMessageId) {
+ this.travelRuleMessageId = travelRuleMessageId;
+ }
+
public TransactionRequest autoStaking(Boolean autoStaking) {
this.autoStaking = autoStaking;
return this;
@@ -892,6 +920,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.extraParameters, transactionRequest.extraParameters)
&& Objects.equals(this.customerRefId, transactionRequest.customerRefId)
&& Objects.equals(this.travelRuleMessage, transactionRequest.travelRuleMessage)
+ && Objects.equals(this.travelRuleMessageId, transactionRequest.travelRuleMessageId)
&& Objects.equals(this.autoStaking, transactionRequest.autoStaking)
&& Objects.equals(this.networkStaking, transactionRequest.networkStaking)
&& Objects.equals(this.cpuStaking, transactionRequest.cpuStaking)
@@ -924,6 +953,7 @@ public int hashCode() {
extraParameters,
customerRefId,
travelRuleMessage,
+ travelRuleMessageId,
autoStaking,
networkStaking,
cpuStaking,
@@ -961,6 +991,9 @@ public String toString() {
sb.append(" travelRuleMessage: ")
.append(toIndentedString(travelRuleMessage))
.append("\n");
+ sb.append(" travelRuleMessageId: ")
+ .append(toIndentedString(travelRuleMessageId))
+ .append("\n");
sb.append(" autoStaking: ").append(toIndentedString(autoStaking)).append("\n");
sb.append(" networkStaking: ").append(toIndentedString(networkStaking)).append("\n");
sb.append(" cpuStaking: ").append(toIndentedString(cpuStaking)).append("\n");
@@ -1240,6 +1273,19 @@ public String toUrlQueryString(String prefix) {
getTravelRuleMessage().toUrlQueryString(prefix + "travelRuleMessage" + suffix));
}
+ // add `travelRuleMessageId` to the URL query string
+ if (getTravelRuleMessageId() != null) {
+ joiner.add(
+ String.format(
+ "%stravelRuleMessageId%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getTravelRuleMessageId()),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
// add `autoStaking` to the URL query string
if (getAutoStaking() != null) {
joiner.add(
diff --git a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java
index 59e12836..3ede58fd 100644
--- a/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java
+++ b/src/main/java/com/fireblocks/sdk/model/TransactionRequestDestination.java
@@ -24,7 +24,9 @@
/** TransactionRequestDestination */
@JsonPropertyOrder({
TransactionRequestDestination.JSON_PROPERTY_AMOUNT,
- TransactionRequestDestination.JSON_PROPERTY_DESTINATION
+ TransactionRequestDestination.JSON_PROPERTY_DESTINATION,
+ TransactionRequestDestination.JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID,
+ TransactionRequestDestination.JSON_PROPERTY_CUSTOMER_REF_ID
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TransactionRequestDestination {
@@ -34,6 +36,12 @@ public class TransactionRequestDestination {
public static final String JSON_PROPERTY_DESTINATION = "destination";
private DestinationTransferPeerPath destination;
+ public static final String JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID = "travelRuleMessageId";
+ private String travelRuleMessageId;
+
+ public static final String JSON_PROPERTY_CUSTOMER_REF_ID = "customerRefId";
+ private String customerRefId;
+
public TransactionRequestDestination() {}
public TransactionRequestDestination amount(String amount) {
@@ -82,6 +90,53 @@ public void setDestination(DestinationTransferPeerPath destination) {
this.destination = destination;
}
+ public TransactionRequestDestination travelRuleMessageId(String travelRuleMessageId) {
+ this.travelRuleMessageId = travelRuleMessageId;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ * @return travelRuleMessageId
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTravelRuleMessageId() {
+ return travelRuleMessageId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_TRAVEL_RULE_MESSAGE_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setTravelRuleMessageId(String travelRuleMessageId) {
+ this.travelRuleMessageId = travelRuleMessageId;
+ }
+
+ public TransactionRequestDestination customerRefId(String customerRefId) {
+ this.customerRefId = customerRefId;
+ return this;
+ }
+
+ /**
+ * The ID for AML providers to associate the owner of funds with transactions.
+ *
+ * @return customerRefId
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getCustomerRefId() {
+ return customerRefId;
+ }
+
+ @JsonProperty(JSON_PROPERTY_CUSTOMER_REF_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public void setCustomerRefId(String customerRefId) {
+ this.customerRefId = customerRefId;
+ }
+
/** Return true if this TransactionRequestDestination object is equal to o. */
@Override
public boolean equals(Object o) {
@@ -94,12 +149,15 @@ public boolean equals(Object o) {
TransactionRequestDestination transactionRequestDestination =
(TransactionRequestDestination) o;
return Objects.equals(this.amount, transactionRequestDestination.amount)
- && Objects.equals(this.destination, transactionRequestDestination.destination);
+ && Objects.equals(this.destination, transactionRequestDestination.destination)
+ && Objects.equals(
+ this.travelRuleMessageId, transactionRequestDestination.travelRuleMessageId)
+ && Objects.equals(this.customerRefId, transactionRequestDestination.customerRefId);
}
@Override
public int hashCode() {
- return Objects.hash(amount, destination);
+ return Objects.hash(amount, destination, travelRuleMessageId, customerRefId);
}
@Override
@@ -108,6 +166,10 @@ public String toString() {
sb.append("class TransactionRequestDestination {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
+ sb.append(" travelRuleMessageId: ")
+ .append(toIndentedString(travelRuleMessageId))
+ .append("\n");
+ sb.append(" customerRefId: ").append(toIndentedString(customerRefId)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -171,6 +233,32 @@ public String toUrlQueryString(String prefix) {
joiner.add(getDestination().toUrlQueryString(prefix + "destination" + suffix));
}
+ // add `travelRuleMessageId` to the URL query string
+ if (getTravelRuleMessageId() != null) {
+ joiner.add(
+ String.format(
+ "%stravelRuleMessageId%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getTravelRuleMessageId()),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `customerRefId` to the URL query string
+ if (getCustomerRefId() != null) {
+ joiner.add(
+ String.format(
+ "%scustomerRefId%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(
+ String.valueOf(getCustomerRefId()),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
return joiner.toString();
}
}
diff --git a/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java b/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java
index 309578ba..1347f151 100644
--- a/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java
+++ b/src/main/java/com/fireblocks/sdk/model/WebhookEvent.java
@@ -24,6 +24,9 @@ public enum WebhookEvent {
TRANSACTION_APPROVAL_STATUS_UPDATED("transaction.approval_status.updated"),
+ TRANSACTION_NETWORK_RECORDS_PROCESSING_COMPLETED(
+ "transaction.network_records.processing_completed"),
+
EXTERNAL_WALLET_ASSET_ADDED("external_wallet.asset.added"),
EXTERNAL_WALLET_ASSET_REMOVED("external_wallet.asset.removed"),
@@ -38,7 +41,7 @@ public enum WebhookEvent {
VAULT_ACCOUNT_CREATED("vault_account.created"),
- VAULT_ACCOUNT_ASSET_LISTED("vault_account.asset.listed"),
+ VAULT_ACCOUNT_ASSET_ADDED("vault_account.asset.added"),
VAULT_ACCOUNT_ASSET_BALANCE_UPDATED("vault_account.asset.balance_updated"),
@@ -48,11 +51,21 @@ public enum WebhookEvent {
EMBEDDED_WALLET_ASSET_BALANCE_UPDATED("embedded_wallet.asset.balance_updated"),
- EMBEDDED_WALLET_ASSET_LISTED("embedded_wallet.asset.listed"),
+ EMBEDDED_WALLET_ASSET_ADDED("embedded_wallet.asset.added"),
EMBEDDED_WALLET_ACCOUNT_CREATED("embedded_wallet.account.created"),
- EMBEDDED_WALLET_DEVICE_ADDED("embedded_wallet.device.added");
+ EMBEDDED_WALLET_DEVICE_ADDED("embedded_wallet.device.added"),
+
+ ONCHAIN_DATA_UPDATED("onchain_data.updated"),
+
+ CONNECTION_ADDED("connection.added"),
+
+ CONNECTION_REMOVED("connection.removed"),
+
+ CONNECTION_REQUEST_WAITING_PEER_APPROVAL("connection.request.waiting_peer_approval"),
+
+ CONNECTION_REQUEST_REJECTED_BY_PEER("connection.request.rejected_by_peer");
private String value;
diff --git a/src/test/java/com/fireblocks/sdk/FireblocksTest.java b/src/test/java/com/fireblocks/sdk/FireblocksTest.java
index d3aec3a3..e13a25d1 100644
--- a/src/test/java/com/fireblocks/sdk/FireblocksTest.java
+++ b/src/test/java/com/fireblocks/sdk/FireblocksTest.java
@@ -678,11 +678,11 @@ public void testGetWebhooksApi() {
}
@Test
- public void testGetWebhooksV2BetaApi() {
+ public void testGetWebhooksV2Api() {
setupFireblocks(true, null, null);
- WebhooksV2BetaApi webhooksV2Beta = fireblocks.webhooksV2Beta();
- Assert.assertNotNull(webhooksV2Beta);
- Assert.assertSame(webhooksV2Beta, fireblocks.webhooksV2Beta());
+ WebhooksV2Api webhooksV2 = fireblocks.webhooksV2();
+ Assert.assertNotNull(webhooksV2);
+ Assert.assertSame(webhooksV2, fireblocks.webhooksV2());
}
@Test
diff --git a/src/test/java/com/fireblocks/sdk/api/WebhooksV2BetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java
similarity index 62%
rename from src/test/java/com/fireblocks/sdk/api/WebhooksV2BetaApiTest.java
rename to src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java
index 6dda5ef6..96fd6c09 100644
--- a/src/test/java/com/fireblocks/sdk/api/WebhooksV2BetaApiTest.java
+++ b/src/test/java/com/fireblocks/sdk/api/WebhooksV2ApiTest.java
@@ -16,32 +16,33 @@
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
import com.fireblocks.sdk.model.CreateWebhookRequest;
+import com.fireblocks.sdk.model.NotificationAttemptsPaginatedResponse;
import com.fireblocks.sdk.model.NotificationPaginatedResponse;
-import com.fireblocks.sdk.model.NotificationStatus;
import com.fireblocks.sdk.model.NotificationWithData;
+import com.fireblocks.sdk.model.ResendFailedNotificationsJobStatusResponse;
+import com.fireblocks.sdk.model.ResendFailedNotificationsRequest;
+import com.fireblocks.sdk.model.ResendFailedNotificationsResponse;
import com.fireblocks.sdk.model.ResendNotificationsByResourceIdRequest;
import com.fireblocks.sdk.model.UpdateWebhookRequest;
import com.fireblocks.sdk.model.Webhook;
-import com.fireblocks.sdk.model.WebhookEvent;
import com.fireblocks.sdk.model.WebhookPaginatedResponse;
import java.math.BigDecimal;
-import java.util.List;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import org.junit.Ignore;
import org.junit.Test;
-/** API tests for WebhooksV2BetaApi */
+/** API tests for WebhooksV2Api */
@Ignore
-public class WebhooksV2BetaApiTest {
+public class WebhooksV2ApiTest {
- private final WebhooksV2BetaApi api = new WebhooksV2BetaApi();
+ private final WebhooksV2Api api = new WebhooksV2Api();
/**
* Create new webhook
*
- * Creates a new webhook, which will be triggered on the specified events **Note:** These
- * endpoints are currently in beta and might be subject to changes.
+ *
Creates a new webhook, which will be triggered on the specified events Endpoint
+ * Permission: Owner, Admin, Non-Signing Admin.
*
* @throws ApiException if the Api call fails
*/
@@ -56,8 +57,7 @@ public void createWebhookTest() throws ApiException {
/**
* Delete webhook
*
- *
Delete a webhook by its id **Note:** These endpoints are currently in beta and might be
- * subject to changes.
+ *
Delete a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin.
*
* @throws ApiException if the Api call fails
*/
@@ -70,8 +70,7 @@ public void deleteWebhookTest() throws ApiException {
/**
* Get notification by id
*
- *
Get notification by id **Note:** These endpoints are currently in beta and might be
- * subject to changes.
+ *
Get notification by id
*
* @throws ApiException if the Api call fails
*/
@@ -84,11 +83,27 @@ public void getNotificationTest() throws ApiException {
api.getNotification(webhookId, notificationId, includeData);
}
+ /**
+ * Get notification attempts
+ *
+ *
Get notification attempts by notification id
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void getNotificationAttemptsTest() throws ApiException {
+ String webhookId = null;
+ String notificationId = null;
+ String pageCursor = null;
+ BigDecimal pageSize = null;
+ CompletableFuture> response =
+ api.getNotificationAttempts(webhookId, notificationId, pageCursor, pageSize);
+ }
+
/**
* Get all notifications by webhook id
*
- * Get all notifications by webhook id (paginated) **Note:** These endpoints are currently in
- * beta and might be subject to changes.
+ *
Get all notifications by webhook id (paginated)
*
* @throws ApiException if the Api call fails
*/
@@ -96,31 +111,32 @@ public void getNotificationTest() throws ApiException {
public void getNotificationsTest() throws ApiException {
UUID webhookId = null;
String order = null;
+ String sortBy = null;
String pageCursor = null;
BigDecimal pageSize = null;
- String createdStartDate = null;
- String createdEndDate = null;
- List statuses = null;
- List eventTypes = null;
- String resourceId = null;
CompletableFuture> response =
- api.getNotifications(
- webhookId,
- order,
- pageCursor,
- pageSize,
- createdStartDate,
- createdEndDate,
- statuses,
- eventTypes,
- resourceId);
+ api.getNotifications(webhookId, order, sortBy, pageCursor, pageSize);
+ }
+
+ /**
+ * Get resend job status
+ *
+ * Get the status of a resend job
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void getResendJobStatusTest() throws ApiException {
+ String webhookId = null;
+ String jobId = null;
+ CompletableFuture> response =
+ api.getResendJobStatus(webhookId, jobId);
}
/**
* Get webhook by id
*
- * Retrieve a webhook by its id **Note:** These endpoints are currently in beta and might be
- * subject to changes.
+ *
Retrieve a webhook by its id
*
* @throws ApiException if the Api call fails
*/
@@ -133,8 +149,7 @@ public void getWebhookTest() throws ApiException {
/**
* Get all webhooks
*
- *
Get all webhooks (paginated) **Note:** These endpoints are currently in beta and might be
- * subject to changes.
+ *
Get all webhooks (paginated)
*
* @throws ApiException if the Api call fails
*/
@@ -147,11 +162,28 @@ public void getWebhooksTest() throws ApiException {
api.getWebhooks(order, pageCursor, pageSize);
}
+ /**
+ * Resend failed notifications
+ *
+ *
Resend all failed notifications for a webhook in the last 24 hours Endpoint Permission:
+ * Owner, Admin, Non-Signing Admin.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void resendFailedNotificationsTest() throws ApiException {
+ ResendFailedNotificationsRequest resendFailedNotificationsRequest = null;
+ String webhookId = null;
+ String idempotencyKey = null;
+ CompletableFuture> response =
+ api.resendFailedNotifications(
+ resendFailedNotificationsRequest, webhookId, idempotencyKey);
+ }
+
/**
* Resend notification by id
*
- * Resend notification by ID **Note:** These endpoints are currently in beta and might be
- * subject to changes.
+ *
Resend notification by ID Endpoint Permission: Owner, Admin, Non-Signing Admin.
*
* @throws ApiException if the Api call fails
*/
@@ -168,8 +200,7 @@ public void resendNotificationByIdTest() throws ApiException {
/**
* Resend notifications by resource Id
*
- *
Resend notifications by resource Id **Note:** These endpoints are currently in beta and
- * might be subject to changes.
+ *
Resend notifications by resource Id Endpoint Permission: Owner, Admin, Non-Signing Admin.
*
* @throws ApiException if the Api call fails
*/
@@ -187,8 +218,7 @@ public void resendNotificationsByResourceIdTest() throws ApiException {
/**
* Update webhook
*
- *
Update a webhook by its id **Note:** These endpoints are currently in beta and might be
- * subject to changes.
+ *
Update a webhook by its id Endpoint Permission: Owner, Admin, Non-Signing Admin.
*
* @throws ApiException if the Api call fails
*/
diff --git a/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java b/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java
new file mode 100644
index 00000000..e5183638
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/EstimatedFeeDetailsTest.java
@@ -0,0 +1,45 @@
+/*
+ * 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 EstimatedFeeDetails */
+public class EstimatedFeeDetailsTest {
+ private final EstimatedFeeDetails model = new EstimatedFeeDetails();
+
+ /** Model tests for EstimatedFeeDetails */
+ @Test
+ public void testEstimatedFeeDetails() {
+ // TODO: test EstimatedFeeDetails
+ }
+
+ /** Test the property 'low' */
+ @Test
+ public void lowTest() {
+ // TODO: test low
+ }
+
+ /** Test the property 'medium' */
+ @Test
+ public void mediumTest() {
+ // TODO: test medium
+ }
+
+ /** Test the property 'high' */
+ @Test
+ public void highTest() {
+ // TODO: test high
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java b/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java
index d0a206c4..f0387ce1 100644
--- a/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/EstimatedTransactionFeeResponseTest.java
@@ -42,4 +42,10 @@ public void mediumTest() {
public void highTest() {
// TODO: test high
}
+
+ /** Test the property 'feeDetails' */
+ @Test
+ public void feeDetailsTest() {
+ // TODO: test feeDetails
+ }
}
diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java
new file mode 100644
index 00000000..73c8db80
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOf1Test.java
@@ -0,0 +1,45 @@
+/*
+ * 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 FeeBreakdownOneOf1 */
+public class FeeBreakdownOneOf1Test {
+ private final FeeBreakdownOneOf1 model = new FeeBreakdownOneOf1();
+
+ /** Model tests for FeeBreakdownOneOf1 */
+ @Test
+ public void testFeeBreakdownOneOf1() {
+ // TODO: test FeeBreakdownOneOf1
+ }
+
+ /** Test the property 'baseFee' */
+ @Test
+ public void baseFeeTest() {
+ // TODO: test baseFee
+ }
+
+ /** Test the property 'priorityFee' */
+ @Test
+ public void priorityFeeTest() {
+ // TODO: test priorityFee
+ }
+
+ /** Test the property 'totalFee' */
+ @Test
+ public void totalFeeTest() {
+ // TODO: test totalFee
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java
new file mode 100644
index 00000000..c73686b2
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownOneOfTest.java
@@ -0,0 +1,51 @@
+/*
+ * 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 FeeBreakdownOneOf */
+public class FeeBreakdownOneOfTest {
+ private final FeeBreakdownOneOf model = new FeeBreakdownOneOf();
+
+ /** Model tests for FeeBreakdownOneOf */
+ @Test
+ public void testFeeBreakdownOneOf() {
+ // TODO: test FeeBreakdownOneOf
+ }
+
+ /** Test the property 'baseFee' */
+ @Test
+ public void baseFeeTest() {
+ // TODO: test baseFee
+ }
+
+ /** Test the property 'priorityFee' */
+ @Test
+ public void priorityFeeTest() {
+ // TODO: test priorityFee
+ }
+
+ /** Test the property 'rent' */
+ @Test
+ public void rentTest() {
+ // TODO: test rent
+ }
+
+ /** Test the property 'totalFee' */
+ @Test
+ public void totalFeeTest() {
+ // TODO: test totalFee
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java
new file mode 100644
index 00000000..5dbc1bc8
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/FeeBreakdownTest.java
@@ -0,0 +1,51 @@
+/*
+ * 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 FeeBreakdown */
+public class FeeBreakdownTest {
+ private final FeeBreakdown model = new FeeBreakdown();
+
+ /** Model tests for FeeBreakdown */
+ @Test
+ public void testFeeBreakdown() {
+ // TODO: test FeeBreakdown
+ }
+
+ /** Test the property 'baseFee' */
+ @Test
+ public void baseFeeTest() {
+ // TODO: test baseFee
+ }
+
+ /** Test the property 'priorityFee' */
+ @Test
+ public void priorityFeeTest() {
+ // TODO: test priorityFee
+ }
+
+ /** Test the property 'rent' */
+ @Test
+ public void rentTest() {
+ // TODO: test rent
+ }
+
+ /** Test the property 'totalFee' */
+ @Test
+ public void totalFeeTest() {
+ // TODO: test totalFee
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java
new file mode 100644
index 00000000..8a02da6a
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/NotificationAttemptsPaginatedResponseTest.java
@@ -0,0 +1,40 @@
+/*
+ * 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 NotificationAttemptsPaginatedResponse */
+public class NotificationAttemptsPaginatedResponseTest {
+ private final NotificationAttemptsPaginatedResponse model =
+ new NotificationAttemptsPaginatedResponse();
+
+ /** Model tests for NotificationAttemptsPaginatedResponse */
+ @Test
+ public void testNotificationAttemptsPaginatedResponse() {
+ // TODO: test NotificationAttemptsPaginatedResponse
+ }
+
+ /** Test the property 'data' */
+ @Test
+ public void dataTest() {
+ // TODO: test data
+ }
+
+ /** Test the property 'next' */
+ @Test
+ public void nextTest() {
+ // TODO: test next
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationTest.java
index 04805353..5531beba 100644
--- a/src/test/java/com/fireblocks/sdk/model/NotificationTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/NotificationTest.java
@@ -60,10 +60,4 @@ public void eventTypeTest() {
public void resourceIdTest() {
// TODO: test resourceId
}
-
- /** Test the property 'attempts' */
- @Test
- public void attemptsTest() {
- // TODO: test attempts
- }
}
diff --git a/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java b/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java
index b1b77f61..170f46af 100644
--- a/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/NotificationWithDataTest.java
@@ -61,12 +61,6 @@ public void resourceIdTest() {
// TODO: test resourceId
}
- /** Test the property 'attempts' */
- @Test
- public void attemptsTest() {
- // TODO: test attempts
- }
-
/** Test the property 'data' */
@Test
public void dataTest() {
diff --git a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java
new file mode 100644
index 00000000..8f2c52cb
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsJobStatusResponseTest.java
@@ -0,0 +1,52 @@
+/*
+ * 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 ResendFailedNotificationsJobStatusResponse */
+public class ResendFailedNotificationsJobStatusResponseTest {
+ private final ResendFailedNotificationsJobStatusResponse model =
+ new ResendFailedNotificationsJobStatusResponse();
+
+ /** Model tests for ResendFailedNotificationsJobStatusResponse */
+ @Test
+ public void testResendFailedNotificationsJobStatusResponse() {
+ // TODO: test ResendFailedNotificationsJobStatusResponse
+ }
+
+ /** Test the property 'jobId' */
+ @Test
+ public void jobIdTest() {
+ // TODO: test jobId
+ }
+
+ /** Test the property 'status' */
+ @Test
+ public void statusTest() {
+ // TODO: test status
+ }
+
+ /** Test the property 'processed' */
+ @Test
+ public void processedTest() {
+ // TODO: test processed
+ }
+
+ /** Test the property 'total' */
+ @Test
+ public void totalTest() {
+ // TODO: test total
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java
new file mode 100644
index 00000000..1b06c9e7
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsRequestTest.java
@@ -0,0 +1,39 @@
+/*
+ * 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 ResendFailedNotificationsRequest */
+public class ResendFailedNotificationsRequestTest {
+ private final ResendFailedNotificationsRequest model = new ResendFailedNotificationsRequest();
+
+ /** Model tests for ResendFailedNotificationsRequest */
+ @Test
+ public void testResendFailedNotificationsRequest() {
+ // TODO: test ResendFailedNotificationsRequest
+ }
+
+ /** Test the property 'startTime' */
+ @Test
+ public void startTimeTest() {
+ // TODO: test startTime
+ }
+
+ /** Test the property 'events' */
+ @Test
+ public void eventsTest() {
+ // TODO: test events
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.java
new file mode 100644
index 00000000..fdb8c6cc
--- /dev/null
+++ b/src/test/java/com/fireblocks/sdk/model/ResendFailedNotificationsResponseTest.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 ResendFailedNotificationsResponse */
+public class ResendFailedNotificationsResponseTest {
+ private final ResendFailedNotificationsResponse model = new ResendFailedNotificationsResponse();
+
+ /** Model tests for ResendFailedNotificationsResponse */
+ @Test
+ public void testResendFailedNotificationsResponse() {
+ // TODO: test ResendFailedNotificationsResponse
+ }
+
+ /** Test the property 'total' */
+ @Test
+ public void totalTest() {
+ // TODO: test total
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java
index d742b6a1..3889d16b 100644
--- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestDestinationTest.java
@@ -36,4 +36,16 @@ public void amountTest() {
public void destinationTest() {
// TODO: test destination
}
+
+ /** Test the property 'travelRuleMessageId' */
+ @Test
+ public void travelRuleMessageIdTest() {
+ // TODO: test travelRuleMessageId
+ }
+
+ /** Test the property 'customerRefId' */
+ @Test
+ public void customerRefIdTest() {
+ // TODO: test customerRefId
+ }
}
diff --git a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java
index 0139b4b9..28a9a8a8 100644
--- a/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/TransactionRequestTest.java
@@ -163,6 +163,12 @@ public void travelRuleMessageTest() {
// TODO: test travelRuleMessage
}
+ /** Test the property 'travelRuleMessageId' */
+ @Test
+ public void travelRuleMessageIdTest() {
+ // TODO: test travelRuleMessageId
+ }
+
/** Test the property 'autoStaking' */
@Test
public void autoStakingTest() {