Skip to content

Commit

Permalink
Merge pull request #11 from mxenabled/bm/add_query_params
Browse files Browse the repository at this point in the history
Add query params
  • Loading branch information
brettmortensen authored Oct 27, 2021
2 parents d975515 + 3c5048c commit 24a7749
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 40 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mvn clean package
```

Then manually install the following JARs:
- `target/mx-platform-java-0.2.2.jar`
- `target/mx-platform-java-0.3.0.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down
28 changes: 22 additions & 6 deletions docs/MxPlatformApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ Name | Type | Description | Notes

<a name="listDefaultCategories"></a>
# **listDefaultCategories**
> CategoriesResponseBody listDefaultCategories(userGuid)
> CategoriesResponseBody listDefaultCategories(userGuid, page, recordsPerPage)
List default categories

Expand Down Expand Up @@ -2161,8 +2161,10 @@ public class Example {

MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
String userGuid = "USR-fa7537f3-48aa-a683-a02a-b18940482f54"; // String | The unique id for a `user`.
Integer page = 1; // Integer | Specify current page.
Integer recordsPerPage = 10; // Integer | Specify records per page.
try {
CategoriesResponseBody result = apiInstance.listDefaultCategories(userGuid);
CategoriesResponseBody result = apiInstance.listDefaultCategories(userGuid, page, recordsPerPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MxPlatformApi#listDefaultCategories");
Expand All @@ -2180,6 +2182,8 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userGuid** | **String**| The unique id for a &#x60;user&#x60;. |
**page** | **Integer**| Specify current page. | [optional]
**recordsPerPage** | **Integer**| Specify records per page. | [optional]

### Return type

Expand Down Expand Up @@ -2497,7 +2501,7 @@ Name | Type | Description | Notes

<a name="listInstitutions"></a>
# **listInstitutions**
> InstitutionsResponseBody listInstitutions(name, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory)
> InstitutionsResponseBody listInstitutions(name, page, recordsPerPage, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory)
List institutions

Expand Down Expand Up @@ -2525,12 +2529,14 @@ public class Example {

MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
String name = "chase"; // String | This will list only institutions in which the appended string appears.
Integer page = 1; // Integer | Specify current page.
Integer recordsPerPage = 10; // Integer | Specify records per page.
Boolean supportsAccountIdentification = true; // Boolean | Filter only institutions which support account identification.
Boolean supportsAccountStatement = true; // Boolean | Filter only institutions which support account statements.
Boolean supportsAccountVerification = true; // Boolean | Filter only institutions which support account verification.
Boolean supportsTransactionHistory = true; // Boolean | Filter only institutions which support extended transaction history.
try {
InstitutionsResponseBody result = apiInstance.listInstitutions(name, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory);
InstitutionsResponseBody result = apiInstance.listInstitutions(name, page, recordsPerPage, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MxPlatformApi#listInstitutions");
Expand All @@ -2548,6 +2554,8 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **String**| This will list only institutions in which the appended string appears. | [optional]
**page** | **Integer**| Specify current page. | [optional]
**recordsPerPage** | **Integer**| Specify records per page. | [optional]
**supportsAccountIdentification** | **Boolean**| Filter only institutions which support account identification. | [optional]
**supportsAccountStatement** | **Boolean**| Filter only institutions which support account statements. | [optional]
**supportsAccountVerification** | **Boolean**| Filter only institutions which support account verification. | [optional]
Expand Down Expand Up @@ -3675,7 +3683,7 @@ Name | Type | Description | Notes

<a name="listTransactionsByTag"></a>
# **listTransactionsByTag**
> TransactionsResponseBody listTransactionsByTag(tagGuid, userGuid)
> TransactionsResponseBody listTransactionsByTag(tagGuid, userGuid, fromDate, page, recordsPerPage, toDate)
List transactions by tag

Expand Down Expand Up @@ -3704,8 +3712,12 @@ public class Example {
MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
String tagGuid = "TAG-aef36e72-6294-4c38-844d-e573e80aed52"; // String | The unique id for a `tag`.
String userGuid = "USR-fa7537f3-48aa-a683-a02a-b18940482f54"; // String | The unique id for a `user`.
String fromDate = "2015-09-20"; // String | Filter transactions from this date.
Integer page = 1; // Integer | Specify current page.
Integer recordsPerPage = 10; // Integer | Specify records per page.
String toDate = "2019-10-20"; // String | Filter transactions to this date.
try {
TransactionsResponseBody result = apiInstance.listTransactionsByTag(tagGuid, userGuid);
TransactionsResponseBody result = apiInstance.listTransactionsByTag(tagGuid, userGuid, fromDate, page, recordsPerPage, toDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MxPlatformApi#listTransactionsByTag");
Expand All @@ -3724,6 +3736,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tagGuid** | **String**| The unique id for a &#x60;tag&#x60;. |
**userGuid** | **String**| The unique id for a &#x60;user&#x60;. |
**fromDate** | **String**| Filter transactions from this date. | [optional]
**page** | **Integer**| Specify current page. | [optional]
**recordsPerPage** | **Integer**| Specify records per page. | [optional]
**toDate** | **String**| Filter transactions to this date. | [optional]

### Return type

Expand Down
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiPackage: "com.mx.client.mx-platform-api"
artifactDescription: "A Java library for the MX Platform API"
artifactId: "mx-platform-java"
artifactUrl: "https://github.com/mxenabled/mx-platform-java"
artifactVersion: 0.2.2
artifactVersion: 0.3.0
developerEmail: "[email protected]"
developerName: "MX"
developerOrganization: "MX Technologies Inc."
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<artifactId>mx-platform-java</artifactId>
<packaging>jar</packaging>
<name>mx-platform-java</name>
<version>0.2.2</version>
<version>0.3.0</version>
<url>https://github.com/mxenabled/mx-platform-java</url>
<description>A Java library for the MX Platform API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mx/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/0.2.2/java");
setUserAgent("OpenAPI-Generator/0.3.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
Loading

0 comments on commit 24a7749

Please sign in to comment.