Skip to content

Commit e62bab3

Browse files
author
devexperience
committed
Generated version 0.18.0
This commit was automatically created by a GitHub Action to generate version 0.18.0 of this library.
1 parent c555de9 commit e62bab3

File tree

10 files changed

+67
-18
lines changed

10 files changed

+67
-18
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-0.17.0.jar`
27+
- `target/mx-platform-java-0.18.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.17.0</version>
38+
<version>0.18.0</version>
3939
<scope>compile</scope>
4040
</dependency>
4141
```

docs/MemberCreateRequestBody.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**clientRedirectUrl** | **String** | | [optional]
11+
**enableApp2app** | **Boolean** | | [optional]
1112
**member** | [**MemberCreateRequest**](MemberCreateRequest.md) | | [optional]
1213
**referralSource** | **String** | | [optional]
1314
**uiMessageWebviewUrlScheme** | **String** | | [optional]

docs/MxPlatformApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6119,7 +6119,7 @@ Name | Type | Description | Notes
61196119

61206120
<a name="requestOAuthWindowURI"></a>
61216121
# **requestOAuthWindowURI**
6122-
> OAuthWindowResponseBody requestOAuthWindowURI(memberGuid, userGuid, clientRedirectUrl, referralSource, skipAggregation, uiMessageWebviewUrlScheme)
6122+
> OAuthWindowResponseBody requestOAuthWindowURI(memberGuid, userGuid, clientRedirectUrl, enableApp2app, referralSource, skipAggregation, uiMessageWebviewUrlScheme)
61236123
61246124
Request oauth window uri
61256125

@@ -6149,11 +6149,12 @@ public class Example {
61496149
String memberGuid = "MBR-7c6f361b-e582-15b6-60c0-358f12466b4b"; // String | The unique id for a `member`.
61506150
String userGuid = "USR-fa7537f3-48aa-a683-a02a-b18940482f54"; // String | The unique id for a `user`.
61516151
String clientRedirectUrl = "https://mx.com"; // String | A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with `referral_source=APP`.
6152+
String enableApp2app = "false"; // String | This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to `true`. This setting is not persistent.
61526153
String referralSource = "APP"; // String | Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
61536154
Boolean skipAggregation = false; // Boolean | Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
61546155
String uiMessageWebviewUrlScheme = "mx"; // String | A scheme for routing the user back to the application state they were previously in. Only available with `referral_source=APP`.
61556156
try {
6156-
OAuthWindowResponseBody result = apiInstance.requestOAuthWindowURI(memberGuid, userGuid, clientRedirectUrl, referralSource, skipAggregation, uiMessageWebviewUrlScheme);
6157+
OAuthWindowResponseBody result = apiInstance.requestOAuthWindowURI(memberGuid, userGuid, clientRedirectUrl, enableApp2app, referralSource, skipAggregation, uiMessageWebviewUrlScheme);
61576158
System.out.println(result);
61586159
} catch (ApiException e) {
61596160
System.err.println("Exception when calling MxPlatformApi#requestOAuthWindowURI");
@@ -6173,6 +6174,7 @@ Name | Type | Description | Notes
61736174
**memberGuid** | **String**| The unique id for a &#x60;member&#x60;. |
61746175
**userGuid** | **String**| The unique id for a &#x60;user&#x60;. |
61756176
**clientRedirectUrl** | **String**| A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with &#x60;referral_source&#x3D;APP&#x60;. | [optional]
6177+
**enableApp2app** | **String**| This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to &#x60;true&#x60;. This setting is not persistent. | [optional]
61766178
**referralSource** | **String**| Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;. | [optional]
61776179
**skipAggregation** | **Boolean**| Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page. | [optional]
61786180
**uiMessageWebviewUrlScheme** | **String**| A scheme for routing the user back to the application state they were previously in. Only available with &#x60;referral_source&#x3D;APP&#x60;. | [optional]

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.17.0
6+
artifactVersion: 0.18.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.17.0</version>
8+
<version>0.18.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
@@ -131,7 +131,7 @@ private void init() {
131131
json = new JSON();
132132

133133
// Set default User-Agent.
134-
setUserAgent("OpenAPI-Generator/0.17.0/java");
134+
setUserAgent("OpenAPI-Generator/0.18.0/java");
135135

136136
authentications = new HashMap<String, Authentication>();
137137
}

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public class MemberCreateRequestBody {
3434
@SerializedName(SERIALIZED_NAME_CLIENT_REDIRECT_URL)
3535
private String clientRedirectUrl;
3636

37+
public static final String SERIALIZED_NAME_ENABLE_APP2APP = "enable_app2app";
38+
@SerializedName(SERIALIZED_NAME_ENABLE_APP2APP)
39+
private Boolean enableApp2app;
40+
3741
public static final String SERIALIZED_NAME_MEMBER = "member";
3842
@SerializedName(SERIALIZED_NAME_MEMBER)
3943
private MemberCreateRequest member;
@@ -72,6 +76,29 @@ public void setClientRedirectUrl(String clientRedirectUrl) {
7276
}
7377

7478

79+
public MemberCreateRequestBody enableApp2app(Boolean enableApp2app) {
80+
81+
this.enableApp2app = enableApp2app;
82+
return this;
83+
}
84+
85+
/**
86+
* Get enableApp2app
87+
* @return enableApp2app
88+
**/
89+
@javax.annotation.Nullable
90+
@ApiModelProperty(example = "false", value = "")
91+
92+
public Boolean getEnableApp2app() {
93+
return enableApp2app;
94+
}
95+
96+
97+
public void setEnableApp2app(Boolean enableApp2app) {
98+
this.enableApp2app = enableApp2app;
99+
}
100+
101+
75102
public MemberCreateRequestBody member(MemberCreateRequest member) {
76103

77104
this.member = member;
@@ -151,21 +178,23 @@ public boolean equals(Object o) {
151178
}
152179
MemberCreateRequestBody memberCreateRequestBody = (MemberCreateRequestBody) o;
153180
return Objects.equals(this.clientRedirectUrl, memberCreateRequestBody.clientRedirectUrl) &&
181+
Objects.equals(this.enableApp2app, memberCreateRequestBody.enableApp2app) &&
154182
Objects.equals(this.member, memberCreateRequestBody.member) &&
155183
Objects.equals(this.referralSource, memberCreateRequestBody.referralSource) &&
156184
Objects.equals(this.uiMessageWebviewUrlScheme, memberCreateRequestBody.uiMessageWebviewUrlScheme);
157185
}
158186

159187
@Override
160188
public int hashCode() {
161-
return Objects.hash(clientRedirectUrl, member, referralSource, uiMessageWebviewUrlScheme);
189+
return Objects.hash(clientRedirectUrl, enableApp2app, member, referralSource, uiMessageWebviewUrlScheme);
162190
}
163191

164192
@Override
165193
public String toString() {
166194
StringBuilder sb = new StringBuilder();
167195
sb.append("class MemberCreateRequestBody {\n");
168196
sb.append(" clientRedirectUrl: ").append(toIndentedString(clientRedirectUrl)).append("\n");
197+
sb.append(" enableApp2app: ").append(toIndentedString(enableApp2app)).append("\n");
169198
sb.append(" member: ").append(toIndentedString(member)).append("\n");
170199
sb.append(" referralSource: ").append(toIndentedString(referralSource)).append("\n");
171200
sb.append(" uiMessageWebviewUrlScheme: ").append(toIndentedString(uiMessageWebviewUrlScheme)).append("\n");

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12212,6 +12212,7 @@ public okhttp3.Call requestConnectWidgetURLAsync(String userGuid, ConnectWidgetR
1221212212
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
1221312213
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
1221412214
* @param clientRedirectUrl A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
12215+
* @param enableApp2app This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to &#x60;true&#x60;. This setting is not persistent. (optional)
1221512216
* @param referralSource Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;. (optional)
1221612217
* @param skipAggregation Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page. (optional)
1221712218
* @param uiMessageWebviewUrlScheme A scheme for routing the user back to the application state they were previously in. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
@@ -12224,7 +12225,7 @@ public okhttp3.Call requestConnectWidgetURLAsync(String userGuid, ConnectWidgetR
1222412225
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
1222512226
</table>
1222612227
*/
12227-
public okhttp3.Call requestOAuthWindowURICall(String memberGuid, String userGuid, String clientRedirectUrl, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme, final ApiCallback _callback) throws ApiException {
12228+
public okhttp3.Call requestOAuthWindowURICall(String memberGuid, String userGuid, String clientRedirectUrl, String enableApp2app, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme, final ApiCallback _callback) throws ApiException {
1222812229
String basePath = null;
1222912230

1223012231
// Operation Servers
@@ -12256,6 +12257,10 @@ public okhttp3.Call requestOAuthWindowURICall(String memberGuid, String userGuid
1225612257
localVarQueryParams.addAll(localVarApiClient.parameterToPair("client_redirect_url", clientRedirectUrl));
1225712258
}
1225812259

12260+
if (enableApp2app != null) {
12261+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("enable_app2app", enableApp2app));
12262+
}
12263+
1225912264
if (referralSource != null) {
1226012265
localVarQueryParams.addAll(localVarApiClient.parameterToPair("referral_source", referralSource));
1226112266
}
@@ -12289,7 +12294,7 @@ public okhttp3.Call requestOAuthWindowURICall(String memberGuid, String userGuid
1228912294
}
1229012295

1229112296
@SuppressWarnings("rawtypes")
12292-
private okhttp3.Call requestOAuthWindowURIValidateBeforeCall(String memberGuid, String userGuid, String clientRedirectUrl, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme, final ApiCallback _callback) throws ApiException {
12297+
private okhttp3.Call requestOAuthWindowURIValidateBeforeCall(String memberGuid, String userGuid, String clientRedirectUrl, String enableApp2app, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme, final ApiCallback _callback) throws ApiException {
1229312298

1229412299
// verify the required parameter 'memberGuid' is set
1229512300
if (memberGuid == null) {
@@ -12302,7 +12307,7 @@ private okhttp3.Call requestOAuthWindowURIValidateBeforeCall(String memberGuid,
1230212307
}
1230312308

1230412309

12305-
okhttp3.Call localVarCall = requestOAuthWindowURICall(memberGuid, userGuid, clientRedirectUrl, referralSource, skipAggregation, uiMessageWebviewUrlScheme, _callback);
12310+
okhttp3.Call localVarCall = requestOAuthWindowURICall(memberGuid, userGuid, clientRedirectUrl, enableApp2app, referralSource, skipAggregation, uiMessageWebviewUrlScheme, _callback);
1230612311
return localVarCall;
1230712312

1230812313
}
@@ -12313,6 +12318,7 @@ private okhttp3.Call requestOAuthWindowURIValidateBeforeCall(String memberGuid,
1231312318
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
1231412319
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
1231512320
* @param clientRedirectUrl A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
12321+
* @param enableApp2app This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to &#x60;true&#x60;. This setting is not persistent. (optional)
1231612322
* @param referralSource Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;. (optional)
1231712323
* @param skipAggregation Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page. (optional)
1231812324
* @param uiMessageWebviewUrlScheme A scheme for routing the user back to the application state they were previously in. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
@@ -12324,8 +12330,8 @@ private okhttp3.Call requestOAuthWindowURIValidateBeforeCall(String memberGuid,
1232412330
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
1232512331
</table>
1232612332
*/
12327-
public OAuthWindowResponseBody requestOAuthWindowURI(String memberGuid, String userGuid, String clientRedirectUrl, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme) throws ApiException {
12328-
ApiResponse<OAuthWindowResponseBody> localVarResp = requestOAuthWindowURIWithHttpInfo(memberGuid, userGuid, clientRedirectUrl, referralSource, skipAggregation, uiMessageWebviewUrlScheme);
12333+
public OAuthWindowResponseBody requestOAuthWindowURI(String memberGuid, String userGuid, String clientRedirectUrl, String enableApp2app, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme) throws ApiException {
12334+
ApiResponse<OAuthWindowResponseBody> localVarResp = requestOAuthWindowURIWithHttpInfo(memberGuid, userGuid, clientRedirectUrl, enableApp2app, referralSource, skipAggregation, uiMessageWebviewUrlScheme);
1232912335
return localVarResp.getData();
1233012336
}
1233112337

@@ -12335,6 +12341,7 @@ public OAuthWindowResponseBody requestOAuthWindowURI(String memberGuid, String u
1233512341
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
1233612342
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
1233712343
* @param clientRedirectUrl A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
12344+
* @param enableApp2app This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to &#x60;true&#x60;. This setting is not persistent. (optional)
1233812345
* @param referralSource Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;. (optional)
1233912346
* @param skipAggregation Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page. (optional)
1234012347
* @param uiMessageWebviewUrlScheme A scheme for routing the user back to the application state they were previously in. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
@@ -12346,8 +12353,8 @@ public OAuthWindowResponseBody requestOAuthWindowURI(String memberGuid, String u
1234612353
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
1234712354
</table>
1234812355
*/
12349-
public ApiResponse<OAuthWindowResponseBody> requestOAuthWindowURIWithHttpInfo(String memberGuid, String userGuid, String clientRedirectUrl, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme) throws ApiException {
12350-
okhttp3.Call localVarCall = requestOAuthWindowURIValidateBeforeCall(memberGuid, userGuid, clientRedirectUrl, referralSource, skipAggregation, uiMessageWebviewUrlScheme, null);
12356+
public ApiResponse<OAuthWindowResponseBody> requestOAuthWindowURIWithHttpInfo(String memberGuid, String userGuid, String clientRedirectUrl, String enableApp2app, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme) throws ApiException {
12357+
okhttp3.Call localVarCall = requestOAuthWindowURIValidateBeforeCall(memberGuid, userGuid, clientRedirectUrl, enableApp2app, referralSource, skipAggregation, uiMessageWebviewUrlScheme, null);
1235112358
Type localVarReturnType = new TypeToken<OAuthWindowResponseBody>(){}.getType();
1235212359
return localVarApiClient.execute(localVarCall, localVarReturnType);
1235312360
}
@@ -12358,6 +12365,7 @@ public ApiResponse<OAuthWindowResponseBody> requestOAuthWindowURIWithHttpInfo(St
1235812365
* @param memberGuid The unique id for a &#x60;member&#x60;. (required)
1235912366
* @param userGuid The unique id for a &#x60;user&#x60;. (required)
1236012367
* @param clientRedirectUrl A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
12368+
* @param enableApp2app This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to &#x60;true&#x60;. This setting is not persistent. (optional)
1236112369
* @param referralSource Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;. (optional)
1236212370
* @param skipAggregation Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page. (optional)
1236312371
* @param uiMessageWebviewUrlScheme A scheme for routing the user back to the application state they were previously in. Only available with &#x60;referral_source&#x3D;APP&#x60;. (optional)
@@ -12370,9 +12378,9 @@ public ApiResponse<OAuthWindowResponseBody> requestOAuthWindowURIWithHttpInfo(St
1237012378
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
1237112379
</table>
1237212380
*/
12373-
public okhttp3.Call requestOAuthWindowURIAsync(String memberGuid, String userGuid, String clientRedirectUrl, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme, final ApiCallback<OAuthWindowResponseBody> _callback) throws ApiException {
12381+
public okhttp3.Call requestOAuthWindowURIAsync(String memberGuid, String userGuid, String clientRedirectUrl, String enableApp2app, String referralSource, Boolean skipAggregation, String uiMessageWebviewUrlScheme, final ApiCallback<OAuthWindowResponseBody> _callback) throws ApiException {
1237412382

12375-
okhttp3.Call localVarCall = requestOAuthWindowURIValidateBeforeCall(memberGuid, userGuid, clientRedirectUrl, referralSource, skipAggregation, uiMessageWebviewUrlScheme, _callback);
12383+
okhttp3.Call localVarCall = requestOAuthWindowURIValidateBeforeCall(memberGuid, userGuid, clientRedirectUrl, enableApp2app, referralSource, skipAggregation, uiMessageWebviewUrlScheme, _callback);
1237612384
Type localVarReturnType = new TypeToken<OAuthWindowResponseBody>(){}.getType();
1237712385
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
1237812386
return localVarCall;

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ public void clientRedirectUrlTest() {
4949
// TODO: test clientRedirectUrl
5050
}
5151

52+
/**
53+
* Test the property 'enableApp2app'
54+
*/
55+
@Test
56+
public void enableApp2appTest() {
57+
// TODO: test enableApp2app
58+
}
59+
5260
/**
5361
* Test the property 'member'
5462
*/

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,10 +1525,11 @@ public void requestOAuthWindowURITest() throws ApiException {
15251525
String memberGuid = null;
15261526
String userGuid = null;
15271527
String clientRedirectUrl = null;
1528+
String enableApp2app = null;
15281529
String referralSource = null;
15291530
Boolean skipAggregation = null;
15301531
String uiMessageWebviewUrlScheme = null;
1531-
OAuthWindowResponseBody response = api.requestOAuthWindowURI(memberGuid, userGuid, clientRedirectUrl, referralSource, skipAggregation, uiMessageWebviewUrlScheme);
1532+
OAuthWindowResponseBody response = api.requestOAuthWindowURI(memberGuid, userGuid, clientRedirectUrl, enableApp2app, referralSource, skipAggregation, uiMessageWebviewUrlScheme);
15321533
// TODO: test validations
15331534
}
15341535

0 commit comments

Comments
 (0)