Skip to content

Commit cf5efde

Browse files
Merge pull request #44 from mxenabled/openapi-generator-0.8.0
Generated version 0.8.0
2 parents 3e0e124 + 07159aa commit cf5efde

29 files changed

+2252
-5
lines changed

.openapi-generator/FILES

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ docs/OAuthWindowResponse.md
6969
docs/OAuthWindowResponseBody.md
7070
docs/OptionResponse.md
7171
docs/PaginationResponse.md
72+
docs/PaymentAccountResponse.md
73+
docs/PaymentAccountResponseBody.md
74+
docs/PaymentProcessorAuthorizationCodeRequest.md
75+
docs/PaymentProcessorAuthorizationCodeRequestBody.md
76+
docs/PaymentProcessorAuthorizationCodeResponse.md
77+
docs/PaymentProcessorAuthorizationCodeResponseBody.md
78+
docs/PaymentProcessorTokenResponseBody.md
7279
docs/StatementResponse.md
7380
docs/StatementResponseBody.md
7481
docs/StatementsResponseBody.md
@@ -196,6 +203,13 @@ src/main/java/com/mx/client/model/OAuthWindowResponse.java
196203
src/main/java/com/mx/client/model/OAuthWindowResponseBody.java
197204
src/main/java/com/mx/client/model/OptionResponse.java
198205
src/main/java/com/mx/client/model/PaginationResponse.java
206+
src/main/java/com/mx/client/model/PaymentAccountResponse.java
207+
src/main/java/com/mx/client/model/PaymentAccountResponseBody.java
208+
src/main/java/com/mx/client/model/PaymentProcessorAuthorizationCodeRequest.java
209+
src/main/java/com/mx/client/model/PaymentProcessorAuthorizationCodeRequestBody.java
210+
src/main/java/com/mx/client/model/PaymentProcessorAuthorizationCodeResponse.java
211+
src/main/java/com/mx/client/model/PaymentProcessorAuthorizationCodeResponseBody.java
212+
src/main/java/com/mx/client/model/PaymentProcessorTokenResponseBody.java
199213
src/main/java/com/mx/client/model/StatementResponse.java
200214
src/main/java/com/mx/client/model/StatementResponseBody.java
201215
src/main/java/com/mx/client/model/StatementsResponseBody.java
@@ -305,6 +319,13 @@ src/test/java/com/mx/client/model/OAuthWindowResponseBodyTest.java
305319
src/test/java/com/mx/client/model/OAuthWindowResponseTest.java
306320
src/test/java/com/mx/client/model/OptionResponseTest.java
307321
src/test/java/com/mx/client/model/PaginationResponseTest.java
322+
src/test/java/com/mx/client/model/PaymentAccountResponseBodyTest.java
323+
src/test/java/com/mx/client/model/PaymentAccountResponseTest.java
324+
src/test/java/com/mx/client/model/PaymentProcessorAuthorizationCodeRequestBodyTest.java
325+
src/test/java/com/mx/client/model/PaymentProcessorAuthorizationCodeRequestTest.java
326+
src/test/java/com/mx/client/model/PaymentProcessorAuthorizationCodeResponseBodyTest.java
327+
src/test/java/com/mx/client/model/PaymentProcessorAuthorizationCodeResponseTest.java
328+
src/test/java/com/mx/client/model/PaymentProcessorTokenResponseBodyTest.java
308329
src/test/java/com/mx/client/model/StatementResponseBodyTest.java
309330
src/test/java/com/mx/client/model/StatementResponseTest.java
310331
src/test/java/com/mx/client/model/StatementsResponseBodyTest.java

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

