Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second batch of test and functionality updates #40

Merged
merged 5 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ p.setNumber("5555555555");
p.setCountryCode("1");
attr.setPhone(p);
attr.setIdempotencyKey("3a1a33be-4e12-4603-9ed0-820922389fb8");
attr.setOccupation(Occupation.ARCHITECTORENGINEER);
attr.setOccupation(Occupation.ARCHITECT_OR_ENGINEER);

createIndividualApplication.setAttributes(attr);

Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ ext {
jackson_version = "2.14.1"
jakarta_annotation_version = "2.1.1"
junit_version = "4.13.2"
httpmime_version = "4.5.13"
}

dependencies {
Expand All @@ -134,6 +135,8 @@ dependencies {
implementation "org.openapitools:jackson-databind-nullable:0.2.1"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
implementation "org.apache.httpcomponents:httpmime:$httpmime_version"
implementation "commons-io:commons-io:2.5"
testImplementation "junit:junit:$junit_version"
}

Expand Down Expand Up @@ -169,6 +172,10 @@ spotless {
}

test {
testLogging {
showStandardStreams = true
}

useJUnit()
}
// // Enable JUnit 5 (Gradle 4.6+).
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@
<version>${jakarta-annotation-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>${httpmime-version}</version>
</dependency>

<!-- test dependencies -->
<dependency>
Expand All @@ -253,5 +258,6 @@
<jakarta-annotation-version>2.1.1</jakarta-annotation-version>
<junit-version>4.13.2</junit-version>
<spotless.version>2.27.2</spotless.version>
<httpmime-version>4.5.14</httpmime-version>
</properties>
</project>
4 changes: 2 additions & 2 deletions src/main/java/unit/java/sdk/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* <p>The setter methods of this class return the current object to facilitate
* a fluent style of configuration.</p>
*/
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiClient {

private HttpClient.Builder builder;
Expand All @@ -66,7 +66,7 @@ public class ApiClient {
private Duration readTimeout;
private Duration connectTimeout;

private static String valueToString(Object value) {
public static String valueToString(Object value) {
if (value == null) {
return "";
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import java.net.http.HttpHeaders;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/ApiResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @param <T> The type of data that is deserialized from response body
*/
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiResponse<T> {
final private int statusCode;
final private Map<String, List<String>> headers;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package unit.java.sdk;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Configuration {
public static final String VERSION = "0.1.0";

Expand Down
19 changes: 16 additions & 3 deletions src/main/java/unit/java/sdk/JSON.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package unit.java.sdk;

import com.fasterxml.jackson.annotation.*;
Expand All @@ -13,15 +26,15 @@
import java.util.Map;
import java.util.Set;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class JSON {
private ObjectMapper mapper;

public JSON() {
mapper = JsonMapper.builder()
.serializationInclusion(JsonInclude.Include.NON_NULL)
.disable(MapperFeature.ALLOW_COERCION_OF_SCALARS)
.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE)
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING)
Expand Down Expand Up @@ -69,7 +82,7 @@ public static Class<?> getClassForElement(JsonNode node, Class<?> modelClass) {
/**
* Helper class to register the discriminator mappings.
*/
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
private static class ClassDiscriminatorMapping {
// The model class name.
Class<?> modelClass;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package unit.java.sdk;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/RFC3339DateFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.GregorianCalendar;
import java.util.TimeZone;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class RFC3339DateFormat extends DateFormat {
private static final long serialVersionUID = 1L;
private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");
Expand Down
15 changes: 14 additions & 1 deletion src/main/java/unit/java/sdk/ServerConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
/*
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package unit.java.sdk;

import java.util.Map;

/**
* Representing a Server configuration.
*/
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ServerConfiguration {
public String URL;
public String description;
Expand Down
15 changes: 14 additions & 1 deletion src/main/java/unit/java/sdk/ServerVariable.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
/*
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package unit.java.sdk;

import java.util.HashSet;

/**
* Representing a Server Variable for server URL template substitution.
*/
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ServerVariable {
public String description;
public String defaultValue;
Expand Down
158 changes: 0 additions & 158 deletions src/main/java/unit/java/sdk/api/RepaymentInformationApi.java

This file was deleted.

Loading
Loading