Skip to content

Commit

Permalink
Generated version 1.1.0
Browse files Browse the repository at this point in the history
This commit was automatically created by a GitHub Action to generate version 1.1.0 of this library.
  • Loading branch information
devexperience committed Nov 27, 2024
1 parent 158a0e8 commit 98581df
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mvn clean package
```

Then manually install the following JARs:
- `target/mx-platform-java-1.0.0.jar`
- `target/mx-platform-java-1.1.0.jar`
- `target/lib/*.jar`

### Maven users
Expand All @@ -35,7 +35,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.mx</groupId>
<artifactId>mx-platform-java</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<scope>compile</scope>
</dependency>
```
Expand Down
1 change: 1 addition & 0 deletions docs/MemberResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
|**name** | **String** | | [optional] |
|**oauthWindowUri** | **String** | | [optional] |
|**successfullyAggregatedAt** | **String** | | [optional] |
|**useCases** | **List&lt;String&gt;** | | [optional] |
|**userGuid** | **String** | | [optional] |
|**userId** | **String** | | [optional] |

Expand Down
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiPackage: com.mx.client.mx-platform-api
artifactDescription: A Java library for the MX Platform API
artifactId: mx-platform-java
artifactUrl: https://github.com/mxenabled/mx-platform-java
artifactVersion: 1.0.0
artifactVersion: 1.1.0
developerEmail: [email protected]
developerName: MX
developerOrganization: MX Technologies Inc.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>mx-platform-java</artifactId>
<packaging>jar</packaging>
<name>mx-platform-java</name>
<version>1.0.0</version>
<version>1.1.0</version>
<url>https://github.com/mxenabled/mx-platform-java</url>
<description>A Java library for the MX Platform API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mx/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/1.0.0/java");
setUserAgent("OpenAPI-Generator/1.1.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mx/client/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "1.0.0";
public static final String VERSION = "1.1.0";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
44 changes: 43 additions & 1 deletion src/main/java/com/mx/client/model/MemberResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;

import com.google.gson.Gson;
Expand Down Expand Up @@ -116,6 +118,10 @@ public class MemberResponse {
@SerializedName(SERIALIZED_NAME_SUCCESSFULLY_AGGREGATED_AT)
private String successfullyAggregatedAt;

public static final String SERIALIZED_NAME_USE_CASES = "use_cases";
@SerializedName(SERIALIZED_NAME_USE_CASES)
private List<String> useCases;

public static final String SERIALIZED_NAME_USER_GUID = "user_guid";
@SerializedName(SERIALIZED_NAME_USER_GUID)
private String userGuid;
Expand Down Expand Up @@ -463,6 +469,35 @@ public void setSuccessfullyAggregatedAt(String successfullyAggregatedAt) {
}


public MemberResponse useCases(List<String> useCases) {

this.useCases = useCases;
return this;
}

public MemberResponse addUseCasesItem(String useCasesItem) {
if (this.useCases == null) {
this.useCases = new ArrayList<>();
}
this.useCases.add(useCasesItem);
return this;
}

/**
* Get useCases
* @return useCases
**/
@javax.annotation.Nullable
public List<String> getUseCases() {
return useCases;
}


public void setUseCases(List<String> useCases) {
this.useCases = useCases;
}


public MemberResponse userGuid(String userGuid) {

this.userGuid = userGuid;
Expand Down Expand Up @@ -531,6 +566,7 @@ public boolean equals(Object o) {
Objects.equals(this.name, memberResponse.name) &&
Objects.equals(this.oauthWindowUri, memberResponse.oauthWindowUri) &&
Objects.equals(this.successfullyAggregatedAt, memberResponse.successfullyAggregatedAt) &&
Objects.equals(this.useCases, memberResponse.useCases) &&
Objects.equals(this.userGuid, memberResponse.userGuid) &&
Objects.equals(this.userId, memberResponse.userId);
}
Expand All @@ -541,7 +577,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(aggregatedAt, backgroundAggregationIsDisabled, connectionStatus, guid, id, institutionCode, isBeingAggregated, isManagedByUser, isManual, isOauth, metadata, mostRecentJobDetailCode, mostRecentJobDetailText, name, oauthWindowUri, successfullyAggregatedAt, userGuid, userId);
return Objects.hash(aggregatedAt, backgroundAggregationIsDisabled, connectionStatus, guid, id, institutionCode, isBeingAggregated, isManagedByUser, isManual, isOauth, metadata, mostRecentJobDetailCode, mostRecentJobDetailText, name, oauthWindowUri, successfullyAggregatedAt, useCases, userGuid, userId);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand Down Expand Up @@ -571,6 +607,7 @@ public String toString() {
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" oauthWindowUri: ").append(toIndentedString(oauthWindowUri)).append("\n");
sb.append(" successfullyAggregatedAt: ").append(toIndentedString(successfullyAggregatedAt)).append("\n");
sb.append(" useCases: ").append(toIndentedString(useCases)).append("\n");
sb.append(" userGuid: ").append(toIndentedString(userGuid)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append("}");
Expand Down Expand Up @@ -611,6 +648,7 @@ private String toIndentedString(Object o) {
openapiFields.add("name");
openapiFields.add("oauth_window_uri");
openapiFields.add("successfully_aggregated_at");
openapiFields.add("use_cases");
openapiFields.add("user_guid");
openapiFields.add("user_id");

Expand Down Expand Up @@ -672,6 +710,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("successfully_aggregated_at") != null && !jsonObj.get("successfully_aggregated_at").isJsonNull()) && !jsonObj.get("successfully_aggregated_at").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `successfully_aggregated_at` to be a primitive type in the JSON string but got `%s`", jsonObj.get("successfully_aggregated_at").toString()));
}
// ensure the optional json data is an array if present
if (jsonObj.get("use_cases") != null && !jsonObj.get("use_cases").isJsonNull() && !jsonObj.get("use_cases").isJsonArray()) {
throw new IllegalArgumentException(String.format("Expected the field `use_cases` to be an array in the JSON string but got `%s`", jsonObj.get("use_cases").toString()));
}
if ((jsonObj.get("user_guid") != null && !jsonObj.get("user_guid").isJsonNull()) && !jsonObj.get("user_guid").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `user_guid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_guid").toString()));
}
Expand Down
10 changes: 10 additions & 0 deletions src/test/java/com/mx/client/model/MemberResponseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -166,6 +168,14 @@ public void successfullyAggregatedAtTest() {
// TODO: test successfullyAggregatedAt
}

/**
* Test the property 'useCases'
*/
@Test
public void useCasesTest() {
// TODO: test useCases
}

/**
* Test the property 'userGuid'
*/
Expand Down

0 comments on commit 98581df

Please sign in to comment.