docs/MxPlatformApi.md

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ Method | HTTP request | Description
7979
[**readUser**](MxPlatformApi.md#readUser) | **GET** /users/{user_guid} | Read user
8080
[**requestConnectWidgetURL**](MxPlatformApi.md#requestConnectWidgetURL) | **POST** /users/{user_guid}/connect_widget_url | Request connect widget url
8181
[**requestOAuthWindowURI**](MxPlatformApi.md#requestOAuthWindowURI) | **GET** /users/{user_guid}/members/{member_guid}/oauth_window_uri | Request oauth window uri
82+
[**requestPaymentAccount**](MxPlatformApi.md#requestPaymentAccount) | **GET** /payment_account | Request payment account
83+
[**requestPaymentProcessorAuthorizationCode**](MxPlatformApi.md#requestPaymentProcessorAuthorizationCode) | **POST** /payment_processor_authorization_code | Request payment processor authorization code
84+
[**requestPaymentProcessorToken**](MxPlatformApi.md#requestPaymentProcessorToken) | **POST** /payment_processor_token | Request payment processor token
8285
[**requestWidgetURL**](MxPlatformApi.md#requestWidgetURL) | **POST** /users/{user_guid}/widget_urls | Request widget url
8386
[**resumeAggregation**](MxPlatformApi.md#resumeAggregation) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation
8487
[**updateAccountByMember**](MxPlatformApi.md#updateAccountByMember) | **PUT** /users/{user_guid}/members/{member_guid}/accounts/{account_guid} | Update account by member
@@ -5462,6 +5465,207 @@ Name | Type | Description | Notes
54625465
|-------------|-------------|------------------|
54635466
**200** | OK | - |
54645467

5468+
<a name="requestPaymentAccount"></a>
5469+
# **requestPaymentAccount**
5470+
> PaymentAccountResponseBody requestPaymentAccount()
5471+
5472+
Request payment account
5473+
5474+
Use this endpoint to request a payment account.
5475+
5476+
### Example
5477+
```java
5478+
// Import classes:
5479+
import com.mx.client.ApiClient;
5480+
import com.mx.client.ApiException;
5481+
import com.mx.client.Configuration;
5482+
import com.mx.client.auth.*;
5483+
import com.mx.client.models.*;
5484+
import com.mx.client.mx_platform_api.MxPlatformApi;
5485+
5486+
public class Example {
5487+
public static void main(String[] args) {
5488+
ApiClient defaultClient = Configuration.getDefaultApiClient();
5489+
defaultClient.setBasePath("https://api.mx.com");
5490+
5491+
// Configure HTTP bearer authorization: bearerAuth
5492+
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
5493+
bearerAuth.setBearerToken("BEARER TOKEN");
5494+
5495+
MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
5496+
try {
5497+
PaymentAccountResponseBody result = apiInstance.requestPaymentAccount();
5498+
System.out.println(result);
5499+
} catch (ApiException e) {
5500+
System.err.println("Exception when calling MxPlatformApi#requestPaymentAccount");
5501+
System.err.println("Status code: " + e.getCode());
5502+
System.err.println("Reason: " + e.getResponseBody());
5503+
System.err.println("Response headers: " + e.getResponseHeaders());
5504+
e.printStackTrace();
5505+
}
5506+
}
5507+
}
5508+
```
5509+
5510+
### Parameters
5511+
This endpoint does not need any parameter.
5512+
5513+
### Return type
5514+
5515+
[**PaymentAccountResponseBody**](PaymentAccountResponseBody.md)
5516+
5517+
### Authorization
5518+
5519+
[bearerAuth](../README.md#bearerAuth)
5520+
5521+
### HTTP request headers
5522+
5523+
- **Content-Type**: Not defined
5524+
- **Accept**: application/vnd.mx.api.v1+json
5525+
5526+
### HTTP response details
5527+
| Status code | Description | Response headers |
5528+
|-------------|-------------|------------------|
5529+
**200** | OK | - |
5530+
5531+
<a name="requestPaymentProcessorAuthorizationCode"></a>
5532+
# **requestPaymentProcessorAuthorizationCode**
5533+
> PaymentProcessorAuthorizationCodeResponseBody requestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody)
5534+
5535+
Request payment processor authorization code
5536+
5537+
Use this endpoint to request a payment processor authorization code.
5538+
5539+
### Example
5540+
```java
5541+
// Import classes:
5542+
import com.mx.client.ApiClient;
5543+
import com.mx.client.ApiException;
5544+
import com.mx.client.Configuration;
5545+
import com.mx.client.auth.*;
5546+
import com.mx.client.models.*;
5547+
import com.mx.client.mx_platform_api.MxPlatformApi;
5548+
5549+
public class Example {
5550+
public static void main(String[] args) {
5551+
ApiClient defaultClient = Configuration.getDefaultApiClient();
5552+
defaultClient.setBasePath("https://api.mx.com");
5553+
5554+
// Configure HTTP basic authorization: basicAuth
5555+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
5556+
basicAuth.setUsername("YOUR USERNAME");
5557+
basicAuth.setPassword("YOUR PASSWORD");
5558+
5559+
MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
5560+
PaymentProcessorAuthorizationCodeRequestBody paymentProcessorAuthorizationCodeRequestBody = new PaymentProcessorAuthorizationCodeRequestBody(); // PaymentProcessorAuthorizationCodeRequestBody | Payment processor authorization code object containing account_guid, member_guid, and user_guid.
5561+
try {
5562+
PaymentProcessorAuthorizationCodeResponseBody result = apiInstance.requestPaymentProcessorAuthorizationCode(paymentProcessorAuthorizationCodeRequestBody);
5563+
System.out.println(result);
5564+
} catch (ApiException e) {
5565+
System.err.println("Exception when calling MxPlatformApi#requestPaymentProcessorAuthorizationCode");
5566+
System.err.println("Status code: " + e.getCode());
5567+
System.err.println("Reason: " + e.getResponseBody());
5568+
System.err.println("Response headers: " + e.getResponseHeaders());
5569+
e.printStackTrace();
5570+
}
5571+
}
5572+
}
5573+
```
5574+
5575+
### Parameters
5576+
5577+
Name | Type | Description | Notes
5578+
------------- | ------------- | ------------- | -------------
5579+
**paymentProcessorAuthorizationCodeRequestBody** | [**PaymentProcessorAuthorizationCodeRequestBody**](PaymentProcessorAuthorizationCodeRequestBody.md)| Payment processor authorization code object containing account_guid, member_guid, and user_guid. |
5580+
5581+
### Return type
5582+
5583+
[**PaymentProcessorAuthorizationCodeResponseBody**](PaymentProcessorAuthorizationCodeResponseBody.md)
5584+
5585+
### Authorization
5586+
5587+
[basicAuth](../README.md#basicAuth)
5588+
5589+
### HTTP request headers
5590+
5591+
- **Content-Type**: application/json
5592+
- **Accept**: application/vnd.mx.api.v1+json
5593+
5594+
### HTTP response details
5595+
| Status code | Description | Response headers |
5596+
|-------------|-------------|------------------|
5597+
**200** | OK | - |
5598+
5599+
<a name="requestPaymentProcessorToken"></a>
5600+
# **requestPaymentProcessorToken**
5601+
> PaymentProcessorTokenResponseBody requestPaymentProcessorToken(code, grantType)
5602+
5603+
Request payment processor token
5604+
5605+
Use this endpoint to request a payment processor token.
5606+
5607+
### Example
5608+
```java
5609+
// Import classes:
5610+
import com.mx.client.ApiClient;
5611+
import com.mx.client.ApiException;
5612+
import com.mx.client.Configuration;
5613+
import com.mx.client.auth.*;
5614+
import com.mx.client.models.*;
5615+
import com.mx.client.mx_platform_api.MxPlatformApi;
5616+
5617+
public class Example {
5618+
public static void main(String[] args) {
5619+
ApiClient defaultClient = Configuration.getDefaultApiClient();
5620+
defaultClient.setBasePath("https://api.mx.com");
5621+
5622+
// Configure HTTP basic authorization: basicAuth
5623+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
5624+
basicAuth.setUsername("YOUR USERNAME");
5625+
basicAuth.setPassword("YOUR PASSWORD");
5626+
5627+
MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
5628+
String code = "sN3Ffd1nJg_iwEMuxcEo2Z5taC0RvMilfvYKsnM2XGM"; // String | Code to request processor token.
5629+
String grantType = "authorization_code"; // String | Specify grant type.
5630+
try {
5631+
PaymentProcessorTokenResponseBody result = apiInstance.requestPaymentProcessorToken(code, grantType);
5632+
System.out.println(result);
5633+
} catch (ApiException e) {
5634+
System.err.println("Exception when calling MxPlatformApi#requestPaymentProcessorToken");
5635+
System.err.println("Status code: " + e.getCode());
5636+
System.err.println("Reason: " + e.getResponseBody());
5637+
System.err.println("Response headers: " + e.getResponseHeaders());
5638+
e.printStackTrace();
5639+
}
5640+
}
5641+
}
5642+
```
5643+
5644+
### Parameters
5645+
5646+
Name | Type | Description | Notes
5647+
------------- | ------------- | ------------- | -------------
5648+
**code** | **String**| Code to request processor token. | [optional]
5649+
**grantType** | **String**| Specify grant type. | [optional]
5650+
5651+
### Return type
5652+
5653+
[**PaymentProcessorTokenResponseBody**](PaymentProcessorTokenResponseBody.md)
5654+
5655+
### Authorization
5656+
5657+
[basicAuth](../README.md#basicAuth)
5658+
5659+
### HTTP request headers
5660+
5661+
- **Content-Type**: Not defined
5662+
- **Accept**: application/vnd.mx.api.v1+json
5663+
5664+
### HTTP response details
5665+
| Status code | Description | Response headers |
5666+
|-------------|-------------|------------------|
5667+
**200** | OK | - |
5668+
54655669
<a name="requestWidgetURL"></a>
54665670
# **requestWidgetURL**
54675671
> WidgetResponseBody requestWidgetURL(userGuid, widgetRequestBody, acceptLanguage)

docs/PaymentAccountResponse.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
3+
# PaymentAccountResponse
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**accountName** | **String** | | [optional]
11+
**accountNumber** | **String** | | [optional]
12+
**accountType** | **String** | | [optional]
13+
**availableBalance** | **BigDecimal** | | [optional]
14+
**balance** | **BigDecimal** | | [optional]
15+
**routingNumber** | **String** | | [optional]
16+
**transitNumber** | **String** | | [optional]
17+
18+
19+

docs/PaymentAccountResponseBody.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# PaymentAccountResponseBody
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**paymentAccount** | [**PaymentAccountResponse**](PaymentAccountResponse.md) | | [optional]
11+
12+
13+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# PaymentProcessorAuthorizationCodeRequest
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**accountGuid** | **String** | | [optional]
11+
**memberGuid** | **String** | | [optional]
12+
**userGuid** | **String** | | [optional]
13+
14+
15+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# PaymentProcessorAuthorizationCodeRequestBody
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**paymentProcessorAuthorizationCode** | [**PaymentProcessorAuthorizationCodeRequest**](PaymentProcessorAuthorizationCodeRequest.md) | | [optional]
11+
12+
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# PaymentProcessorAuthorizationCodeResponse
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**authorizationCode** | **String** | | [optional]
11+
12+
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# PaymentProcessorAuthorizationCodeResponseBody
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**paymentProcessorAuthorizationCode** | [**PaymentProcessorAuthorizationCodeResponse**](PaymentProcessorAuthorizationCodeResponse.md) | | [optional]
11+
12+
13+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# PaymentProcessorTokenResponseBody
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**accessToken** | **String** | | [optional]
11+
**scope** | **String** | | [optional]
12+
**tokenType** | **String** | | [optional]
13+
14+
15+

0 commit comments

Comments
 (0)