Skip to content

Commit 98581df

Browse files
author
devexperience
committed
Generated version 1.1.0
This commit was automatically created by a GitHub Action to generate version 1.1.0 of this library.
1 parent 158a0e8 commit 98581df

File tree

8 files changed

+60
-7
lines changed

8 files changed

+60
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mvn clean package
2424
```
2525

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

3030
### Maven users
@@ -35,7 +35,7 @@ Add this dependency to your project's POM:
3535
<dependency>
3636
<groupId>com.mx</groupId>
3737
<artifactId>mx-platform-java</artifactId>
38-
<version>1.0.0</version>
38+
<version>1.1.0</version>
3939
<scope>compile</scope>
4040
</dependency>
4141
```

docs/MemberResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
|**name** | **String** | | [optional] |
2424
|**oauthWindowUri** | **String** | | [optional] |
2525
|**successfullyAggregatedAt** | **String** | | [optional] |
26+
|**useCases** | **List&lt;String&gt;** | | [optional] |
2627
|**userGuid** | **String** | | [optional] |
2728
|**userId** | **String** | | [optional] |
2829

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiPackage: com.mx.client.mx-platform-api
33
artifactDescription: A Java library for the MX Platform API
44
artifactId: mx-platform-java
55
artifactUrl: https://github.com/mxenabled/mx-platform-java
6-
artifactVersion: 1.0.0
6+
artifactVersion: 1.1.0
77
developerEmail: devexperience@mx.com
88
developerName: MX
99
developerOrganization: MX Technologies Inc.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>mx-platform-java</artifactId>
66
<packaging>jar</packaging>
77
<name>mx-platform-java</name>
8-
<version>1.0.0</version>
8+
<version>1.1.0</version>
99
<url>https://github.com/mxenabled/mx-platform-java</url>
1010
<description>A Java library for the MX Platform API</description>
1111
<scm>

src/main/java/com/mx/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private void init() {
145145
json = new JSON();
146146

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

150150
authentications = new HashMap<String, Authentication>();
151151
}

src/main/java/com/mx/client/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

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

2020
private static ApiClient defaultApiClient = new ApiClient();
2121

src/main/java/com/mx/client/model/MemberResponse.java

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
import com.google.gson.stream.JsonReader;
2121
import com.google.gson.stream.JsonWriter;
2222
import java.io.IOException;
23+
import java.util.ArrayList;
2324
import java.util.Arrays;
25+
import java.util.List;
2426
import org.openapitools.jackson.nullable.JsonNullable;
2527

2628
import com.google.gson.Gson;
@@ -116,6 +118,10 @@ public class MemberResponse {
116118
@SerializedName(SERIALIZED_NAME_SUCCESSFULLY_AGGREGATED_AT)
117119
private String successfullyAggregatedAt;
118120

121+
public static final String SERIALIZED_NAME_USE_CASES = "use_cases";
122+
@SerializedName(SERIALIZED_NAME_USE_CASES)
123+
private List<String> useCases;
124+
119125
public static final String SERIALIZED_NAME_USER_GUID = "user_guid";
120126
@SerializedName(SERIALIZED_NAME_USER_GUID)
121127
private String userGuid;
@@ -463,6 +469,35 @@ public void setSuccessfullyAggregatedAt(String successfullyAggregatedAt) {
463469
}
464470

465471

472+
public MemberResponse useCases(List<String> useCases) {
473+
474+
this.useCases = useCases;
475+
return this;
476+
}
477+
478+
public MemberResponse addUseCasesItem(String useCasesItem) {
479+
if (this.useCases == null) {
480+
this.useCases = new ArrayList<>();
481+
}
482+
this.useCases.add(useCasesItem);
483+
return this;
484+
}
485+
486+
/**
487+
* Get useCases
488+
* @return useCases
489+
**/
490+
@javax.annotation.Nullable
491+
public List<String> getUseCases() {
492+
return useCases;
493+
}
494+
495+
496+
public void setUseCases(List<String> useCases) {
497+
this.useCases = useCases;
498+
}
499+
500+
466501
public MemberResponse userGuid(String userGuid) {
467502

468503
this.userGuid = userGuid;
@@ -531,6 +566,7 @@ public boolean equals(Object o) {
531566
Objects.equals(this.name, memberResponse.name) &&
532567
Objects.equals(this.oauthWindowUri, memberResponse.oauthWindowUri) &&
533568
Objects.equals(this.successfullyAggregatedAt, memberResponse.successfullyAggregatedAt) &&
569+
Objects.equals(this.useCases, memberResponse.useCases) &&
534570
Objects.equals(this.userGuid, memberResponse.userGuid) &&
535571
Objects.equals(this.userId, memberResponse.userId);
536572
}
@@ -541,7 +577,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
541577

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

547583
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -571,6 +607,7 @@ public String toString() {
571607
sb.append(" name: ").append(toIndentedString(name)).append("\n");
572608
sb.append(" oauthWindowUri: ").append(toIndentedString(oauthWindowUri)).append("\n");
573609
sb.append(" successfullyAggregatedAt: ").append(toIndentedString(successfullyAggregatedAt)).append("\n");
610+
sb.append(" useCases: ").append(toIndentedString(useCases)).append("\n");
574611
sb.append(" userGuid: ").append(toIndentedString(userGuid)).append("\n");
575612
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
576613
sb.append("}");
@@ -611,6 +648,7 @@ private String toIndentedString(Object o) {
611648
openapiFields.add("name");
612649
openapiFields.add("oauth_window_uri");
613650
openapiFields.add("successfully_aggregated_at");
651+
openapiFields.add("use_cases");
614652
openapiFields.add("user_guid");
615653
openapiFields.add("user_id");
616654

@@ -672,6 +710,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
672710
if ((jsonObj.get("successfully_aggregated_at") != null && !jsonObj.get("successfully_aggregated_at").isJsonNull()) && !jsonObj.get("successfully_aggregated_at").isJsonPrimitive()) {
673711
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()));
674712
}
713+
// ensure the optional json data is an array if present
714+
if (jsonObj.get("use_cases") != null && !jsonObj.get("use_cases").isJsonNull() && !jsonObj.get("use_cases").isJsonArray()) {
715+
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()));
716+
}
675717
if ((jsonObj.get("user_guid") != null && !jsonObj.get("user_guid").isJsonNull()) && !jsonObj.get("user_guid").isJsonPrimitive()) {
676718
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()));
677719
}

src/test/java/com/mx/client/model/MemberResponseTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
import com.google.gson.stream.JsonReader;
2020
import com.google.gson.stream.JsonWriter;
2121
import java.io.IOException;
22+
import java.util.ArrayList;
2223
import java.util.Arrays;
24+
import java.util.List;
2325
import org.openapitools.jackson.nullable.JsonNullable;
2426
import org.junit.jupiter.api.Disabled;
2527
import org.junit.jupiter.api.Test;
@@ -166,6 +168,14 @@ public void successfullyAggregatedAtTest() {
166168
// TODO: test successfullyAggregatedAt
167169
}
168170

171+
/**
172+
* Test the property 'useCases'
173+
*/
174+
@Test
175+
public void useCasesTest() {
176+
// TODO: test useCases
177+
}
178+
169179
/**
170180
* Test the property 'userGuid'
171181
*/

0 commit comments

Comments
 (0)