Skip to content

Commit 5af8542

Browse files
Merge pull request #21 from mxenabled/bm/update_library
Update library
2 parents 57f2cc3 + 944c62b commit 5af8542

File tree

62 files changed

+483
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+483
-203
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Set up JDK 1.8
12+
- name: Set up JDK 11
1313
uses: actions/setup-java@v2
1414
with:
1515
distribution: 'adopt'
16-
java-version: '8'
16+
java-version: '11'
1717

1818
- name: Build with Maven
1919
run: mvn -B package --file pom.xml
@@ -22,15 +22,15 @@ jobs:
2222
uses: actions/setup-java@v2
2323
with:
2424
distribution: 'adopt'
25-
java-version: '8'
25+
java-version: '11'
2626
server-id: ossrh
2727
server-username: MAVEN_USERNAME
2828
server-password: MAVEN_PASSWORD
2929
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
3030
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3131

3232
- name: Publish to Maven Central
33-
run: mvn -DskipTests deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }}
33+
run: mvn --no-transfer-progress -B -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} clean deploy
3434
env:
3535
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3636
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.2.1
1+
5.3.0

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech).*
44

5-
# MX Platform Java - v0.3.2
5+
# MX Platform Java - v0.3.3
66

77
The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions.
88

@@ -28,7 +28,7 @@ mvn clean package
2828
```
2929

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

3434
### Maven users
@@ -39,7 +39,7 @@ Add this dependency to your project's POM:
3939
<dependency>
4040
<groupId>com.mx</groupId>
4141
<artifactId>mx-platform-java</artifactId>
42-
<version>0.3.2</version>
42+
<version>0.3.3</version>
4343
<scope>compile</scope>
4444
</dependency>
4545
```

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.3.2
5+
artifactVersion: 0.3.3
66
developerEmail: "devexperience@mx.com"
77
developerName: "MX"
88
developerOrganization: "MX Technologies Inc."

pom.xml

Lines changed: 45 additions & 15 deletions
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.3.2</version>
8+
<version>0.3.3</version>
99
<url>https://github.com/mxenabled/mx-platform-java</url>
1010
<description>A Java library for the MX Platform API</description>
1111
<scm>
@@ -31,23 +31,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
3131
</developer>
3232
</developers>
3333

34-
<distributionManagement>
35-
<snapshotRepository>
36-
<id>ossrh</id>
37-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
38-
</snapshotRepository>
39-
<repository>
40-
<id>ossrh</id>
41-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
42-
</repository>
43-
</distributionManagement>
44-
4534
<build>
4635
<plugins>
4736
<plugin>
4837
<groupId>org.sonatype.plugins</groupId>
4938
<artifactId>nexus-staging-maven-plugin</artifactId>
50-
<version>1.6.8</version>
39+
<version>1.6.7</version>
5140
<extensions>true</extensions>
5241
<configuration>
5342
<serverId>ossrh</serverId>
@@ -58,7 +47,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
5847
<plugin>
5948
<groupId>org.apache.maven.plugins</groupId>
6049
<artifactId>maven-gpg-plugin</artifactId>
61-
<version>3.0.1</version>
50+
<version>1.5</version>
6251
<executions>
6352
<execution>
6453
<id>sign-artifacts</id>
@@ -227,6 +216,47 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
227216
</plugins>
228217
</build>
229218

219+
<distributionManagement>
220+
<snapshotRepository>
221+
<id>ossrh</id>
222+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
223+
</snapshotRepository>
224+
<repository>
225+
<id>ossrh</id>
226+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
227+
</repository>
228+
</distributionManagement>
229+
230+
<profiles>
231+
<profile>
232+
<id>sign-artifacts</id>
233+
<build>
234+
<plugins>
235+
<plugin>
236+
<groupId>org.apache.maven.plugins</groupId>
237+
<artifactId>maven-gpg-plugin</artifactId>
238+
<version>1.5</version>
239+
<executions>
240+
<execution>
241+
<id>sign-artifacts</id>
242+
<phase>verify</phase>
243+
<goals>
244+
<goal>sign</goal>
245+
</goals>
246+
</execution>
247+
</executions>
248+
<configuration>
249+
<gpgArguments>
250+
<arg>--pinentry-mode</arg>
251+
<arg>loopback</arg>
252+
</gpgArguments>
253+
</configuration>
254+
</plugin>
255+
</plugins>
256+
</build>
257+
</profile>
258+
</profiles>
259+
230260
<dependencies>
231261
<dependency>
232262
<groupId>io.swagger</groupId>
@@ -295,7 +325,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
295325
</dependency>
296326
</dependencies>
297327
<properties>
298-
<java.version>1.8</java.version>
328+
<java.version>1.7</java.version>
299329
<maven.compiler.source>${java.version}</maven.compiler.source>
300330
<maven.compiler.target>${java.version}</maven.compiler.target>
301331
<gson-fire-version>1.8.5</gson-fire-version>

src/main/java/com/mx/client/ApiCallback.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ public interface ApiCallback<T> {
5252
void onUploadProgress(long bytesWritten, long contentLength, boolean done);
5353

5454
/**
55-
* This is called when the API downlond processing.
55+
* This is called when the API download processing.
5656
*
5757
* @param bytesRead bytes Read
58-
* @param contentLength content lenngth of the response
58+
* @param contentLength content length of the response
5959
* @param done Read end
6060
*/
6161
void onDownloadProgress(long bytesRead, long contentLength, boolean done);

src/main/java/com/mx/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
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.3.2/java");
128+
setUserAgent("OpenAPI-Generator/0.3.3/java");
129129

130130
authentications = new HashMap<String, Authentication>();
131131
}
@@ -441,7 +441,7 @@ public ApiClient setDebugging(boolean debugging) {
441441
/**
442442
* The path of temporary folder used to store downloaded files from endpoints
443443
* with file response. The default value is <code>null</code>, i.e. using
444-
* the system's default tempopary folder.
444+
* the system's default temporary folder.
445445
*
446446
* @see <a href="https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#createTempFile(java.lang.String,%20java.lang.String,%20java.nio.file.attribute.FileAttribute...)">createTempFile</a>
447447
* @return Temporary folder path

src/main/java/com/mx/client/ProgressResponseBody.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,3 @@ public long read(Buffer sink, long byteCount) throws IOException {
6868
};
6969
}
7070
}
71-
72-

src/main/java/com/mx/client/ServerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ServerConfiguration {
1212

1313
/**
1414
* @param URL A URL to the target host.
15-
* @param description A describtion of the host designated by the URL.
15+
* @param description A description of the host designated by the URL.
1616
* @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template.
1717
*/
1818
public ServerConfiguration(String URL, String description, Map<String, ServerVariable> variables) {

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import io.swagger.annotations.ApiModel;
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
26+
import org.openapitools.jackson.nullable.JsonNullable;
2627

2728
/**
2829
* AccountNumberResponse
@@ -265,11 +266,22 @@ public boolean equals(Object o) {
265266
Objects.equals(this.userGuid, accountNumberResponse.userGuid);
266267
}
267268

269+
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
270+
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
271+
}
272+
268273
@Override
269274
public int hashCode() {
270275
return Objects.hash(accountGuid, accountNumber, guid, institutionNumber, memberGuid, routingNumber, transitNumber, userGuid);
271276
}
272277

278+
private static <T> int hashCodeNullable(JsonNullable<T> a) {
279+
if (a == null) {
280+
return 1;
281+
}
282+
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
283+
}
284+
273285
@Override
274286
public String toString() {
275287
StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)