Skip to content

Commit a752df3

Browse files
author
devexperience
committed
Generated version 1.6.0
This commit was automatically created by a GitHub Action to generate version 1.6.0 of this library.
1 parent 32c4d5a commit a752df3

10 files changed

Lines changed: 52 additions & 30 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-1.5.0.jar`
27+
- `target/mx-platform-java-1.6.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.5.0</version>
38+
<version>1.6.0</version>
3939
<scope>compile</scope>
4040
</dependency>
4141
```

docs/AccountResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
|**paymentDueAtSetBy** | **Integer** | | [optional] |
112112
|**payoffBalance** | **BigDecimal** | | [optional] |
113113
|**payoffBalanceSetBy** | **Integer** | | [optional] |
114-
|**premiumAmount** | **String** | | [optional] |
115-
|**propertyType** | **Integer** | | [optional] |
114+
|**premiumAmount** | **BigDecimal** | | [optional] |
115+
|**propertyType** | **String** | | [optional] |
116116
|**routingNumber** | **String** | | [optional] |
117117
|**startedOn** | **String** | | [optional] |
118118
|**startedOnSetBy** | **Integer** | | [optional] |

docs/MxPlatformApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ All URIs are relative to *https://api.mx.com*
115115

116116
<a id="aggregateMember"></a>
117117
# **aggregateMember**
118-
> MemberResponseBody aggregateMember(memberGuid, userGuid)
118+
> MemberResponseBody aggregateMember(memberGuid, userGuid, includeHoldings, includeTransactions)
119119
120120
Aggregate member
121121

@@ -144,8 +144,10 @@ public class Example {
144144
MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
145145
String memberGuid = "MBR-7c6f361b-e582-15b6-60c0-358f12466b4b"; // String | The unique id for a `member`.
146146
String userGuid = "USR-fa7537f3-48aa-a683-a02a-b18940482f54"; // String | The unique id for a `user`.
147+
Boolean includeHoldings = false; // Boolean | When set to `false`, the aggregation will not gather holdings data. Defaults to `true`.
148+
Boolean includeTransactions = false; // Boolean | When set to `false`, the aggregation will not gather transactions data. Defaults to `true`.
147149
try {
148-
MemberResponseBody result = apiInstance.aggregateMember(memberGuid, userGuid);
150+
MemberResponseBody result = apiInstance.aggregateMember(memberGuid, userGuid, includeHoldings, includeTransactions);
149151
System.out.println(result);
150152
} catch (ApiException e) {
151153
System.err.println("Exception when calling MxPlatformApi#aggregateMember");
@@ -164,6 +166,8 @@ public class Example {
164166
|------------- | ------------- | ------------- | -------------|
165167
| **memberGuid** | **String**| The unique id for a &#x60;member&#x60;. | |
166168
| **userGuid** | **String**| The unique id for a &#x60;user&#x60;. | |
169+
| **includeHoldings** | **Boolean**| When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;. | [optional] |
170+
| **includeTransactions** | **Boolean**| When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;. | [optional] |
167171

168172
### Return type
169173

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

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

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,11 @@ public class AccountResponse {
471471

472472
public static final String SERIALIZED_NAME_PREMIUM_AMOUNT = "premium_amount";
473473
@SerializedName(SERIALIZED_NAME_PREMIUM_AMOUNT)
474-
private String premiumAmount;
474+
private BigDecimal premiumAmount;
475475

476476
public static final String SERIALIZED_NAME_PROPERTY_TYPE = "property_type";
477477
@SerializedName(SERIALIZED_NAME_PROPERTY_TYPE)
478-
private Integer propertyType;
478+
private String propertyType;
479479

480480
public static final String SERIALIZED_NAME_ROUTING_NUMBER = "routing_number";
481481
@SerializedName(SERIALIZED_NAME_ROUTING_NUMBER)
@@ -2732,7 +2732,7 @@ public void setPayoffBalanceSetBy(Integer payoffBalanceSetBy) {
27322732
}
27332733

27342734

2735-
public AccountResponse premiumAmount(String premiumAmount) {
2735+
public AccountResponse premiumAmount(BigDecimal premiumAmount) {
27362736

27372737
this.premiumAmount = premiumAmount;
27382738
return this;
@@ -2743,17 +2743,17 @@ public AccountResponse premiumAmount(String premiumAmount) {
27432743
* @return premiumAmount
27442744
**/
27452745
@javax.annotation.Nullable
2746-
public String getPremiumAmount() {
2746+
public BigDecimal getPremiumAmount() {
27472747
return premiumAmount;
27482748
}
27492749

27502750

2751-
public void setPremiumAmount(String premiumAmount) {
2751+
public void setPremiumAmount(BigDecimal premiumAmount) {
27522752
this.premiumAmount = premiumAmount;
27532753
}
27542754

27552755

2756-
public AccountResponse propertyType(Integer propertyType) {
2756+
public AccountResponse propertyType(String propertyType) {
27572757

27582758
this.propertyType = propertyType;
27592759
return this;
@@ -2764,12 +2764,12 @@ public AccountResponse propertyType(Integer propertyType) {
27642764
* @return propertyType
27652765
**/
27662766
@javax.annotation.Nullable
2767-
public Integer getPropertyType() {
2767+
public String getPropertyType() {
27682768
return propertyType;
27692769
}
27702770

27712771

2772-
public void setPropertyType(Integer propertyType) {
2772+
public void setPropertyType(String propertyType) {
27732773
this.propertyType = propertyType;
27742774
}
27752775

@@ -3670,8 +3670,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
36703670
if ((jsonObj.get("payment_due_at") != null && !jsonObj.get("payment_due_at").isJsonNull()) && !jsonObj.get("payment_due_at").isJsonPrimitive()) {
36713671
throw new IllegalArgumentException(String.format("Expected the field `payment_due_at` to be a primitive type in the JSON string but got `%s`", jsonObj.get("payment_due_at").toString()));
36723672
}
3673-
if ((jsonObj.get("premium_amount") != null && !jsonObj.get("premium_amount").isJsonNull()) && !jsonObj.get("premium_amount").isJsonPrimitive()) {
3674-
throw new IllegalArgumentException(String.format("Expected the field `premium_amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("premium_amount").toString()));
3673+
if ((jsonObj.get("property_type") != null && !jsonObj.get("property_type").isJsonNull()) && !jsonObj.get("property_type").isJsonPrimitive()) {
3674+
throw new IllegalArgumentException(String.format("Expected the field `property_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("property_type").toString()));
36753675
}
36763676
if ((jsonObj.get("routing_number") != null && !jsonObj.get("routing_number").isJsonNull()) && !jsonObj.get("routing_number").isJsonPrimitive()) {
36773677
throw new IllegalArgumentException(String.format("Expected the field `routing_number` to be a primitive type in the JSON string but got `%s`", jsonObj.get("routing_number").toString()));

src/main/java/com/mx/client/mx_platform_api/MxPlatformApi.java

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
148148
* Build call for aggregateMember
149149
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
150150
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
151+
* @param includeHoldings When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;. (optional)
152+
* @param includeTransactions When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;. (optional)
151153
* @param _callback Callback for upload/download progress
152154
* @return Call to execute
153155
* @throws ApiException If fail to serialize the request body object
@@ -157,7 +159,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
157159
<tr><td> 202 </td><td> Accepted </td><td> - </td></tr>
158160
</table>
159161
*/
160-
public okhttp3.Call aggregateMemberCall(String memberGuid, String userGuid, final ApiCallback _callback) throws ApiException {
162+
public okhttp3.Call aggregateMemberCall(String memberGuid, String userGuid, Boolean includeHoldings, Boolean includeTransactions, final ApiCallback _callback) throws ApiException {
161163
String basePath = null;
162164
// Operation Servers
163165
String[] localBasePaths = new String[] { };
@@ -184,6 +186,14 @@ public okhttp3.Call aggregateMemberCall(String memberGuid, String userGuid, fina
184186
Map<String, String> localVarCookieParams = new HashMap<String, String>();
185187
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
186188

189+
if (includeHoldings != null) {
190+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_holdings", includeHoldings));
191+
}
192+
193+
if (includeTransactions != null) {
194+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_transactions", includeTransactions));
195+
}
196+
187197
final String[] localVarAccepts = {
188198
"application/vnd.mx.api.v1+json"
189199
};
@@ -204,7 +214,7 @@ public okhttp3.Call aggregateMemberCall(String memberGuid, String userGuid, fina
204214
}
205215

206216
@SuppressWarnings("rawtypes")
207-
private okhttp3.Call aggregateMemberValidateBeforeCall(String memberGuid, String userGuid, final ApiCallback _callback) throws ApiException {
217+
private okhttp3.Call aggregateMemberValidateBeforeCall(String memberGuid, String userGuid, Boolean includeHoldings, Boolean includeTransactions, final ApiCallback _callback) throws ApiException {
208218
// verify the required parameter 'memberGuid' is set
209219
if (memberGuid == null) {
210220
throw new ApiException("Missing the required parameter 'memberGuid' when calling aggregateMember(Async)");
@@ -215,7 +225,7 @@ private okhttp3.Call aggregateMemberValidateBeforeCall(String memberGuid, String
215225
throw new ApiException("Missing the required parameter 'userGuid' when calling aggregateMember(Async)");
216226
}
217227

218-
return aggregateMemberCall(memberGuid, userGuid, _callback);
228+
return aggregateMemberCall(memberGuid, userGuid, includeHoldings, includeTransactions, _callback);
219229

220230
}
221231

@@ -224,6 +234,8 @@ private okhttp3.Call aggregateMemberValidateBeforeCall(String memberGuid, String
224234
* Calling this endpoint initiates an aggregation event for the member. This brings in the latest account and transaction data from the connected institution. If this data has recently been updated, MX may not initiate an aggregation event.
225235
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
226236
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
237+
* @param includeHoldings When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;. (optional)
238+
* @param includeTransactions When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;. (optional)
227239
* @return MemberResponseBody
228240
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
229241
* @http.response.details
@@ -232,8 +244,8 @@ private okhttp3.Call aggregateMemberValidateBeforeCall(String memberGuid, String
232244
<tr><td> 202 </td><td> Accepted </td><td> - </td></tr>
233245
</table>
234246
*/
235-
public MemberResponseBody aggregateMember(String memberGuid, String userGuid) throws ApiException {
236-
ApiResponse<MemberResponseBody> localVarResp = aggregateMemberWithHttpInfo(memberGuid, userGuid);
247+
public MemberResponseBody aggregateMember(String memberGuid, String userGuid, Boolean includeHoldings, Boolean includeTransactions) throws ApiException {
248+
ApiResponse<MemberResponseBody> localVarResp = aggregateMemberWithHttpInfo(memberGuid, userGuid, includeHoldings, includeTransactions);
237249
return localVarResp.getData();
238250
}
239251

@@ -242,6 +254,8 @@ public MemberResponseBody aggregateMember(String memberGuid, String userGuid) th
242254
* Calling this endpoint initiates an aggregation event for the member. This brings in the latest account and transaction data from the connected institution. If this data has recently been updated, MX may not initiate an aggregation event.
243255
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
244256
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
257+
* @param includeHoldings When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;. (optional)
258+
* @param includeTransactions When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;. (optional)
245259
* @return ApiResponse&lt;MemberResponseBody&gt;
246260
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
247261
* @http.response.details
@@ -250,8 +264,8 @@ public MemberResponseBody aggregateMember(String memberGuid, String userGuid) th
250264
<tr><td> 202 </td><td> Accepted </td><td> - </td></tr>
251265
</table>
252266
*/
253-
public ApiResponse<MemberResponseBody> aggregateMemberWithHttpInfo(String memberGuid, String userGuid) throws ApiException {
254-
okhttp3.Call localVarCall = aggregateMemberValidateBeforeCall(memberGuid, userGuid, null);
267+
public ApiResponse<MemberResponseBody> aggregateMemberWithHttpInfo(String memberGuid, String userGuid, Boolean includeHoldings, Boolean includeTransactions) throws ApiException {
268+
okhttp3.Call localVarCall = aggregateMemberValidateBeforeCall(memberGuid, userGuid, includeHoldings, includeTransactions, null);
255269
Type localVarReturnType = new TypeToken<MemberResponseBody>(){}.getType();
256270
return localVarApiClient.execute(localVarCall, localVarReturnType);
257271
}
@@ -261,6 +275,8 @@ public ApiResponse<MemberResponseBody> aggregateMemberWithHttpInfo(String member
261275
* Calling this endpoint initiates an aggregation event for the member. This brings in the latest account and transaction data from the connected institution. If this data has recently been updated, MX may not initiate an aggregation event.
262276
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
263277
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
278+
* @param includeHoldings When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;. (optional)
279+
* @param includeTransactions When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;. (optional)
264280
* @param _callback The callback to be executed when the API call finishes
265281
* @return The request call
266282
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -270,9 +286,9 @@ public ApiResponse<MemberResponseBody> aggregateMemberWithHttpInfo(String member
270286
<tr><td> 202 </td><td> Accepted </td><td> - </td></tr>
271287
</table>
272288
*/
273-
public okhttp3.Call aggregateMemberAsync(String memberGuid, String userGuid, final ApiCallback<MemberResponseBody> _callback) throws ApiException {
289+
public okhttp3.Call aggregateMemberAsync(String memberGuid, String userGuid, Boolean includeHoldings, Boolean includeTransactions, final ApiCallback<MemberResponseBody> _callback) throws ApiException {
274290

275-
okhttp3.Call localVarCall = aggregateMemberValidateBeforeCall(memberGuid, userGuid, _callback);
291+
okhttp3.Call localVarCall = aggregateMemberValidateBeforeCall(memberGuid, userGuid, includeHoldings, includeTransactions, _callback);
276292
Type localVarReturnType = new TypeToken<MemberResponseBody>(){}.getType();
277293
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
278294
return localVarCall;

src/test/java/com/mx/client/mx_platform_api/MxPlatformApiTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ public class MxPlatformApiTest {
114114
public void aggregateMemberTest() throws ApiException {
115115
String memberGuid = null;
116116
String userGuid = null;
117-
MemberResponseBody response = api.aggregateMember(memberGuid, userGuid);
117+
Boolean includeHoldings = null;
118+
Boolean includeTransactions = null;
119+
MemberResponseBody response = api.aggregateMember(memberGuid, userGuid, includeHoldings, includeTransactions);
118120
// TODO: test validations
119121
}
120122

0 commit comments

Comments
 (0)