Skip to content

Commit cc4b49a

Browse files
Update library
Updates library with version `5.3.0` of the openapi generator and recent updates to our OpenAPI spec here: mxenabled/openapi#51
1 parent 57f2cc3 commit cc4b49a

60 files changed

Lines changed: 477 additions & 197 deletions

File tree

Some content is hidden

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

.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

pom.xml

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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();

src/main/java/com/mx/client/model/AccountOwnerResponse.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
* AccountOwnerResponse
@@ -377,11 +378,22 @@ public boolean equals(Object o) {
377378
Objects.equals(this.userGuid, accountOwnerResponse.userGuid);
378379
}
379380

381+
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
382+
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
383+
}
384+
380385
@Override
381386
public int hashCode() {
382387
return Objects.hash(accountGuid, address, city, country, email, guid, memberGuid, ownerName, phone, postalCode, state, userGuid);
383388
}
384389

390+
private static <T> int hashCodeNullable(JsonNullable<T> a) {
391+
if (a == null) {
392+
return 1;
393+
}
394+
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
395+
}
396+
385397
@Override
386398
public String toString() {
387399
StringBuilder sb = new StringBuilder();

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
2626
import java.math.BigDecimal;
27+
import org.openapitools.jackson.nullable.JsonNullable;
2728

2829
/**
2930
* AccountResponse
@@ -1358,11 +1359,22 @@ public boolean equals(Object o) {
13581359
Objects.equals(this.userId, accountResponse.userId);
13591360
}
13601361

1362+
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
1363+
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
1364+
}
1365+
13611366
@Override
13621367
public int hashCode() {
13631368
return Objects.hash(accountNumber, apr, apy, availableBalance, availableCredit, balance, cashBalance, cashSurrenderValue, createdAt, creditLimit, currencyCode, dayPaymentIsDue, deathBenefit, guid, holdingsValue, id, importedAt, institutionCode, insuredName, interestRate, isClosed, isHidden, lastPayment, lastPaymentAt, loanAmount, maturesOn, memberGuid, memberId, memberIsManagedByUser, metadata, minimumBalance, minimumPayment, name, nickname, originalBalance, payOutAmount, paymentDueAt, payoffBalance, premiumAmount, routingNumber, startedOn, subtype, totalAccountValue, type, updatedAt, userGuid, userId);
13641369
}
13651370

1371+
private static <T> int hashCodeNullable(JsonNullable<T> a) {
1372+
if (a == null) {
1373+
return 1;
1374+
}
1375+
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
1376+
}
1377+
13661378
@Override
13671379
public String toString() {
13681380
StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)