Skip to content

Commit 24a7749

Browse files
Merge pull request #11 from mxenabled/bm/add_query_params
Add query params
2 parents d975515 + 3c5048c commit 24a7749

7 files changed

Lines changed: 128 additions & 40 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mvn clean package
2828
```
2929

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

3434
## Getting Started

docs/MxPlatformApi.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@ Name | Type | Description | Notes
21332133

21342134
<a name="listDefaultCategories"></a>
21352135
# **listDefaultCategories**
2136-
> CategoriesResponseBody listDefaultCategories(userGuid)
2136+
> CategoriesResponseBody listDefaultCategories(userGuid, page, recordsPerPage)
21372137
21382138
List default categories
21392139

@@ -2161,8 +2161,10 @@ public class Example {
21612161

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

21842188
### Return type
21852189

@@ -2497,7 +2501,7 @@ Name | Type | Description | Notes
24972501

24982502
<a name="listInstitutions"></a>
24992503
# **listInstitutions**
2500-
> InstitutionsResponseBody listInstitutions(name, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory)
2504+
> InstitutionsResponseBody listInstitutions(name, page, recordsPerPage, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory)
25012505
25022506
List institutions
25032507

@@ -2525,12 +2529,14 @@ public class Example {
25252529

25262530
MxPlatformApi apiInstance = new MxPlatformApi(defaultClient);
25272531
String name = "chase"; // String | This will list only institutions in which the appended string appears.
2532+
Integer page = 1; // Integer | Specify current page.
2533+
Integer recordsPerPage = 10; // Integer | Specify records per page.
25282534
Boolean supportsAccountIdentification = true; // Boolean | Filter only institutions which support account identification.
25292535
Boolean supportsAccountStatement = true; // Boolean | Filter only institutions which support account statements.
25302536
Boolean supportsAccountVerification = true; // Boolean | Filter only institutions which support account verification.
25312537
Boolean supportsTransactionHistory = true; // Boolean | Filter only institutions which support extended transaction history.
25322538
try {
2533-
InstitutionsResponseBody result = apiInstance.listInstitutions(name, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory);
2539+
InstitutionsResponseBody result = apiInstance.listInstitutions(name, page, recordsPerPage, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory);
25342540
System.out.println(result);
25352541
} catch (ApiException e) {
25362542
System.err.println("Exception when calling MxPlatformApi#listInstitutions");
@@ -2548,6 +2554,8 @@ public class Example {
25482554
Name | Type | Description | Notes
25492555
------------- | ------------- | ------------- | -------------
25502556
**name** | **String**| This will list only institutions in which the appended string appears. | [optional]
2557+
**page** | **Integer**| Specify current page. | [optional]
2558+
**recordsPerPage** | **Integer**| Specify records per page. | [optional]
25512559
**supportsAccountIdentification** | **Boolean**| Filter only institutions which support account identification. | [optional]
25522560
**supportsAccountStatement** | **Boolean**| Filter only institutions which support account statements. | [optional]
25532561
**supportsAccountVerification** | **Boolean**| Filter only institutions which support account verification. | [optional]
@@ -3675,7 +3683,7 @@ Name | Type | Description | Notes
36753683

36763684
<a name="listTransactionsByTag"></a>
36773685
# **listTransactionsByTag**
3678-
> TransactionsResponseBody listTransactionsByTag(tagGuid, userGuid)
3686+
> TransactionsResponseBody listTransactionsByTag(tagGuid, userGuid, fromDate, page, recordsPerPage, toDate)
36793687
36803688
List transactions by tag
36813689

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

37283744
### Return type
37293745

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiPackage: "com.mx.client.mx-platform-api"
22
artifactDescription: "A Java library for the MX Platform API"
33
artifactId: "mx-platform-java"
44
artifactUrl: "https://github.com/mxenabled/mx-platform-java"
5-
artifactVersion: 0.2.2
5+
artifactVersion: 0.3.0
66
developerEmail: "devexperience@mx.com"
77
developerName: "MX"
88
developerOrganization: "MX Technologies Inc."

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
55
<artifactId>mx-platform-java</artifactId>
66
<packaging>jar</packaging>
77
<name>mx-platform-java</name>
8-
<version>0.2.2</version>
8+
<version>0.3.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
@@ -125,7 +125,7 @@ private void init() {
125125
json = new JSON();
126126

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

130130
authentications = new HashMap<String, Authentication>();
131131
}

0 commit comments

Comments
 (0)