accounts) {
this.accounts = accounts;
}
- /** Return true if this CreateConnectedAccountResponse object is equal to o. */
+ /** Return true if this AddConnectedAccountResponse object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -83,9 +81,8 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- CreateConnectedAccountResponse createConnectedAccountResponse =
- (CreateConnectedAccountResponse) o;
- return Objects.equals(this.accounts, createConnectedAccountResponse.accounts);
+ AddConnectedAccountResponse addConnectedAccountResponse = (AddConnectedAccountResponse) o;
+ return Objects.equals(this.accounts, addConnectedAccountResponse.accounts);
}
@Override
@@ -96,7 +93,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class CreateConnectedAccountResponse {\n");
+ sb.append("class AddConnectedAccountResponse {\n");
sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/com/fireblocks/sdk/model/CreatedConnectedAccountItem.java b/src/main/java/com/fireblocks/sdk/model/AddedConnectedAccountItem.java
similarity index 86%
rename from src/main/java/com/fireblocks/sdk/model/CreatedConnectedAccountItem.java
rename to src/main/java/com/fireblocks/sdk/model/AddedConnectedAccountItem.java
index 5b3ba6f3..75230a9c 100644
--- a/src/main/java/com/fireblocks/sdk/model/CreatedConnectedAccountItem.java
+++ b/src/main/java/com/fireblocks/sdk/model/AddedConnectedAccountItem.java
@@ -21,17 +21,17 @@
import java.util.Objects;
import java.util.StringJoiner;
-/** CreatedConnectedAccountItem */
+/** AddedConnectedAccountItem */
@JsonPropertyOrder({
- CreatedConnectedAccountItem.JSON_PROPERTY_ACCOUNT_ID,
- CreatedConnectedAccountItem.JSON_PROPERTY_NAME,
- CreatedConnectedAccountItem.JSON_PROPERTY_PARENT_ACCOUNT_ID,
- CreatedConnectedAccountItem.JSON_PROPERTY_STATUS
+ AddedConnectedAccountItem.JSON_PROPERTY_ACCOUNT_ID,
+ AddedConnectedAccountItem.JSON_PROPERTY_NAME,
+ AddedConnectedAccountItem.JSON_PROPERTY_PARENT_ACCOUNT_ID,
+ AddedConnectedAccountItem.JSON_PROPERTY_STATUS
})
@jakarta.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.14.0")
-public class CreatedConnectedAccountItem {
+public class AddedConnectedAccountItem {
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
@jakarta.annotation.Nonnull private String accountId;
@@ -44,10 +44,10 @@ public class CreatedConnectedAccountItem {
public static final String JSON_PROPERTY_STATUS = "status";
@jakarta.annotation.Nonnull private ConnectedAccountApprovalStatus status;
- public CreatedConnectedAccountItem() {}
+ public AddedConnectedAccountItem() {}
@JsonCreator
- public CreatedConnectedAccountItem(
+ public AddedConnectedAccountItem(
@JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = true) String accountId,
@JsonProperty(value = JSON_PROPERTY_NAME, required = true) String name,
@JsonProperty(value = JSON_PROPERTY_STATUS, required = true)
@@ -57,7 +57,7 @@ public CreatedConnectedAccountItem(
this.status = status;
}
- public CreatedConnectedAccountItem accountId(@jakarta.annotation.Nonnull String accountId) {
+ public AddedConnectedAccountItem accountId(@jakarta.annotation.Nonnull String accountId) {
this.accountId = accountId;
return this;
}
@@ -80,7 +80,7 @@ public void setAccountId(@jakarta.annotation.Nonnull String accountId) {
this.accountId = accountId;
}
- public CreatedConnectedAccountItem name(@jakarta.annotation.Nonnull String name) {
+ public AddedConnectedAccountItem name(@jakarta.annotation.Nonnull String name) {
this.name = name;
return this;
}
@@ -103,7 +103,7 @@ public void setName(@jakarta.annotation.Nonnull String name) {
this.name = name;
}
- public CreatedConnectedAccountItem parentAccountId(
+ public AddedConnectedAccountItem parentAccountId(
@jakarta.annotation.Nullable String parentAccountId) {
this.parentAccountId = parentAccountId;
return this;
@@ -127,7 +127,7 @@ public void setParentAccountId(@jakarta.annotation.Nullable String parentAccount
this.parentAccountId = parentAccountId;
}
- public CreatedConnectedAccountItem status(
+ public AddedConnectedAccountItem status(
@jakarta.annotation.Nonnull ConnectedAccountApprovalStatus status) {
this.status = status;
return this;
@@ -151,7 +151,7 @@ public void setStatus(@jakarta.annotation.Nonnull ConnectedAccountApprovalStatus
this.status = status;
}
- /** Return true if this CreatedConnectedAccountItem object is equal to o. */
+ /** Return true if this AddedConnectedAccountItem object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -160,11 +160,11 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- CreatedConnectedAccountItem createdConnectedAccountItem = (CreatedConnectedAccountItem) o;
- return Objects.equals(this.accountId, createdConnectedAccountItem.accountId)
- && Objects.equals(this.name, createdConnectedAccountItem.name)
- && Objects.equals(this.parentAccountId, createdConnectedAccountItem.parentAccountId)
- && Objects.equals(this.status, createdConnectedAccountItem.status);
+ AddedConnectedAccountItem addedConnectedAccountItem = (AddedConnectedAccountItem) o;
+ return Objects.equals(this.accountId, addedConnectedAccountItem.accountId)
+ && Objects.equals(this.name, addedConnectedAccountItem.name)
+ && Objects.equals(this.parentAccountId, addedConnectedAccountItem.parentAccountId)
+ && Objects.equals(this.status, addedConnectedAccountItem.status);
}
@Override
@@ -175,7 +175,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class CreatedConnectedAccountItem {\n");
+ sb.append("class AddedConnectedAccountItem {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" parentAccountId: ").append(toIndentedString(parentAccountId)).append("\n");
diff --git a/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java b/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java
index 53992ae3..f479fd0c 100644
--- a/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java
+++ b/src/test/java/com/fireblocks/sdk/api/ConnectedAccountsBetaApiTest.java
@@ -15,6 +15,8 @@
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.model.AddConnectedAccountRequest;
+import com.fireblocks.sdk.model.AddConnectedAccountResponse;
import com.fireblocks.sdk.model.AllowlistEntryResponse;
import com.fireblocks.sdk.model.AllowlistEntryStatus;
import com.fireblocks.sdk.model.AllowlistResponse;
@@ -23,8 +25,6 @@
import com.fireblocks.sdk.model.ConnectedAccountTradingPairsResponse;
import com.fireblocks.sdk.model.ConnectedAccountsResponse;
import com.fireblocks.sdk.model.ConnectedSingleAccountResponse;
-import com.fireblocks.sdk.model.CreateConnectedAccountRequest;
-import com.fireblocks.sdk.model.CreateConnectedAccountResponse;
import com.fireblocks.sdk.model.RenameConnectedAccountRequest;
import com.fireblocks.sdk.model.RenameConnectedAccountResponse;
import java.util.concurrent.CompletableFuture;
@@ -38,7 +38,7 @@ public class ConnectedAccountsBetaApiTest {
private final ConnectedAccountsBetaApi api = new ConnectedAccountsBetaApi();
/**
- * Create a connected account
+ * Add a connected account
*
* Creates a new connected account for the authenticated tenant. The `creds` field
* must be a Base64-encoded RSA-encrypted credential blob. Use `GET
@@ -50,11 +50,11 @@ public class ConnectedAccountsBetaApiTest {
* @throws ApiException if the Api call fails
*/
@Test
- public void createConnectedAccountTest() throws ApiException {
- CreateConnectedAccountRequest createConnectedAccountRequest = null;
+ public void addConnectedAccountTest() throws ApiException {
+ AddConnectedAccountRequest addConnectedAccountRequest = null;
String idempotencyKey = null;
- CompletableFuture> response =
- api.createConnectedAccount(createConnectedAccountRequest, idempotencyKey);
+ CompletableFuture> response =
+ api.addConnectedAccount(addConnectedAccountRequest, idempotencyKey);
}
/**
diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountRequestTest.java b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountRequestTest.java
similarity index 81%
rename from src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountRequestTest.java
rename to src/test/java/com/fireblocks/sdk/model/AddConnectedAccountRequestTest.java
index 94dbf759..c7c6be83 100644
--- a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountRequestTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountRequestTest.java
@@ -15,14 +15,14 @@
import org.junit.jupiter.api.Test;
-/** Model tests for CreateConnectedAccountRequest */
-class CreateConnectedAccountRequestTest {
- private final CreateConnectedAccountRequest model = new CreateConnectedAccountRequest();
+/** Model tests for AddConnectedAccountRequest */
+class AddConnectedAccountRequestTest {
+ private final AddConnectedAccountRequest model = new AddConnectedAccountRequest();
- /** Model tests for CreateConnectedAccountRequest */
+ /** Model tests for AddConnectedAccountRequest */
@Test
- void testCreateConnectedAccountRequest() {
- // TODO: test CreateConnectedAccountRequest
+ void testAddConnectedAccountRequest() {
+ // TODO: test AddConnectedAccountRequest
}
/** Test the property 'providerId' */
diff --git a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountResponseTest.java
similarity index 69%
rename from src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountResponseTest.java
rename to src/test/java/com/fireblocks/sdk/model/AddConnectedAccountResponseTest.java
index dce321b9..7b2b802c 100644
--- a/src/test/java/com/fireblocks/sdk/model/CreateConnectedAccountResponseTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/AddConnectedAccountResponseTest.java
@@ -15,14 +15,14 @@
import org.junit.jupiter.api.Test;
-/** Model tests for CreateConnectedAccountResponse */
-class CreateConnectedAccountResponseTest {
- private final CreateConnectedAccountResponse model = new CreateConnectedAccountResponse();
+/** Model tests for AddConnectedAccountResponse */
+class AddConnectedAccountResponseTest {
+ private final AddConnectedAccountResponse model = new AddConnectedAccountResponse();
- /** Model tests for CreateConnectedAccountResponse */
+ /** Model tests for AddConnectedAccountResponse */
@Test
- void testCreateConnectedAccountResponse() {
- // TODO: test CreateConnectedAccountResponse
+ void testAddConnectedAccountResponse() {
+ // TODO: test AddConnectedAccountResponse
}
/** Test the property 'accounts' */
diff --git a/src/test/java/com/fireblocks/sdk/model/CreatedConnectedAccountItemTest.java b/src/test/java/com/fireblocks/sdk/model/AddedConnectedAccountItemTest.java
similarity index 77%
rename from src/test/java/com/fireblocks/sdk/model/CreatedConnectedAccountItemTest.java
rename to src/test/java/com/fireblocks/sdk/model/AddedConnectedAccountItemTest.java
index ff7abd03..6e505135 100644
--- a/src/test/java/com/fireblocks/sdk/model/CreatedConnectedAccountItemTest.java
+++ b/src/test/java/com/fireblocks/sdk/model/AddedConnectedAccountItemTest.java
@@ -15,14 +15,14 @@
import org.junit.jupiter.api.Test;
-/** Model tests for CreatedConnectedAccountItem */
-class CreatedConnectedAccountItemTest {
- private final CreatedConnectedAccountItem model = new CreatedConnectedAccountItem();
+/** Model tests for AddedConnectedAccountItem */
+class AddedConnectedAccountItemTest {
+ private final AddedConnectedAccountItem model = new AddedConnectedAccountItem();
- /** Model tests for CreatedConnectedAccountItem */
+ /** Model tests for AddedConnectedAccountItem */
@Test
- void testCreatedConnectedAccountItem() {
- // TODO: test CreatedConnectedAccountItem
+ void testAddedConnectedAccountItem() {
+ // TODO: test AddedConnectedAccountItem
}
/** Test the property 'accountId' */