Skip to content

Commit 614b146

Browse files
author
devexperience
committed
Generated version 0.20.0
This commit was automatically created by a GitHub Action to generate version 0.20.0 of this library.
1 parent ba8a0f3 commit 614b146

8 files changed

Lines changed: 37 additions & 37 deletions

File tree

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-0.19.1.jar`
27+
- `target/mx-platform-java-0.20.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>0.19.1</version>
38+
<version>0.20.0</version>
3939
<scope>compile</scope>
4040
</dependency>
4141
```

docs/SpendingPlansResponseBody.md

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

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**iterationItems** | [**List&lt;SpendingPlanResponse&gt;**](SpendingPlanResponse.md) | | [optional] |
10+
|**spendingPlans** | [**List&lt;SpendingPlanResponse&gt;**](SpendingPlanResponse.md) | | [optional] |
1111
|**pagination** | [**PaginationResponse**](PaginationResponse.md) | | [optional] |
1212

1313

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: 0.19.1
6+
artifactVersion: 0.20.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>0.19.1</version>
8+
<version>0.20.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/0.19.1/java");
148+
setUserAgent("OpenAPI-Generator/0.20.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 = "0.19.1";
18+
public static final String VERSION = "0.20.0";
1919

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

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
*/
5656
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
5757
public class SpendingPlansResponseBody {
58-
public static final String SERIALIZED_NAME_ITERATION_ITEMS = "iteration_items";
59-
@SerializedName(SERIALIZED_NAME_ITERATION_ITEMS)
60-
private List<SpendingPlanResponse> iterationItems;
58+
public static final String SERIALIZED_NAME_SPENDING_PLANS = "spending_plans";
59+
@SerializedName(SERIALIZED_NAME_SPENDING_PLANS)
60+
private List<SpendingPlanResponse> spendingPlans;
6161

6262
public static final String SERIALIZED_NAME_PAGINATION = "pagination";
6363
@SerializedName(SERIALIZED_NAME_PAGINATION)
@@ -66,32 +66,32 @@ public class SpendingPlansResponseBody {
6666
public SpendingPlansResponseBody() {
6767
}
6868

69-
public SpendingPlansResponseBody iterationItems(List<SpendingPlanResponse> iterationItems) {
69+
public SpendingPlansResponseBody spendingPlans(List<SpendingPlanResponse> spendingPlans) {
7070

71-
this.iterationItems = iterationItems;
71+
this.spendingPlans = spendingPlans;
7272
return this;
7373
}
7474

75-
public SpendingPlansResponseBody addIterationItemsItem(SpendingPlanResponse iterationItemsItem) {
76-
if (this.iterationItems == null) {
77-
this.iterationItems = new ArrayList<>();
75+
public SpendingPlansResponseBody addSpendingPlansItem(SpendingPlanResponse spendingPlansItem) {
76+
if (this.spendingPlans == null) {
77+
this.spendingPlans = new ArrayList<>();
7878
}
79-
this.iterationItems.add(iterationItemsItem);
79+
this.spendingPlans.add(spendingPlansItem);
8080
return this;
8181
}
8282

8383
/**
84-
* Get iterationItems
85-
* @return iterationItems
84+
* Get spendingPlans
85+
* @return spendingPlans
8686
**/
8787
@javax.annotation.Nullable
88-
public List<SpendingPlanResponse> getIterationItems() {
89-
return iterationItems;
88+
public List<SpendingPlanResponse> getSpendingPlans() {
89+
return spendingPlans;
9090
}
9191

9292

93-
public void setIterationItems(List<SpendingPlanResponse> iterationItems) {
94-
this.iterationItems = iterationItems;
93+
public void setSpendingPlans(List<SpendingPlanResponse> spendingPlans) {
94+
this.spendingPlans = spendingPlans;
9595
}
9696

9797

@@ -126,20 +126,20 @@ public boolean equals(Object o) {
126126
return false;
127127
}
128128
SpendingPlansResponseBody spendingPlansResponseBody = (SpendingPlansResponseBody) o;
129-
return Objects.equals(this.iterationItems, spendingPlansResponseBody.iterationItems) &&
129+
return Objects.equals(this.spendingPlans, spendingPlansResponseBody.spendingPlans) &&
130130
Objects.equals(this.pagination, spendingPlansResponseBody.pagination);
131131
}
132132

133133
@Override
134134
public int hashCode() {
135-
return Objects.hash(iterationItems, pagination);
135+
return Objects.hash(spendingPlans, pagination);
136136
}
137137

138138
@Override
139139
public String toString() {
140140
StringBuilder sb = new StringBuilder();
141141
sb.append("class SpendingPlansResponseBody {\n");
142-
sb.append(" iterationItems: ").append(toIndentedString(iterationItems)).append("\n");
142+
sb.append(" spendingPlans: ").append(toIndentedString(spendingPlans)).append("\n");
143143
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
144144
sb.append("}");
145145
return sb.toString();
@@ -163,7 +163,7 @@ private String toIndentedString(Object o) {
163163
static {
164164
// a set of all properties/fields (JSON key names)
165165
openapiFields = new HashSet<String>();
166-
openapiFields.add("iteration_items");
166+
openapiFields.add("spending_plans");
167167
openapiFields.add("pagination");
168168

169169
// a set of required properties/fields (JSON key names)
@@ -191,17 +191,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
191191
}
192192
}
193193
JsonObject jsonObj = jsonElement.getAsJsonObject();
194-
if (jsonObj.get("iteration_items") != null && !jsonObj.get("iteration_items").isJsonNull()) {
195-
JsonArray jsonArrayiterationItems = jsonObj.getAsJsonArray("iteration_items");
196-
if (jsonArrayiterationItems != null) {
194+
if (jsonObj.get("spending_plans") != null && !jsonObj.get("spending_plans").isJsonNull()) {
195+
JsonArray jsonArrayspendingPlans = jsonObj.getAsJsonArray("spending_plans");
196+
if (jsonArrayspendingPlans != null) {
197197
// ensure the json data is an array
198-
if (!jsonObj.get("iteration_items").isJsonArray()) {
199-
throw new IllegalArgumentException(String.format("Expected the field `iteration_items` to be an array in the JSON string but got `%s`", jsonObj.get("iteration_items").toString()));
198+
if (!jsonObj.get("spending_plans").isJsonArray()) {
199+
throw new IllegalArgumentException(String.format("Expected the field `spending_plans` to be an array in the JSON string but got `%s`", jsonObj.get("spending_plans").toString()));
200200
}
201201

202-
// validate the optional field `iteration_items` (array)
203-
for (int i = 0; i < jsonArrayiterationItems.size(); i++) {
204-
SpendingPlanResponse.validateJsonElement(jsonArrayiterationItems.get(i));
202+
// validate the optional field `spending_plans` (array)
203+
for (int i = 0; i < jsonArrayspendingPlans.size(); i++) {
204+
SpendingPlanResponse.validateJsonElement(jsonArrayspendingPlans.get(i));
205205
};
206206
}
207207
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public void testSpendingPlansResponseBody() {
4242
}
4343

4444
/**
45-
* Test the property 'iterationItems'
45+
* Test the property 'spendingPlans'
4646
*/
4747
@Test
48-
public void iterationItemsTest() {
49-
// TODO: test iterationItems
48+
public void spendingPlansTest() {
49+
// TODO: test spendingPlans
5050
}
5151

5252
/**

0 commit comments

Comments
 (0)