diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index b25e87f..28a968d 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - java: [ '8', '11', '17', '21' ] + java: [ '11', '17', '21' ] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6dc1528..71b9c6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: with: appId: ${{ vars.APP_ID }} language: java - language-version: '8' - java-version: '8' + language-version: '11' + java-version: '11' secrets: APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index add8c84..36f14e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: name: Java ${{ matrix.Java }} strategy: matrix: - java: [ '8', '11', '17', '21' ] + java: [ '11', '17', '21' ] steps: - uses: actions/checkout@v4 diff --git a/docs/BotdDetectionResult.md b/docs/BotdDetectionResult.md index 3f2a118..0dc0f05 100644 --- a/docs/BotdDetectionResult.md +++ b/docs/BotdDetectionResult.md @@ -16,7 +16,7 @@ Stores bot detection result | Name | Value | |---- | ----- | -| NOTDETECTED | "notDetected" | +| NOT_DETECTED | "notDetected" | | GOOD | "good" | | BAD | "bad" | diff --git a/docs/BotdResult.md b/docs/BotdResult.md index b93e78f..fae7c66 100644 --- a/docs/BotdResult.md +++ b/docs/BotdResult.md @@ -9,7 +9,7 @@ Contains all the information from Bot Detection product | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**ip** | **String** | IP address of the requesting browser or bot. | | -|**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible | | +|**time** | **OffsetDateTime** | Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible | | |**url** | **String** | Page URL from which identification request was sent. | | |**userAgent** | **String** | | | |**requestId** | **String** | | | diff --git a/docs/Common403ErrorResponse.md b/docs/Common403ErrorResponse.md index 7690bf3..c1ebd3c 100644 --- a/docs/Common403ErrorResponse.md +++ b/docs/Common403ErrorResponse.md @@ -15,11 +15,11 @@ | Name | Value | |---- | ----- | -| TOKENREQUIRED | "TokenRequired" | -| TOKENNOTFOUND | "TokenNotFound" | -| SUBSCRIPTIONNOTACTIVE | "SubscriptionNotActive" | -| WRONGREGION | "WrongRegion" | -| FEATURENOTENABLED | "FeatureNotEnabled" | +| TOKEN_REQUIRED | "TokenRequired" | +| TOKEN_NOT_FOUND | "TokenNotFound" | +| SUBSCRIPTION_NOT_ACTIVE | "SubscriptionNotActive" | +| WRONG_REGION | "WrongRegion" | +| FEATURE_NOT_ENABLED | "FeatureNotEnabled" | diff --git a/docs/ErrorCommon429ResponseError.md b/docs/ErrorCommon429ResponseError.md index 6ee7f27..cb5e2af 100644 --- a/docs/ErrorCommon429ResponseError.md +++ b/docs/ErrorCommon429ResponseError.md @@ -15,7 +15,7 @@ | Name | Value | |---- | ----- | -| TOOMANYREQUESTS | "TooManyRequests" | +| TOO_MANY_REQUESTS | "TooManyRequests" | diff --git a/docs/ErrorEvent404ResponseError.md b/docs/ErrorEvent404ResponseError.md index e1dd468..f880640 100644 --- a/docs/ErrorEvent404ResponseError.md +++ b/docs/ErrorEvent404ResponseError.md @@ -15,7 +15,7 @@ | Name | Value | |---- | ----- | -| REQUESTNOTFOUND | "RequestNotFound" | +| REQUEST_NOT_FOUND | "RequestNotFound" | diff --git a/docs/ErrorVisitsDelete400ResponseError.md b/docs/ErrorVisitsDelete400ResponseError.md index e83f5b1..580820c 100644 --- a/docs/ErrorVisitsDelete400ResponseError.md +++ b/docs/ErrorVisitsDelete400ResponseError.md @@ -15,7 +15,7 @@ | Name | Value | |---- | ----- | -| REQUESTCANNOTBEPARSED | "RequestCannotBeParsed" | +| REQUEST_CANNOT_BE_PARSED | "RequestCannotBeParsed" | diff --git a/docs/ErrorVisitsDelete404ResponseError.md b/docs/ErrorVisitsDelete404ResponseError.md index 14b718c..1f805a7 100644 --- a/docs/ErrorVisitsDelete404ResponseError.md +++ b/docs/ErrorVisitsDelete404ResponseError.md @@ -15,7 +15,7 @@ | Name | Value | |---- | ----- | -| VISITORNOTFOUND | "VisitorNotFound" | +| VISITOR_NOT_FOUND | "VisitorNotFound" | diff --git a/docs/FactoryResetResult.md b/docs/FactoryResetResult.md index 8bb4543..766035f 100644 --- a/docs/FactoryResetResult.md +++ b/docs/FactoryResetResult.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. | | +|**time** | **OffsetDateTime** | Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. | | |**timestamp** | **Long** | Same value as it's in the `time` field but represented in timestamp format. | | diff --git a/docs/ProductError.md b/docs/ProductError.md index 59f0ab8..7c6d8f5 100644 --- a/docs/ProductError.md +++ b/docs/ProductError.md @@ -15,7 +15,7 @@ | Name | Value | |---- | ----- | -| TOOMANYREQUESTS | "TooManyRequests" | +| TOO_MANY_REQUESTS | "TooManyRequests" | | FAILED | "Failed" | diff --git a/docs/ProductsResponseIdentificationData.md b/docs/ProductsResponseIdentificationData.md index 536000c..169c35b 100644 --- a/docs/ProductsResponseIdentificationData.md +++ b/docs/ProductsResponseIdentificationData.md @@ -13,7 +13,7 @@ |**ip** | **String** | | | |**ipLocation** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] | |**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | -|**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time expressed according to ISO 8601 in UTC format. | | +|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format. | | |**url** | **String** | Page URL from which the identification request was sent. | | |**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | |**linkedId** | **String** | A customer-provided id that was sent with identification request. | [optional] | diff --git a/docs/ResponseVisits.md b/docs/ResponseVisits.md index 8296eea..42707f1 100644 --- a/docs/ResponseVisits.md +++ b/docs/ResponseVisits.md @@ -13,7 +13,7 @@ |**ip** | **String** | | | |**ipLocation** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] | |**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | -|**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time expressed according to ISO 8601 in UTC format. | | +|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format. | | |**url** | **String** | Page URL from which the identification request was sent. | | |**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | |**linkedId** | **String** | A customer-provided id that was sent with identification request. | [optional] | diff --git a/docs/SeenAt.md b/docs/SeenAt.md index 759d671..83b0a1e 100644 --- a/docs/SeenAt.md +++ b/docs/SeenAt.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**global** | [**OffsetDateTime**](OffsetDateTime.md) | | | -|**subscription** | [**OffsetDateTime**](OffsetDateTime.md) | | | +|**global** | **OffsetDateTime** | | | +|**subscription** | **OffsetDateTime** | | | diff --git a/docs/Visit.md b/docs/Visit.md index cb7ee12..aac5e07 100644 --- a/docs/Visit.md +++ b/docs/Visit.md @@ -13,7 +13,7 @@ |**ip** | **String** | | | |**ipLocation** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] | |**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | -|**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time expressed according to ISO 8601 in UTC format. | | +|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format. | | |**url** | **String** | Page URL from which the identification request was sent. | | |**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | |**linkedId** | **String** | A customer-provided id that was sent with identification request. | [optional] | diff --git a/docs/WebhookVisit.md b/docs/WebhookVisit.md index 3ff2383..739613d 100644 --- a/docs/WebhookVisit.md +++ b/docs/WebhookVisit.md @@ -35,7 +35,7 @@ |**ip** | **String** | | | |**ipLocation** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] | |**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | -|**time** | [**OffsetDateTime**](OffsetDateTime.md) | Time expressed according to ISO 8601 in UTC format. | | +|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format. | | |**url** | **String** | Page URL from which the identification request was sent. | | |**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | |**linkedId** | **String** | A customer-provided id that was sent with identification request. | [optional] | diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index fa16861..dc11a97 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,12 +1,12 @@ [versions] jackson = "2.17.2" jackson-databind-nullable = "0.2.6" -jersey = "2.43" -jsr305 = "3.0.2" +jakarta-annotation-api = "2.0.0" +jersey = "3.1.7" junit = "5.10.2" mockito = "3.12.4" -openapi = "6.2.0" -swagger-annotations = "1.6.14" +openapi = "7.7.0" +swagger-annotations = "2.2.22" [libraries] jackson-annotations = { module = "com.fasterxml.jackson.core:jackson-annotations", version.ref = "jackson" } @@ -14,7 +14,7 @@ jackson-core = { module = "com.fasterxml.jackson.core:jackson-core", version.ref jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" } jackson-databind-nullable = { module = "org.openapitools:jackson-databind-nullable", version.ref = "jackson-databind-nullable" } jackson-jsr310 = { module = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", version.ref = "jackson" } -jsr305 = { module = "com.google.code.findbugs:jsr305", version.ref = "jsr305" } +jakarta-annotation-api = { module = "jakarta.annotation:jakarta.annotation-api", version.ref = "jakarta-annotation-api" } jersey-apache-connector = { module = "org.glassfish.jersey.connectors:jersey-apache-connector", version.ref = "jersey" } jersey-client = { module = "org.glassfish.jersey.core:jersey-client", version.ref = "jersey" } jersey-hk2 = { module = "org.glassfish.jersey.inject:jersey-hk2", version.ref = "jersey" } @@ -23,7 +23,7 @@ jersey-media-json = { module = "org.glassfish.jersey.media:jersey-media-json-jac junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" } junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit" } mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" } -swagger-annotations = { module = "io.swagger:swagger-annotations", version.ref = "swagger-annotations" } +swagger-annotations = { module = "io.swagger.core.v3:swagger-annotations", version.ref = "swagger-annotations" } [plugins] openapi-generator = { id = "org.openapi.generator", version.ref = "openapi" } \ No newline at end of file diff --git a/scripts/generate.sh b/scripts/generate.sh index e8e442f..7a9daed 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -21,4 +21,4 @@ echo "VERSION: $VERSION" sed -i "s/projectVersion: .*/projectVersion: $VERSION/g" gradle.properties sed -i "s/^VERSION=.*/VERSION='$VERSION'/g" ./scripts/generate.sh -./gradlew openApiGenerate copyDocs removeWrongDocumentationLinks jar test \ No newline at end of file +./gradlew build test diff --git a/sdk/sdk.gradle.kts b/sdk/sdk.gradle.kts index 12e74de..7cc36ca 100644 --- a/sdk/sdk.gradle.kts +++ b/sdk/sdk.gradle.kts @@ -29,7 +29,6 @@ publishing { dependencies { implementation(libs.swagger.annotations) - implementation(libs.jsr305) api(libs.jersey.client) api(libs.jersey.hk2) api(libs.jersey.media.json) @@ -40,6 +39,7 @@ dependencies { api(libs.jackson.databind) api(libs.jackson.databind.nullable) api(libs.jackson.jsr310) + api(libs.jakarta.annotation.api) testImplementation(libs.junit.jupiter.api) testRuntimeOnly(libs.junit.jupiter.engine) testImplementation(libs.mockito) @@ -63,7 +63,7 @@ openApiGenerate { apiPackage.set("com.fingerprint.api") modelPackage.set("com.fingerprint.model") invokerPackage.set("com.fingerprint.sdk") - library.set("jersey2") + library.set("jersey3") templateDir.set("$rootDir/template") gitHost.set("github.com") diff --git a/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java b/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java index 58a22ab..ace0a79 100644 --- a/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java +++ b/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java @@ -7,7 +7,7 @@ import com.fingerprint.sdk.Pair; import com.fingerprint.sdk.Region; -import javax.ws.rs.core.GenericType; +import jakarta.ws.rs.core.GenericType; import com.fingerprint.model.ErrorCommon403Response; import com.fingerprint.model.ErrorCommon429Response; @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FingerprintApi { public static final String INTEGRATION_INFO = "fingerprint-pro-server-java-sdk/5.1.1"; private ApiClient apiClient; diff --git a/sdk/src/main/java/com/fingerprint/model/ASN.java b/sdk/src/main/java/com/fingerprint/model/ASN.java index 17b8f3c..8a9c56e 100644 --- a/sdk/src/main/java/com/fingerprint/model/ASN.java +++ b/sdk/src/main/java/com/fingerprint/model/ASN.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ASN */ + + @JsonPropertyOrder({ ASN.JSON_PROPERTY_ASN, ASN.JSON_PROPERTY_NETWORK, ASN.JSON_PROPERTY_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ASN { public static final String JSON_PROPERTY_ASN = "asn"; private String asn; @@ -59,8 +44,8 @@ public ASN asn(String asn) { * Get asn * @return asn **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "7922", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "7922", required = true, description = "") @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -85,8 +70,8 @@ public ASN network(String network) { * Get network * @return network **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "73.136.0.0/13", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "73.136.0.0/13", required = true, description = "") @JsonProperty(JSON_PROPERTY_NETWORK) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -111,8 +96,8 @@ public ASN name(String name) { * Get name * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "COMCAST-7922", value = "") + @jakarta.annotation.Nullable + @Schema(example = "COMCAST-7922", description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/AbstractOpenApiSchema.java b/sdk/src/main/java/com/fingerprint/model/AbstractOpenApiSchema.java index 5492bb0..759c781 100644 --- a/sdk/src/main/java/com/fingerprint/model/AbstractOpenApiSchema.java +++ b/sdk/src/main/java/com/fingerprint/model/AbstractOpenApiSchema.java @@ -17,14 +17,14 @@ import java.util.Objects; import java.lang.reflect.Type; import java.util.Map; -import javax.ws.rs.core.GenericType; +import jakarta.ws.rs.core.GenericType; import com.fasterxml.jackson.annotation.JsonValue; /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object @@ -46,7 +46,7 @@ public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { * * @return an instance of the actual schema/object */ - public abstract Map getSchemas(); + public abstract Map> getSchemas(); /** * Get the actual instance diff --git a/sdk/src/main/java/com/fingerprint/model/BotdDetectionResult.java b/sdk/src/main/java/com/fingerprint/model/BotdDetectionResult.java index 6cfc011..4344286 100644 --- a/sdk/src/main/java/com/fingerprint/model/BotdDetectionResult.java +++ b/sdk/src/main/java/com/fingerprint/model/BotdDetectionResult.java @@ -1,48 +1,32 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Stores bot detection result */ -@ApiModel(description = "Stores bot detection result") + +@Schema(description = "Stores bot detection result") @JsonPropertyOrder({ BotdDetectionResult.JSON_PROPERTY_RESULT, BotdDetectionResult.JSON_PROPERTY_TYPE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class BotdDetectionResult { /** * Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on */ public enum ResultEnum { - NOTDETECTED("notDetected"), + NOT_DETECTED("notDetected"), GOOD("good"), @@ -93,8 +77,8 @@ public BotdDetectionResult result(ResultEnum result) { * Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "bad", required = true, value = "Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on ") + @jakarta.annotation.Nonnull + @Schema(example = "bad", required = true, description = "Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -119,8 +103,8 @@ public BotdDetectionResult type(String type) { * Get type * @return type **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "selenium", value = "") + @jakarta.annotation.Nullable + @Schema(example = "selenium", description = "") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/BotdResult.java b/sdk/src/main/java/com/fingerprint/model/BotdResult.java index 1bcd26b..b3798ee 100644 --- a/sdk/src/main/java/com/fingerprint/model/BotdResult.java +++ b/sdk/src/main/java/com/fingerprint/model/BotdResult.java @@ -1,39 +1,23 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.BotdDetectionResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Contains all the information from Bot Detection product */ -@ApiModel(description = "Contains all the information from Bot Detection product") + +@Schema(description = "Contains all the information from Bot Detection product") @JsonPropertyOrder({ BotdResult.JSON_PROPERTY_IP, BotdResult.JSON_PROPERTY_TIME, @@ -43,7 +27,7 @@ BotdResult.JSON_PROPERTY_LINKED_ID, BotdResult.JSON_PROPERTY_BOT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class BotdResult { public static final String JSON_PROPERTY_IP = "ip"; private String ip; @@ -78,8 +62,8 @@ public BotdResult ip(String ip) { * IP address of the requesting browser or bot. * @return ip **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "8.8.8.8", required = true, value = "IP address of the requesting browser or bot.") + @jakarta.annotation.Nonnull + @Schema(example = "8.8.8.8", required = true, description = "IP address of the requesting browser or bot.") @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -104,8 +88,8 @@ public BotdResult time(OffsetDateTime time) { * Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible * @return time **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "2022-06-09T22:58:36Z", required = true, value = "Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible") + @jakarta.annotation.Nonnull + @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -130,8 +114,8 @@ public BotdResult url(String url) { * Page URL from which identification request was sent. * @return url **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "https://example.com/login", required = true, value = "Page URL from which identification request was sent.") + @jakarta.annotation.Nonnull + @Schema(example = "https://example.com/login", required = true, description = "Page URL from which identification request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -156,8 +140,8 @@ public BotdResult userAgent(String userAgent) { * Get userAgent * @return userAgent **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", required = true, description = "") @JsonProperty(JSON_PROPERTY_USER_AGENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -182,8 +166,8 @@ public BotdResult requestId(String requestId) { * Get requestId * @return requestId **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1681392853693.lRiBBD", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "1681392853693.lRiBBD", required = true, description = "") @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -208,8 +192,8 @@ public BotdResult linkedId(String linkedId) { * Get linkedId * @return linkedId **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Automatic tests bot", value = "") + @jakarta.annotation.Nullable + @Schema(example = "Automatic tests bot", description = "") @JsonProperty(JSON_PROPERTY_LINKED_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -234,8 +218,8 @@ public BotdResult bot(BotdDetectionResult bot) { * Get bot * @return bot **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BOT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java b/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java index d55adc1..9653185 100644 --- a/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java +++ b/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java @@ -1,36 +1,21 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * BrowserDetails */ + + @JsonPropertyOrder({ BrowserDetails.JSON_PROPERTY_BROWSER_NAME, BrowserDetails.JSON_PROPERTY_BROWSER_MAJOR_VERSION, @@ -41,7 +26,7 @@ BrowserDetails.JSON_PROPERTY_USER_AGENT, BrowserDetails.JSON_PROPERTY_BOT_PROBABILITY }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class BrowserDetails { public static final String JSON_PROPERTY_BROWSER_NAME = "browserName"; private String browserName; @@ -79,8 +64,8 @@ public BrowserDetails browserName(String browserName) { * Get browserName * @return browserName **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "Chrome", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "Chrome", required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -105,8 +90,8 @@ public BrowserDetails browserMajorVersion(String browserMajorVersion) { * Get browserMajorVersion * @return browserMajorVersion **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "101", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "101", required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_MAJOR_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -131,8 +116,8 @@ public BrowserDetails browserFullVersion(String browserFullVersion) { * Get browserFullVersion * @return browserFullVersion **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "101.0.4951", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "101.0.4951", required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_FULL_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -157,8 +142,8 @@ public BrowserDetails os(String os) { * Get os * @return os **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "Windows", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "Windows", required = true, description = "") @JsonProperty(JSON_PROPERTY_OS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -183,8 +168,8 @@ public BrowserDetails osVersion(String osVersion) { * Get osVersion * @return osVersion **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "10", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "10", required = true, description = "") @JsonProperty(JSON_PROPERTY_OS_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -209,8 +194,8 @@ public BrowserDetails device(String device) { * Get device * @return device **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "Other", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "Other", required = true, description = "") @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -235,8 +220,8 @@ public BrowserDetails userAgent(String userAgent) { * Get userAgent * @return userAgent **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36", required = true, description = "") @JsonProperty(JSON_PROPERTY_USER_AGENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -261,8 +246,8 @@ public BrowserDetails botProbability(Integer botProbability) { * Get botProbability * @return botProbability **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_BOT_PROBABILITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ClonedAppResult.java b/sdk/src/main/java/com/fingerprint/model/ClonedAppResult.java index 92421ae..3f92763 100644 --- a/sdk/src/main/java/com/fingerprint/model/ClonedAppResult.java +++ b/sdk/src/main/java/com/fingerprint/model/ClonedAppResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ClonedAppResult */ + + @JsonPropertyOrder({ ClonedAppResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ClonedAppResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public ClonedAppResult result(Boolean result) { * Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/Common403ErrorResponse.java b/sdk/src/main/java/com/fingerprint/model/Common403ErrorResponse.java index 01440fe..17cf8bc 100644 --- a/sdk/src/main/java/com/fingerprint/model/Common403ErrorResponse.java +++ b/sdk/src/main/java/com/fingerprint/model/Common403ErrorResponse.java @@ -1,55 +1,40 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Common403ErrorResponse */ + + @JsonPropertyOrder({ Common403ErrorResponse.JSON_PROPERTY_CODE, Common403ErrorResponse.JSON_PROPERTY_MESSAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Common403ErrorResponse { /** * Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application */ public enum CodeEnum { - TOKENREQUIRED("TokenRequired"), + TOKEN_REQUIRED("TokenRequired"), - TOKENNOTFOUND("TokenNotFound"), + TOKEN_NOT_FOUND("TokenNotFound"), - SUBSCRIPTIONNOTACTIVE("SubscriptionNotActive"), + SUBSCRIPTION_NOT_ACTIVE("SubscriptionNotActive"), - WRONGREGION("WrongRegion"), + WRONG_REGION("WrongRegion"), - FEATURENOTENABLED("FeatureNotEnabled"); + FEATURE_NOT_ENABLED("FeatureNotEnabled"); private String value; @@ -96,8 +81,8 @@ public Common403ErrorResponse code(CodeEnum code) { * Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "TokenRequired", required = true, value = "Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application ") + @jakarta.annotation.Nonnull + @Schema(example = "TokenRequired", required = true, description = "Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application ") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -122,8 +107,8 @@ public Common403ErrorResponse message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "secret key is required", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "secret key is required", required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/Confidence.java b/sdk/src/main/java/com/fingerprint/model/Confidence.java index 9eb1ae4..8b2ea01 100644 --- a/sdk/src/main/java/com/fingerprint/model/Confidence.java +++ b/sdk/src/main/java/com/fingerprint/model/Confidence.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Confidence */ + + @JsonPropertyOrder({ Confidence.JSON_PROPERTY_SCORE, Confidence.JSON_PROPERTY_REVISION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Confidence { public static final String JSON_PROPERTY_SCORE = "score"; private Float score; @@ -57,8 +42,8 @@ public Confidence score(Float score) { * maximum: 1 * @return score **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification.") @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -83,8 +68,8 @@ public Confidence revision(String revision) { * The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. * @return revision **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method.") + @jakarta.annotation.Nullable + @Schema(description = "The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method.") @JsonProperty(JSON_PROPERTY_REVISION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/DataCenter.java b/sdk/src/main/java/com/fingerprint/model/DataCenter.java index 3bfdb17..47a5cc7 100644 --- a/sdk/src/main/java/com/fingerprint/model/DataCenter.java +++ b/sdk/src/main/java/com/fingerprint/model/DataCenter.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * DataCenter */ + + @JsonPropertyOrder({ DataCenter.JSON_PROPERTY_RESULT, DataCenter.JSON_PROPERTY_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class DataCenter { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -55,8 +40,8 @@ public DataCenter result(Boolean result) { * Get result * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -81,8 +66,8 @@ public DataCenter name(String name) { * Get name * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "DediPath", value = "") + @jakarta.annotation.Nullable + @Schema(example = "DediPath", description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocation.java b/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocation.java index a72014c..fc4d496 100644 --- a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocation.java +++ b/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocation.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -25,20 +9,19 @@ import com.fingerprint.model.DeprecatedIPLocationCity; import com.fingerprint.model.Location; import com.fingerprint.model.Subdivision; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. * @deprecated */ @Deprecated -@ApiModel(description = "This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information.") +@Schema(description = "This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information.") @JsonPropertyOrder({ DeprecatedIPLocation.JSON_PROPERTY_ACCURACY_RADIUS, DeprecatedIPLocation.JSON_PROPERTY_LATITUDE, @@ -50,7 +33,7 @@ DeprecatedIPLocation.JSON_PROPERTY_CONTINENT, DeprecatedIPLocation.JSON_PROPERTY_SUBDIVISIONS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class DeprecatedIPLocation { public static final String JSON_PROPERTY_ACCURACY_RADIUS = "accuracyRadius"; private Integer accuracyRadius; @@ -92,8 +75,8 @@ public DeprecatedIPLocation accuracyRadius(Integer accuracyRadius) { * minimum: 0 * @return accuracyRadius **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The IP address is likely to be within this radius (in km) of the specified location.") + @jakarta.annotation.Nullable + @Schema(description = "The IP address is likely to be within this radius (in km) of the specified location.") @JsonProperty(JSON_PROPERTY_ACCURACY_RADIUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -120,8 +103,8 @@ public DeprecatedIPLocation latitude(Double latitude) { * maximum: 90 * @return latitude **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_LATITUDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -148,8 +131,8 @@ public DeprecatedIPLocation longitude(Double longitude) { * maximum: 180 * @return longitude **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_LONGITUDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,8 +157,8 @@ public DeprecatedIPLocation postalCode(String postalCode) { * Get postalCode * @return postalCode **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -200,8 +183,8 @@ public DeprecatedIPLocation timezone(String timezone) { * Get timezone * @return timezone **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -226,8 +209,8 @@ public DeprecatedIPLocation city(DeprecatedIPLocationCity city) { * Get city * @return city **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -252,8 +235,8 @@ public DeprecatedIPLocation country(Location country) { * Get country * @return country **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -278,8 +261,8 @@ public DeprecatedIPLocation continent(Location continent) { * Get continent * @return continent **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CONTINENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -300,7 +283,7 @@ public DeprecatedIPLocation subdivisions(List subdivisions) { return this; } - public DeprecatedIPLocation addSubdivisionsItem(Subdivision subdivisionsItem) { + public DeprecatedIPLocation addsubdivisionsItem(Subdivision subdivisionsItem) { if (this.subdivisions == null) { this.subdivisions = new ArrayList<>(); } @@ -312,8 +295,8 @@ public DeprecatedIPLocation addSubdivisionsItem(Subdivision subdivisionsItem) { * Get subdivisions * @return subdivisions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_SUBDIVISIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocationCity.java b/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocationCity.java index 5516751..0063765 100644 --- a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocationCity.java +++ b/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocationCity.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * DeprecatedIPLocationCity */ + + @JsonPropertyOrder({ DeprecatedIPLocationCity.JSON_PROPERTY_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class DeprecatedIPLocationCity { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -51,8 +36,8 @@ public DeprecatedIPLocationCity name(String name) { * Get name * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/EmulatorResult.java b/sdk/src/main/java/com/fingerprint/model/EmulatorResult.java index 8b9398b..6f6cba9 100644 --- a/sdk/src/main/java/com/fingerprint/model/EmulatorResult.java +++ b/sdk/src/main/java/com/fingerprint/model/EmulatorResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * EmulatorResult */ + + @JsonPropertyOrder({ EmulatorResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class EmulatorResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public EmulatorResult result(Boolean result) { * Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/Error.java b/sdk/src/main/java/com/fingerprint/model/Error.java index 7a2550e..891f507 100644 --- a/sdk/src/main/java/com/fingerprint/model/Error.java +++ b/sdk/src/main/java/com/fingerprint/model/Error.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Error */ + + @JsonPropertyOrder({ Error.JSON_PROPERTY_NAME, Error.JSON_PROPERTY_MESSAGE }) @JsonTypeName("error") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Error { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -56,8 +41,8 @@ public Error name(String name) { * Get name * @return name **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -82,8 +67,8 @@ public Error message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorCommon403Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorCommon403Response.java index 27d5ed8..9f8db8f 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorCommon403Response.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorCommon403Response.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.Common403ErrorResponse; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorCommon403Response */ + + @JsonPropertyOrder({ ErrorCommon403Response.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorCommon403Response { public static final String JSON_PROPERTY_ERROR = "error"; private Common403ErrorResponse error; @@ -52,8 +37,8 @@ public ErrorCommon403Response error(Common403ErrorResponse error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorCommon429Response.java index 89e151f..9a6fbce 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429Response.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorCommon429Response.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ErrorCommon429ResponseError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorCommon429Response */ + + @JsonPropertyOrder({ ErrorCommon429Response.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorCommon429Response { public static final String JSON_PROPERTY_ERROR = "error"; private ErrorCommon429ResponseError error; @@ -52,8 +37,8 @@ public ErrorCommon429Response error(ErrorCommon429ResponseError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorCommon429ResponseError.java index 608f4ee..67c08be 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429ResponseError.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorCommon429ResponseError.java @@ -1,48 +1,33 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorCommon429ResponseError */ + + @JsonPropertyOrder({ ErrorCommon429ResponseError.JSON_PROPERTY_CODE, ErrorCommon429ResponseError.JSON_PROPERTY_MESSAGE }) @JsonTypeName("ErrorCommon429Response_error") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorCommon429ResponseError { /** * Error code: * `TooManyRequests` - The request is throttled. */ public enum CodeEnum { - TOOMANYREQUESTS("TooManyRequests"); + TOO_MANY_REQUESTS("TooManyRequests"); private String value; @@ -89,8 +74,8 @@ public ErrorCommon429ResponseError code(CodeEnum code) { * Error code: * `TooManyRequests` - The request is throttled. * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "TooManyRequests", required = true, value = "Error code: * `TooManyRequests` - The request is throttled. ") + @jakarta.annotation.Nonnull + @Schema(example = "TooManyRequests", required = true, description = "Error code: * `TooManyRequests` - The request is throttled. ") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -115,8 +100,8 @@ public ErrorCommon429ResponseError message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "request throttled", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "request throttled", required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorEvent404Response.java index c3e233b..b069577 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404Response.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorEvent404Response.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ErrorEvent404ResponseError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorEvent404Response */ + + @JsonPropertyOrder({ ErrorEvent404Response.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorEvent404Response { public static final String JSON_PROPERTY_ERROR = "error"; private ErrorEvent404ResponseError error; @@ -52,8 +37,8 @@ public ErrorEvent404Response error(ErrorEvent404ResponseError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorEvent404ResponseError.java index 876c461..2f17311 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404ResponseError.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorEvent404ResponseError.java @@ -1,47 +1,32 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorEvent404ResponseError */ + + @JsonPropertyOrder({ ErrorEvent404ResponseError.JSON_PROPERTY_CODE, ErrorEvent404ResponseError.JSON_PROPERTY_MESSAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorEvent404ResponseError { /** * Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. */ public enum CodeEnum { - REQUESTNOTFOUND("RequestNotFound"); + REQUEST_NOT_FOUND("RequestNotFound"); private String value; @@ -88,8 +73,8 @@ public ErrorEvent404ResponseError code(CodeEnum code) { * Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "RequestNotFound", required = true, value = "Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. ") + @jakarta.annotation.Nonnull + @Schema(example = "RequestNotFound", required = true, description = "Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. ") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -114,8 +99,8 @@ public ErrorEvent404ResponseError message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "request id is not found", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "request id is not found", required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisits403.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisits403.java index 79e061f..4989893 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisits403.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorVisits403.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorVisits403 */ + + @JsonPropertyOrder({ ErrorVisits403.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorVisits403 { public static final String JSON_PROPERTY_ERROR = "error"; private String error; @@ -51,8 +36,8 @@ public ErrorVisits403 error(String error) { * Error text. * @return error **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "Forbidden (HTTP 403)", required = true, value = "Error text.") + @jakarta.annotation.Nonnull + @Schema(example = "Forbidden (HTTP 403)", required = true, description = "Error text.") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400Response.java index 4b1b111..9879ee0 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400Response.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400Response.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ErrorVisitsDelete400ResponseError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorVisitsDelete400Response */ + + @JsonPropertyOrder({ ErrorVisitsDelete400Response.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorVisitsDelete400Response { public static final String JSON_PROPERTY_ERROR = "error"; private ErrorVisitsDelete400ResponseError error; @@ -52,8 +37,8 @@ public ErrorVisitsDelete400Response error(ErrorVisitsDelete400ResponseError erro * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400ResponseError.java index 6c2b603..ed49798 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400ResponseError.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete400ResponseError.java @@ -1,48 +1,33 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorVisitsDelete400ResponseError */ + + @JsonPropertyOrder({ ErrorVisitsDelete400ResponseError.JSON_PROPERTY_CODE, ErrorVisitsDelete400ResponseError.JSON_PROPERTY_MESSAGE }) @JsonTypeName("ErrorVisitsDelete400Response_error") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorVisitsDelete400ResponseError { /** * Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. */ public enum CodeEnum { - REQUESTCANNOTBEPARSED("RequestCannotBeParsed"); + REQUEST_CANNOT_BE_PARSED("RequestCannotBeParsed"); private String value; @@ -89,8 +74,8 @@ public ErrorVisitsDelete400ResponseError code(CodeEnum code) { * Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "RequestCannotBeParsed", required = true, value = "Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. ") + @jakarta.annotation.Nonnull + @Schema(example = "RequestCannotBeParsed", required = true, description = "Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. ") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -115,8 +100,8 @@ public ErrorVisitsDelete400ResponseError message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "invalid visitor id", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "invalid visitor id", required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404Response.java index 93d56b0..11497b6 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404Response.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404Response.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ErrorVisitsDelete404ResponseError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorVisitsDelete404Response */ + + @JsonPropertyOrder({ ErrorVisitsDelete404Response.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorVisitsDelete404Response { public static final String JSON_PROPERTY_ERROR = "error"; private ErrorVisitsDelete404ResponseError error; @@ -52,8 +37,8 @@ public ErrorVisitsDelete404Response error(ErrorVisitsDelete404ResponseError erro * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404ResponseError.java index 48ac88c..24a416b 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404ResponseError.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorVisitsDelete404ResponseError.java @@ -1,47 +1,32 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ErrorVisitsDelete404ResponseError */ + + @JsonPropertyOrder({ ErrorVisitsDelete404ResponseError.JSON_PROPERTY_CODE, ErrorVisitsDelete404ResponseError.JSON_PROPERTY_MESSAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ErrorVisitsDelete404ResponseError { /** * Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. */ public enum CodeEnum { - VISITORNOTFOUND("VisitorNotFound"); + VISITOR_NOT_FOUND("VisitorNotFound"); private String value; @@ -88,8 +73,8 @@ public ErrorVisitsDelete404ResponseError code(CodeEnum code) { * Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "VisitorNotFound", required = true, value = "Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. ") + @jakarta.annotation.Nonnull + @Schema(example = "VisitorNotFound", required = true, description = "Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. ") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -114,8 +99,8 @@ public ErrorVisitsDelete404ResponseError message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "visitor not found", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "visitor not found", required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/EventResponse.java b/sdk/src/main/java/com/fingerprint/model/EventResponse.java index 22732c8..bd02dd3 100644 --- a/sdk/src/main/java/com/fingerprint/model/EventResponse.java +++ b/sdk/src/main/java/com/fingerprint/model/EventResponse.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,21 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ProductError; import com.fingerprint.model.ProductsResponse; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Contains results from all activated products - Fingerprint Pro, Bot Detection, and others. */ -@ApiModel(description = "Contains results from all activated products - Fingerprint Pro, Bot Detection, and others.") + +@Schema(description = "Contains results from all activated products - Fingerprint Pro, Bot Detection, and others.") @JsonPropertyOrder({ EventResponse.JSON_PROPERTY_PRODUCTS, EventResponse.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class EventResponse { public static final String JSON_PROPERTY_PRODUCTS = "products"; private ProductsResponse products; @@ -58,8 +42,8 @@ public EventResponse products(ProductsResponse products) { * Get products * @return products **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_PRODUCTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -84,8 +68,8 @@ public EventResponse error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/FactoryResetResult.java b/sdk/src/main/java/com/fingerprint/model/FactoryResetResult.java index cc3ffcc..2e6e239 100644 --- a/sdk/src/main/java/com/fingerprint/model/FactoryResetResult.java +++ b/sdk/src/main/java/com/fingerprint/model/FactoryResetResult.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * FactoryResetResult */ + + @JsonPropertyOrder({ FactoryResetResult.JSON_PROPERTY_TIME, FactoryResetResult.JSON_PROPERTY_TIMESTAMP }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FactoryResetResult { public static final String JSON_PROPERTY_TIME = "time"; private OffsetDateTime time; @@ -56,8 +41,8 @@ public FactoryResetResult time(OffsetDateTime time) { * Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. * @return time **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "2022-06-09T22:58:36Z", required = true, value = "Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. ") + @jakarta.annotation.Nonnull + @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. ") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -82,8 +67,8 @@ public FactoryResetResult timestamp(Long timestamp) { * Same value as it's in the `time` field but represented in timestamp format. * @return timestamp **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815517198", required = true, value = "Same value as it's in the `time` field but represented in timestamp format.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815517198", required = true, description = "Same value as it's in the `time` field but represented in timestamp format.") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/FridaResult.java b/sdk/src/main/java/com/fingerprint/model/FridaResult.java index b086011..d695762 100644 --- a/sdk/src/main/java/com/fingerprint/model/FridaResult.java +++ b/sdk/src/main/java/com/fingerprint/model/FridaResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * FridaResult */ + + @JsonPropertyOrder({ FridaResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class FridaResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public FridaResult result(Boolean result) { * [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "[Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "[Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/HighActivityResult.java b/sdk/src/main/java/com/fingerprint/model/HighActivityResult.java index 90c2714..5499bf7 100644 --- a/sdk/src/main/java/com/fingerprint/model/HighActivityResult.java +++ b/sdk/src/main/java/com/fingerprint/model/HighActivityResult.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * HighActivityResult */ + + @JsonPropertyOrder({ HighActivityResult.JSON_PROPERTY_RESULT, HighActivityResult.JSON_PROPERTY_DAILY_REQUESTS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class HighActivityResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -56,8 +41,8 @@ public HighActivityResult result(Boolean result) { * Flag indicating whether the request came from a high activity visitor. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Flag indicating whether the request came from a high activity visitor.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "Flag indicating whether the request came from a high activity visitor.") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -83,8 +68,8 @@ public HighActivityResult dailyRequests(BigDecimal dailyRequests) { * minimum: 1 * @return dailyRequests **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "10", value = "Number of requests from the same visitor in the previous day.") + @jakarta.annotation.Nullable + @Schema(example = "10", description = "Number of requests from the same visitor in the previous day.") @JsonProperty(JSON_PROPERTY_DAILY_REQUESTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/IPLocation.java b/sdk/src/main/java/com/fingerprint/model/IPLocation.java index aafa21a..4e91eb7 100644 --- a/sdk/src/main/java/com/fingerprint/model/IPLocation.java +++ b/sdk/src/main/java/com/fingerprint/model/IPLocation.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -25,17 +9,18 @@ import com.fingerprint.model.IPLocationCity; import com.fingerprint.model.Location; import com.fingerprint.model.Subdivision; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IPLocation */ + + @JsonPropertyOrder({ IPLocation.JSON_PROPERTY_ACCURACY_RADIUS, IPLocation.JSON_PROPERTY_LATITUDE, @@ -47,7 +32,7 @@ IPLocation.JSON_PROPERTY_CONTINENT, IPLocation.JSON_PROPERTY_SUBDIVISIONS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IPLocation { public static final String JSON_PROPERTY_ACCURACY_RADIUS = "accuracyRadius"; private Integer accuracyRadius; @@ -89,8 +74,8 @@ public IPLocation accuracyRadius(Integer accuracyRadius) { * minimum: 0 * @return accuracyRadius **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1000", value = "The IP address is likely to be within this radius (in km) of the specified location.") + @jakarta.annotation.Nullable + @Schema(example = "1000", description = "The IP address is likely to be within this radius (in km) of the specified location.") @JsonProperty(JSON_PROPERTY_ACCURACY_RADIUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,8 +102,8 @@ public IPLocation latitude(Double latitude) { * maximum: 90 * @return latitude **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "37.75", value = "") + @jakarta.annotation.Nullable + @Schema(example = "37.75", description = "") @JsonProperty(JSON_PROPERTY_LATITUDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,8 +130,8 @@ public IPLocation longitude(Double longitude) { * maximum: 180 * @return longitude **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "-97.82", value = "") + @jakarta.annotation.Nullable + @Schema(example = "-97.82", description = "") @JsonProperty(JSON_PROPERTY_LONGITUDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,8 +156,8 @@ public IPLocation postalCode(String postalCode) { * Get postalCode * @return postalCode **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "130 00", value = "") + @jakarta.annotation.Nullable + @Schema(example = "130 00", description = "") @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -197,8 +182,8 @@ public IPLocation timezone(String timezone) { * Get timezone * @return timezone **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "America/Chicago", value = "") + @jakarta.annotation.Nullable + @Schema(example = "America/Chicago", description = "") @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -223,8 +208,8 @@ public IPLocation city(IPLocationCity city) { * Get city * @return city **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -249,8 +234,8 @@ public IPLocation country(Location country) { * Get country * @return country **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -275,8 +260,8 @@ public IPLocation continent(Location continent) { * Get continent * @return continent **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CONTINENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -297,7 +282,7 @@ public IPLocation subdivisions(List subdivisions) { return this; } - public IPLocation addSubdivisionsItem(Subdivision subdivisionsItem) { + public IPLocation addsubdivisionsItem(Subdivision subdivisionsItem) { if (this.subdivisions == null) { this.subdivisions = new ArrayList<>(); } @@ -309,8 +294,8 @@ public IPLocation addSubdivisionsItem(Subdivision subdivisionsItem) { * Get subdivisions * @return subdivisions **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_SUBDIVISIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/IPLocationCity.java b/sdk/src/main/java/com/fingerprint/model/IPLocationCity.java index f93be14..045c939 100644 --- a/sdk/src/main/java/com/fingerprint/model/IPLocationCity.java +++ b/sdk/src/main/java/com/fingerprint/model/IPLocationCity.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IPLocationCity */ + + @JsonPropertyOrder({ IPLocationCity.JSON_PROPERTY_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IPLocationCity { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -51,8 +36,8 @@ public IPLocationCity name(String name) { * Get name * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Prague", value = "") + @jakarta.annotation.Nullable + @Schema(example = "Prague", description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/IdentificationError.java b/sdk/src/main/java/com/fingerprint/model/IdentificationError.java index 6f88d4b..595a9eb 100644 --- a/sdk/src/main/java/com/fingerprint/model/IdentificationError.java +++ b/sdk/src/main/java/com/fingerprint/model/IdentificationError.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IdentificationError */ + + @JsonPropertyOrder({ IdentificationError.JSON_PROPERTY_CODE, IdentificationError.JSON_PROPERTY_MESSAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IdentificationError { /** * Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error @@ -90,8 +75,8 @@ public IdentificationError code(CodeEnum code) { * Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "429 Too Many Requests", required = true, value = "Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error ") + @jakarta.annotation.Nonnull + @Schema(example = "429 Too Many Requests", required = true, description = "Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error ") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -116,8 +101,8 @@ public IdentificationError message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "too many requests", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "too many requests", required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/IncognitoResult.java b/sdk/src/main/java/com/fingerprint/model/IncognitoResult.java index cc26b93..737d1fe 100644 --- a/sdk/src/main/java/com/fingerprint/model/IncognitoResult.java +++ b/sdk/src/main/java/com/fingerprint/model/IncognitoResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IncognitoResult */ + + @JsonPropertyOrder({ IncognitoResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IncognitoResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public IncognitoResult result(Boolean result) { * `true` if we detected incognito mode used in the browser, `false` otherwise. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "`true` if we detected incognito mode used in the browser, `false` otherwise. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "`true` if we detected incognito mode used in the browser, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/IpBlockListResult.java b/sdk/src/main/java/com/fingerprint/model/IpBlockListResult.java index aae5658..f66e6c6 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpBlockListResult.java +++ b/sdk/src/main/java/com/fingerprint/model/IpBlockListResult.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IpBlockListResultDetails; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IpBlockListResult */ + + @JsonPropertyOrder({ IpBlockListResult.JSON_PROPERTY_RESULT, IpBlockListResult.JSON_PROPERTY_DETAILS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IpBlockListResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -56,8 +41,8 @@ public IpBlockListResult result(Boolean result) { * `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "`true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "`true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -82,8 +67,8 @@ public IpBlockListResult details(IpBlockListResultDetails details) { * Get details * @return details **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/IpBlockListResultDetails.java b/sdk/src/main/java/com/fingerprint/model/IpBlockListResultDetails.java index ba550f3..c1cadfb 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpBlockListResultDetails.java +++ b/sdk/src/main/java/com/fingerprint/model/IpBlockListResultDetails.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IpBlockListResultDetails */ + + @JsonPropertyOrder({ IpBlockListResultDetails.JSON_PROPERTY_EMAIL_SPAM, IpBlockListResultDetails.JSON_PROPERTY_ATTACK_SOURCE }) @JsonTypeName("IpBlockListResult_details") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IpBlockListResultDetails { public static final String JSON_PROPERTY_EMAIL_SPAM = "emailSpam"; private Boolean emailSpam; @@ -56,8 +41,8 @@ public IpBlockListResultDetails emailSpam(Boolean emailSpam) { * IP address was part of a known email spam attack (SMTP). * @return emailSpam **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "IP address was part of a known email spam attack (SMTP).") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "IP address was part of a known email spam attack (SMTP).") @JsonProperty(JSON_PROPERTY_EMAIL_SPAM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -82,8 +67,8 @@ public IpBlockListResultDetails attackSource(Boolean attackSource) { * IP address was part of a known network attack (SSH/HTTPS). * @return attackSource **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "IP address was part of a known network attack (SSH/HTTPS).") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "IP address was part of a known network attack (SSH/HTTPS).") @JsonProperty(JSON_PROPERTY_ATTACK_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/IpInfoResult.java b/sdk/src/main/java/com/fingerprint/model/IpInfoResult.java index 7d4ebd2..8727d73 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpInfoResult.java +++ b/sdk/src/main/java/com/fingerprint/model/IpInfoResult.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,21 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IpInfoResultV4; import com.fingerprint.model.IpInfoResultV6; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Details about the request IP address. Has separate fields for v4 and v6 IP address versions. */ -@ApiModel(description = "Details about the request IP address. Has separate fields for v4 and v6 IP address versions.") + +@Schema(description = "Details about the request IP address. Has separate fields for v4 and v6 IP address versions.") @JsonPropertyOrder({ IpInfoResult.JSON_PROPERTY_V4, IpInfoResult.JSON_PROPERTY_V6 }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IpInfoResult { public static final String JSON_PROPERTY_V4 = "v4"; private IpInfoResultV4 v4; @@ -58,8 +42,8 @@ public IpInfoResult v4(IpInfoResultV4 v4) { * Get v4 * @return v4 **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_V4) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,8 +68,8 @@ public IpInfoResult v6(IpInfoResultV6 v6) { * Get v6 * @return v6 **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_V6) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV4.java b/sdk/src/main/java/com/fingerprint/model/IpInfoResultV4.java index 56f455c..b2a776c 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV4.java +++ b/sdk/src/main/java/com/fingerprint/model/IpInfoResultV4.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -25,15 +9,16 @@ import com.fingerprint.model.ASN; import com.fingerprint.model.DataCenter; import com.fingerprint.model.IPLocation; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IpInfoResultV4 */ + + @JsonPropertyOrder({ IpInfoResultV4.JSON_PROPERTY_ADDRESS, IpInfoResultV4.JSON_PROPERTY_GEOLOCATION, @@ -41,7 +26,7 @@ IpInfoResultV4.JSON_PROPERTY_DATACENTER }) @JsonTypeName("IpInfoResult_v4") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IpInfoResultV4 { public static final String JSON_PROPERTY_ADDRESS = "address"; private String address; @@ -67,8 +52,8 @@ public IpInfoResultV4 address(String address) { * Get address * @return address **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "94.142.239.124", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "94.142.239.124", required = true, description = "") @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -93,8 +78,8 @@ public IpInfoResultV4 geolocation(IPLocation geolocation) { * Get geolocation * @return geolocation **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_GEOLOCATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -119,8 +104,8 @@ public IpInfoResultV4 asn(ASN asn) { * Get asn * @return asn **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,8 +130,8 @@ public IpInfoResultV4 datacenter(DataCenter datacenter) { * Get datacenter * @return datacenter **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATACENTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV6.java b/sdk/src/main/java/com/fingerprint/model/IpInfoResultV6.java index 1521547..7ee8817 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV6.java +++ b/sdk/src/main/java/com/fingerprint/model/IpInfoResultV6.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -25,15 +9,16 @@ import com.fingerprint.model.ASN; import com.fingerprint.model.DataCenter; import com.fingerprint.model.IPLocation; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * IpInfoResultV6 */ + + @JsonPropertyOrder({ IpInfoResultV6.JSON_PROPERTY_ADDRESS, IpInfoResultV6.JSON_PROPERTY_GEOLOCATION, @@ -41,7 +26,7 @@ IpInfoResultV6.JSON_PROPERTY_DATACENTER }) @JsonTypeName("IpInfoResult_v6") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class IpInfoResultV6 { public static final String JSON_PROPERTY_ADDRESS = "address"; private String address; @@ -67,8 +52,8 @@ public IpInfoResultV6 address(String address) { * Get address * @return address **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "2001:0db8:85a3:0000:0000:8a2e:0370:7334", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "2001:0db8:85a3:0000:0000:8a2e:0370:7334", required = true, description = "") @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -93,8 +78,8 @@ public IpInfoResultV6 geolocation(IPLocation geolocation) { * Get geolocation * @return geolocation **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_GEOLOCATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -119,8 +104,8 @@ public IpInfoResultV6 asn(ASN asn) { * Get asn * @return asn **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,8 +130,8 @@ public IpInfoResultV6 datacenter(DataCenter datacenter) { * Get datacenter * @return datacenter **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATACENTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/JailbrokenResult.java b/sdk/src/main/java/com/fingerprint/model/JailbrokenResult.java index 98ee250..4e32677 100644 --- a/sdk/src/main/java/com/fingerprint/model/JailbrokenResult.java +++ b/sdk/src/main/java/com/fingerprint/model/JailbrokenResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * JailbrokenResult */ + + @JsonPropertyOrder({ JailbrokenResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class JailbrokenResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public JailbrokenResult result(Boolean result) { * iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/Location.java b/sdk/src/main/java/com/fingerprint/model/Location.java index 1fad965..31fe330 100644 --- a/sdk/src/main/java/com/fingerprint/model/Location.java +++ b/sdk/src/main/java/com/fingerprint/model/Location.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Location */ + + @JsonPropertyOrder({ Location.JSON_PROPERTY_CODE, Location.JSON_PROPERTY_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Location { public static final String JSON_PROPERTY_CODE = "code"; private String code; @@ -55,8 +40,8 @@ public Location code(String code) { * Get code * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "US", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "US", required = true, description = "") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -81,8 +66,8 @@ public Location name(String name) { * Get name * @return name **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "United States", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "United States", required = true, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/LocationSpoofingResult.java b/sdk/src/main/java/com/fingerprint/model/LocationSpoofingResult.java index d7c7d24..94ce803 100644 --- a/sdk/src/main/java/com/fingerprint/model/LocationSpoofingResult.java +++ b/sdk/src/main/java/com/fingerprint/model/LocationSpoofingResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * LocationSpoofingResult */ + + @JsonPropertyOrder({ LocationSpoofingResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class LocationSpoofingResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public LocationSpoofingResult result(Boolean result) { * Flag indicating whether the request came from a mobile device with location spoofing enabled. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Flag indicating whether the request came from a mobile device with location spoofing enabled.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "Flag indicating whether the request came from a mobile device with location spoofing enabled.") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/PrivacySettingsResult.java b/sdk/src/main/java/com/fingerprint/model/PrivacySettingsResult.java index 9405efe..4751b19 100644 --- a/sdk/src/main/java/com/fingerprint/model/PrivacySettingsResult.java +++ b/sdk/src/main/java/com/fingerprint/model/PrivacySettingsResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * PrivacySettingsResult */ + + @JsonPropertyOrder({ PrivacySettingsResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class PrivacySettingsResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public PrivacySettingsResult result(Boolean result) { * `true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "`true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "`true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ProductError.java b/sdk/src/main/java/com/fingerprint/model/ProductError.java index fbe7b88..c0b9980 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductError.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductError.java @@ -1,47 +1,32 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ProductError */ + + @JsonPropertyOrder({ ProductError.JSON_PROPERTY_CODE, ProductError.JSON_PROPERTY_MESSAGE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ProductError { /** * Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error */ public enum CodeEnum { - TOOMANYREQUESTS("TooManyRequests"), + TOO_MANY_REQUESTS("TooManyRequests"), FAILED("Failed"); @@ -90,8 +75,8 @@ public ProductError code(CodeEnum code) { * Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error * @return code **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "TooManyRequests", required = true, value = "Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error ") + @jakarta.annotation.Nonnull + @Schema(example = "TooManyRequests", required = true, description = "Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error ") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -116,8 +101,8 @@ public ProductError message(String message) { * Get message * @return message **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "too many requests", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "too many requests", required = true, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponse.java b/sdk/src/main/java/com/fingerprint/model/ProductsResponse.java index 81d16b0..0a9fd4f 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponse.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductsResponse.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -43,16 +27,16 @@ import com.fingerprint.model.SignalResponseTor; import com.fingerprint.model.SignalResponseVirtualMachine; import com.fingerprint.model.SignalResponseVpn; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise) */ -@ApiModel(description = "Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise)") + +@Schema(description = "Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise)") @JsonPropertyOrder({ ProductsResponse.JSON_PROPERTY_IDENTIFICATION, ProductsResponse.JSON_PROPERTY_BOTD, @@ -76,7 +60,7 @@ ProductsResponse.JSON_PROPERTY_SUSPECT_SCORE, ProductsResponse.JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ProductsResponse { public static final String JSON_PROPERTY_IDENTIFICATION = "identification"; private ProductsResponseIdentification identification; @@ -153,8 +137,8 @@ public ProductsResponse identification(ProductsResponseIdentification identifica * Get identification * @return identification **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -179,8 +163,8 @@ public ProductsResponse botd(ProductsResponseBotd botd) { * Get botd * @return botd **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_BOTD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -205,8 +189,8 @@ public ProductsResponse ipInfo(SignalResponseIpInfo ipInfo) { * Get ipInfo * @return ipInfo **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -231,8 +215,8 @@ public ProductsResponse incognito(SignalResponseIncognito incognito) { * Get incognito * @return incognito **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -257,8 +241,8 @@ public ProductsResponse rootApps(SignalResponseRootApps rootApps) { * Get rootApps * @return rootApps **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ROOT_APPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -283,8 +267,8 @@ public ProductsResponse emulator(SignalResponseEmulator emulator) { * Get emulator * @return emulator **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_EMULATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -309,8 +293,8 @@ public ProductsResponse clonedApp(SignalResponseClonedApp clonedApp) { * Get clonedApp * @return clonedApp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CLONED_APP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -335,8 +319,8 @@ public ProductsResponse factoryReset(SignalResponseFactoryReset factoryReset) { * Get factoryReset * @return factoryReset **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_FACTORY_RESET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -361,8 +345,8 @@ public ProductsResponse jailbroken(SignalResponseJailbroken jailbroken) { * Get jailbroken * @return jailbroken **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_JAILBROKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,8 +371,8 @@ public ProductsResponse frida(SignalResponseFrida frida) { * Get frida * @return frida **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_FRIDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -413,8 +397,8 @@ public ProductsResponse ipBlocklist(SignalResponseIpBlocklist ipBlocklist) { * Get ipBlocklist * @return ipBlocklist **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -439,8 +423,8 @@ public ProductsResponse tor(SignalResponseTor tor) { * Get tor * @return tor **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_TOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -465,8 +449,8 @@ public ProductsResponse privacySettings(SignalResponsePrivacySettings privacySet * Get privacySettings * @return privacySettings **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -491,8 +475,8 @@ public ProductsResponse virtualMachine(SignalResponseVirtualMachine virtualMachi * Get virtualMachine * @return virtualMachine **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -517,8 +501,8 @@ public ProductsResponse vpn(SignalResponseVpn vpn) { * Get vpn * @return vpn **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_VPN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -543,8 +527,8 @@ public ProductsResponse proxy(SignalResponseProxy proxy) { * Get proxy * @return proxy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_PROXY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -569,8 +553,8 @@ public ProductsResponse tampering(SignalResponseTampering tampering) { * Get tampering * @return tampering **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_TAMPERING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -595,8 +579,8 @@ public ProductsResponse highActivity(SignalResponseHighActivity highActivity) { * Get highActivity * @return highActivity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,8 +605,8 @@ public ProductsResponse locationSpoofing(SignalResponseLocationSpoofing location * Get locationSpoofing * @return locationSpoofing **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -647,8 +631,8 @@ public ProductsResponse suspectScore(SignalResponseSuspectScore suspectScore) { * Get suspectScore * @return suspectScore **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -673,8 +657,8 @@ public ProductsResponse rawDeviceAttributes(SignalResponseRawDeviceAttributes ra * Get rawDeviceAttributes * @return rawDeviceAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponseBotd.java b/sdk/src/main/java/com/fingerprint/model/ProductsResponseBotd.java index ed75404..3e8fd21 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponseBotd.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductsResponseBotd.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.BotdResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ProductsResponseBotd */ + + @JsonPropertyOrder({ ProductsResponseBotd.JSON_PROPERTY_DATA, ProductsResponseBotd.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ProductsResponseBotd { public static final String JSON_PROPERTY_DATA = "data"; private BotdResult data; @@ -57,8 +42,8 @@ public ProductsResponseBotd data(BotdResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public ProductsResponseBotd error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentification.java b/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentification.java index 792a2d4..22110d6 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentification.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentification.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IdentificationError; import com.fingerprint.model.ProductsResponseIdentificationData; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ProductsResponseIdentification */ + + @JsonPropertyOrder({ ProductsResponseIdentification.JSON_PROPERTY_DATA, ProductsResponseIdentification.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ProductsResponseIdentification { public static final String JSON_PROPERTY_DATA = "data"; private ProductsResponseIdentificationData data; @@ -57,8 +42,8 @@ public ProductsResponseIdentification data(ProductsResponseIdentificationData da * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public ProductsResponseIdentification error(IdentificationError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentificationData.java b/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentificationData.java index 0afd14b..d1a46a8 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentificationData.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentificationData.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -26,18 +10,19 @@ import com.fingerprint.model.Confidence; import com.fingerprint.model.DeprecatedIPLocation; import com.fingerprint.model.SeenAt; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ProductsResponseIdentificationData */ + + @JsonPropertyOrder({ ProductsResponseIdentificationData.JSON_PROPERTY_REQUEST_ID, ProductsResponseIdentificationData.JSON_PROPERTY_BROWSER_DETAILS, @@ -55,7 +40,7 @@ ProductsResponseIdentificationData.JSON_PROPERTY_LAST_SEEN_AT, ProductsResponseIdentificationData.JSON_PROPERTY_VISITOR_ID }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ProductsResponseIdentificationData { public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; private String requestId; @@ -114,8 +99,8 @@ public ProductsResponseIdentificationData requestId(String requestId) { * Unique identifier of the user's identification request. * @return requestId **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516083.OX6kx8", required = true, value = "Unique identifier of the user's identification request.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516083.OX6kx8", required = true, description = "Unique identifier of the user's identification request.") @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -140,8 +125,8 @@ public ProductsResponseIdentificationData browserDetails(BrowserDetails browserD * Get browserDetails * @return browserDetails **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -166,8 +151,8 @@ public ProductsResponseIdentificationData incognito(Boolean incognito) { * Flag if user used incognito session. * @return incognito **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Flag if user used incognito session.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Flag if user used incognito session.") @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -192,8 +177,8 @@ public ProductsResponseIdentificationData ip(String ip) { * Get ip * @return ip **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "8.8.8.8", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "8.8.8.8", required = true, description = "") @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -220,8 +205,8 @@ public ProductsResponseIdentificationData ipLocation(DeprecatedIPLocation ipLoca * @deprecated **/ @Deprecated - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -246,8 +231,8 @@ public ProductsResponseIdentificationData timestamp(Long timestamp) { * Timestamp of the event with millisecond precision in Unix time. * @return timestamp **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516086", required = true, value = "Timestamp of the event with millisecond precision in Unix time.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516086", required = true, description = "Timestamp of the event with millisecond precision in Unix time.") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -272,8 +257,8 @@ public ProductsResponseIdentificationData time(OffsetDateTime time) { * Time expressed according to ISO 8601 in UTC format. * @return time **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "2022-06-09T22:58:36Z", required = true, value = "Time expressed according to ISO 8601 in UTC format.") + @jakarta.annotation.Nonnull + @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time expressed according to ISO 8601 in UTC format.") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -298,8 +283,8 @@ public ProductsResponseIdentificationData url(String url) { * Page URL from which the identification request was sent. * @return url **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "https://some.website/path?query=params", required = true, value = "Page URL from which the identification request was sent.") + @jakarta.annotation.Nonnull + @Schema(example = "https://some.website/path?query=params", required = true, description = "Page URL from which the identification request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -320,7 +305,7 @@ public ProductsResponseIdentificationData tag(Map tag) { return this; } - public ProductsResponseIdentificationData putTagItem(String key, Object tagItem) { + public ProductsResponseIdentificationData puttagItem(String key, Object tagItem) { this.tag.put(key, tagItem); return this; } @@ -329,8 +314,8 @@ public ProductsResponseIdentificationData putTagItem(String key, Object tagItem) * A customer-provided value or an object that was sent with identification request. * @return tag **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "A customer-provided value or an object that was sent with identification request.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "A customer-provided value or an object that was sent with identification request.") @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) @@ -355,8 +340,8 @@ public ProductsResponseIdentificationData linkedId(String linkedId) { * A customer-provided id that was sent with identification request. * @return linkedId **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "someID", value = "A customer-provided id that was sent with identification request.") + @jakarta.annotation.Nullable + @Schema(example = "someID", description = "A customer-provided id that was sent with identification request.") @JsonProperty(JSON_PROPERTY_LINKED_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -381,8 +366,8 @@ public ProductsResponseIdentificationData confidence(Confidence confidence) { * Get confidence * @return confidence **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -407,8 +392,8 @@ public ProductsResponseIdentificationData visitorFound(Boolean visitorFound) { * Attribute represents if a visitor had been identified before. * @return visitorFound **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Attribute represents if a visitor had been identified before.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Attribute represents if a visitor had been identified before.") @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -433,8 +418,8 @@ public ProductsResponseIdentificationData firstSeenAt(SeenAt firstSeenAt) { * Get firstSeenAt * @return firstSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -459,8 +444,8 @@ public ProductsResponseIdentificationData lastSeenAt(SeenAt lastSeenAt) { * Get lastSeenAt * @return lastSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -485,8 +470,8 @@ public ProductsResponseIdentificationData visitorId(String visitorId) { * String of 20 characters that uniquely identifies the visitor's browser. * @return visitorId **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "[\"Ibk1527CUFmcnjLwIs4A\"]", required = true, value = "String of 20 characters that uniquely identifies the visitor's browser. ") + @jakarta.annotation.Nonnull + @Schema(example = "[\"Ibk1527CUFmcnjLwIs4A\"]", required = true, description = "String of 20 characters that uniquely identifies the visitor's browser. ") @JsonProperty(JSON_PROPERTY_VISITOR_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/ProxyResult.java b/sdk/src/main/java/com/fingerprint/model/ProxyResult.java index 16e2326..4f5ecf9 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProxyResult.java +++ b/sdk/src/main/java/com/fingerprint/model/ProxyResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ProxyResult */ + + @JsonPropertyOrder({ ProxyResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ProxyResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public ProxyResult result(Boolean result) { * `true` if the request IP address is used by a public proxy provider, `false` otherwise. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "`true` if the request IP address is used by a public proxy provider, `false` otherwise. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "`true` if the request IP address is used by a public proxy provider, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributesResultValue.java b/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributesResultValue.java index 0f9beeb..ad1e2cd 100644 --- a/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributesResultValue.java +++ b/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributesResultValue.java @@ -1,47 +1,32 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.Error; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.fasterxml.jackson.annotation.JsonIgnore; import org.openapitools.jackson.nullable.JsonNullable; import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * RawDeviceAttributesResultValue */ + + @JsonPropertyOrder({ RawDeviceAttributesResultValue.JSON_PROPERTY_ERROR, RawDeviceAttributesResultValue.JSON_PROPERTY_VALUE }) @JsonTypeName("RawDeviceAttributesResult_value") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class RawDeviceAttributesResultValue { public static final String JSON_PROPERTY_ERROR = "error"; private Error error; @@ -61,8 +46,8 @@ public RawDeviceAttributesResultValue error(Error error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,8 +72,8 @@ public RawDeviceAttributesResultValue value(Object value) { * Get value * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonIgnore public Object getValue() { diff --git a/sdk/src/main/java/com/fingerprint/model/Response.java b/sdk/src/main/java/com/fingerprint/model/Response.java index 3589a15..7141439 100644 --- a/sdk/src/main/java/com/fingerprint/model/Response.java +++ b/sdk/src/main/java/com/fingerprint/model/Response.java @@ -1,47 +1,31 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ResponseVisits; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Fields `lastTimestamp` and `paginationKey` added when `limit` or `before` parameter provided and there is more data to show */ -@ApiModel(description = "Fields `lastTimestamp` and `paginationKey` added when `limit` or `before` parameter provided and there is more data to show") + +@Schema(description = "Fields `lastTimestamp` and `paginationKey` added when `limit` or `before` parameter provided and there is more data to show") @JsonPropertyOrder({ Response.JSON_PROPERTY_VISITOR_ID, Response.JSON_PROPERTY_VISITS, Response.JSON_PROPERTY_LAST_TIMESTAMP, Response.JSON_PROPERTY_PAGINATION_KEY }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Response { public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; private String visitorId; @@ -67,8 +51,8 @@ public Response visitorId(String visitorId) { * Get visitorId * @return visitorId **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_VISITOR_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -89,7 +73,7 @@ public Response visits(List visits) { return this; } - public Response addVisitsItem(ResponseVisits visitsItem) { + public Response addvisitsItem(ResponseVisits visitsItem) { this.visits.add(visitsItem); return this; } @@ -98,8 +82,8 @@ public Response addVisitsItem(ResponseVisits visitsItem) { * Get visits * @return visits **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_VISITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -124,8 +108,8 @@ public Response lastTimestamp(Long lastTimestamp) { * ⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. * @return lastTimestamp **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1654815517198", value = "⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. ") + @jakarta.annotation.Nullable + @Schema(example = "1654815517198", description = "⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. ") @JsonProperty(JSON_PROPERTY_LAST_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -150,8 +134,8 @@ public Response paginationKey(String paginationKey) { * Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results. * @return paginationKey **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "1654815517198.azN4IZ", value = "Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results.") + @jakarta.annotation.Nullable + @Schema(example = "1654815517198.azN4IZ", description = "Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results.") @JsonProperty(JSON_PROPERTY_PAGINATION_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/ResponseVisits.java b/sdk/src/main/java/com/fingerprint/model/ResponseVisits.java index 6122c1e..ab7658f 100644 --- a/sdk/src/main/java/com/fingerprint/model/ResponseVisits.java +++ b/sdk/src/main/java/com/fingerprint/model/ResponseVisits.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -26,18 +10,19 @@ import com.fingerprint.model.Confidence; import com.fingerprint.model.DeprecatedIPLocation; import com.fingerprint.model.SeenAt; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * ResponseVisits */ + + @JsonPropertyOrder({ ResponseVisits.JSON_PROPERTY_REQUEST_ID, ResponseVisits.JSON_PROPERTY_BROWSER_DETAILS, @@ -54,7 +39,7 @@ ResponseVisits.JSON_PROPERTY_FIRST_SEEN_AT, ResponseVisits.JSON_PROPERTY_LAST_SEEN_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ResponseVisits { public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; private String requestId; @@ -110,8 +95,8 @@ public ResponseVisits requestId(String requestId) { * Unique identifier of the user's identification request. * @return requestId **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516083.OX6kx8", required = true, value = "Unique identifier of the user's identification request.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516083.OX6kx8", required = true, description = "Unique identifier of the user's identification request.") @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -136,8 +121,8 @@ public ResponseVisits browserDetails(BrowserDetails browserDetails) { * Get browserDetails * @return browserDetails **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -162,8 +147,8 @@ public ResponseVisits incognito(Boolean incognito) { * Flag if user used incognito session. * @return incognito **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Flag if user used incognito session.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Flag if user used incognito session.") @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -188,8 +173,8 @@ public ResponseVisits ip(String ip) { * Get ip * @return ip **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "8.8.8.8", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "8.8.8.8", required = true, description = "") @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -216,8 +201,8 @@ public ResponseVisits ipLocation(DeprecatedIPLocation ipLocation) { * @deprecated **/ @Deprecated - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,8 +227,8 @@ public ResponseVisits timestamp(Long timestamp) { * Timestamp of the event with millisecond precision in Unix time. * @return timestamp **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516086", required = true, value = "Timestamp of the event with millisecond precision in Unix time.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516086", required = true, description = "Timestamp of the event with millisecond precision in Unix time.") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -268,8 +253,8 @@ public ResponseVisits time(OffsetDateTime time) { * Time expressed according to ISO 8601 in UTC format. * @return time **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "2022-06-09T22:58:36Z", required = true, value = "Time expressed according to ISO 8601 in UTC format.") + @jakarta.annotation.Nonnull + @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time expressed according to ISO 8601 in UTC format.") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -294,8 +279,8 @@ public ResponseVisits url(String url) { * Page URL from which the identification request was sent. * @return url **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "https://some.website/path?query=params", required = true, value = "Page URL from which the identification request was sent.") + @jakarta.annotation.Nonnull + @Schema(example = "https://some.website/path?query=params", required = true, description = "Page URL from which the identification request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -316,7 +301,7 @@ public ResponseVisits tag(Map tag) { return this; } - public ResponseVisits putTagItem(String key, Object tagItem) { + public ResponseVisits puttagItem(String key, Object tagItem) { this.tag.put(key, tagItem); return this; } @@ -325,8 +310,8 @@ public ResponseVisits putTagItem(String key, Object tagItem) { * A customer-provided value or an object that was sent with identification request. * @return tag **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "A customer-provided value or an object that was sent with identification request.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "A customer-provided value or an object that was sent with identification request.") @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) @@ -351,8 +336,8 @@ public ResponseVisits linkedId(String linkedId) { * A customer-provided id that was sent with identification request. * @return linkedId **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "someID", value = "A customer-provided id that was sent with identification request.") + @jakarta.annotation.Nullable + @Schema(example = "someID", description = "A customer-provided id that was sent with identification request.") @JsonProperty(JSON_PROPERTY_LINKED_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,8 +362,8 @@ public ResponseVisits confidence(Confidence confidence) { * Get confidence * @return confidence **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,8 +388,8 @@ public ResponseVisits visitorFound(Boolean visitorFound) { * Attribute represents if a visitor had been identified before. * @return visitorFound **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Attribute represents if a visitor had been identified before.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Attribute represents if a visitor had been identified before.") @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -429,8 +414,8 @@ public ResponseVisits firstSeenAt(SeenAt firstSeenAt) { * Get firstSeenAt * @return firstSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -455,8 +440,8 @@ public ResponseVisits lastSeenAt(SeenAt lastSeenAt) { * Get lastSeenAt * @return lastSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/RootAppsResult.java b/sdk/src/main/java/com/fingerprint/model/RootAppsResult.java index 7c5cfae..6f782e6 100644 --- a/sdk/src/main/java/com/fingerprint/model/RootAppsResult.java +++ b/sdk/src/main/java/com/fingerprint/model/RootAppsResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * RootAppsResult */ + + @JsonPropertyOrder({ RootAppsResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class RootAppsResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public RootAppsResult result(Boolean result) { * Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/SeenAt.java b/sdk/src/main/java/com/fingerprint/model/SeenAt.java index d103972..1ce844e 100644 --- a/sdk/src/main/java/com/fingerprint/model/SeenAt.java +++ b/sdk/src/main/java/com/fingerprint/model/SeenAt.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SeenAt */ + + @JsonPropertyOrder({ SeenAt.JSON_PROPERTY_GLOBAL, SeenAt.JSON_PROPERTY_SUBSCRIPTION }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SeenAt { public static final String JSON_PROPERTY_GLOBAL = "global"; private OffsetDateTime global; @@ -56,8 +41,8 @@ public SeenAt global(OffsetDateTime global) { * Get global * @return global **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2022-05-05T18:28:54.535Z", required = true, value = "") + @jakarta.annotation.Nullable + @Schema(example = "2022-05-05T18:28:54.535Z", required = true, description = "") @JsonProperty(JSON_PROPERTY_GLOBAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -82,8 +67,8 @@ public SeenAt subscription(OffsetDateTime subscription) { * Get subscription * @return subscription **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "2022-06-09T22:58:05.576Z", required = true, value = "") + @jakarta.annotation.Nullable + @Schema(example = "2022-06-09T22:58:05.576Z", required = true, description = "") @JsonProperty(JSON_PROPERTY_SUBSCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseClonedApp.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseClonedApp.java index 699cc59..05593fe 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseClonedApp.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseClonedApp.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ClonedAppResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseClonedApp */ + + @JsonPropertyOrder({ SignalResponseClonedApp.JSON_PROPERTY_DATA, SignalResponseClonedApp.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseClonedApp { public static final String JSON_PROPERTY_DATA = "data"; private ClonedAppResult data; @@ -57,8 +42,8 @@ public SignalResponseClonedApp data(ClonedAppResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseClonedApp error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseEmulator.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseEmulator.java index 2641f28..f84151c 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseEmulator.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseEmulator.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.EmulatorResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseEmulator */ + + @JsonPropertyOrder({ SignalResponseEmulator.JSON_PROPERTY_DATA, SignalResponseEmulator.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseEmulator { public static final String JSON_PROPERTY_DATA = "data"; private EmulatorResult data; @@ -57,8 +42,8 @@ public SignalResponseEmulator data(EmulatorResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseEmulator error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseFactoryReset.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseFactoryReset.java index 42168ae..004b4c4 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseFactoryReset.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseFactoryReset.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.FactoryResetResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseFactoryReset */ + + @JsonPropertyOrder({ SignalResponseFactoryReset.JSON_PROPERTY_DATA, SignalResponseFactoryReset.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseFactoryReset { public static final String JSON_PROPERTY_DATA = "data"; private FactoryResetResult data; @@ -57,8 +42,8 @@ public SignalResponseFactoryReset data(FactoryResetResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseFactoryReset error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseFrida.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseFrida.java index 9ca8858..38f07df 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseFrida.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseFrida.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.FridaResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseFrida */ + + @JsonPropertyOrder({ SignalResponseFrida.JSON_PROPERTY_DATA, SignalResponseFrida.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseFrida { public static final String JSON_PROPERTY_DATA = "data"; private FridaResult data; @@ -57,8 +42,8 @@ public SignalResponseFrida data(FridaResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseFrida error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseHighActivity.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseHighActivity.java index 2e4635c..ec2d449 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseHighActivity.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseHighActivity.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.HighActivityResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseHighActivity */ + + @JsonPropertyOrder({ SignalResponseHighActivity.JSON_PROPERTY_DATA, SignalResponseHighActivity.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseHighActivity { public static final String JSON_PROPERTY_DATA = "data"; private HighActivityResult data; @@ -57,8 +42,8 @@ public SignalResponseHighActivity data(HighActivityResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseHighActivity error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseIncognito.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseIncognito.java index 81f81db..0873dd5 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseIncognito.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseIncognito.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IdentificationError; import com.fingerprint.model.IncognitoResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseIncognito */ + + @JsonPropertyOrder({ SignalResponseIncognito.JSON_PROPERTY_DATA, SignalResponseIncognito.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseIncognito { public static final String JSON_PROPERTY_DATA = "data"; private IncognitoResult data; @@ -57,8 +42,8 @@ public SignalResponseIncognito data(IncognitoResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseIncognito error(IdentificationError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpBlocklist.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseIpBlocklist.java index cf3655d..b7b874b 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpBlocklist.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseIpBlocklist.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IpBlockListResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseIpBlocklist */ + + @JsonPropertyOrder({ SignalResponseIpBlocklist.JSON_PROPERTY_DATA, SignalResponseIpBlocklist.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseIpBlocklist { public static final String JSON_PROPERTY_DATA = "data"; private IpBlockListResult data; @@ -57,8 +42,8 @@ public SignalResponseIpBlocklist data(IpBlockListResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseIpBlocklist error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpInfo.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseIpInfo.java index 23dd69a..1858ec9 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpInfo.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseIpInfo.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IpInfoResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseIpInfo */ + + @JsonPropertyOrder({ SignalResponseIpInfo.JSON_PROPERTY_DATA, SignalResponseIpInfo.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseIpInfo { public static final String JSON_PROPERTY_DATA = "data"; private IpInfoResult data; @@ -57,8 +42,8 @@ public SignalResponseIpInfo data(IpInfoResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseIpInfo error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseJailbroken.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseJailbroken.java index b695fdf..014aadb 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseJailbroken.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseJailbroken.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.JailbrokenResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseJailbroken */ + + @JsonPropertyOrder({ SignalResponseJailbroken.JSON_PROPERTY_DATA, SignalResponseJailbroken.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseJailbroken { public static final String JSON_PROPERTY_DATA = "data"; private JailbrokenResult data; @@ -57,8 +42,8 @@ public SignalResponseJailbroken data(JailbrokenResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseJailbroken error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseLocationSpoofing.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseLocationSpoofing.java index 223814d..f0ae813 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseLocationSpoofing.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseLocationSpoofing.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.LocationSpoofingResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseLocationSpoofing */ + + @JsonPropertyOrder({ SignalResponseLocationSpoofing.JSON_PROPERTY_DATA, SignalResponseLocationSpoofing.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseLocationSpoofing { public static final String JSON_PROPERTY_DATA = "data"; private LocationSpoofingResult data; @@ -57,8 +42,8 @@ public SignalResponseLocationSpoofing data(LocationSpoofingResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseLocationSpoofing error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponsePrivacySettings.java b/sdk/src/main/java/com/fingerprint/model/SignalResponsePrivacySettings.java index 1926c54..f4dd638 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponsePrivacySettings.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponsePrivacySettings.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.PrivacySettingsResult; import com.fingerprint.model.ProductError; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponsePrivacySettings */ + + @JsonPropertyOrder({ SignalResponsePrivacySettings.JSON_PROPERTY_DATA, SignalResponsePrivacySettings.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponsePrivacySettings { public static final String JSON_PROPERTY_DATA = "data"; private PrivacySettingsResult data; @@ -57,8 +42,8 @@ public SignalResponsePrivacySettings data(PrivacySettingsResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponsePrivacySettings error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseProxy.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseProxy.java index 34a752d..119fc88 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseProxy.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseProxy.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ProductError; import com.fingerprint.model.ProxyResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseProxy */ + + @JsonPropertyOrder({ SignalResponseProxy.JSON_PROPERTY_DATA, SignalResponseProxy.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseProxy { public static final String JSON_PROPERTY_DATA = "data"; private ProxyResult data; @@ -57,8 +42,8 @@ public SignalResponseProxy data(ProxyResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseProxy error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseRawDeviceAttributes.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseRawDeviceAttributes.java index c7db251..217f78b 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseRawDeviceAttributes.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseRawDeviceAttributes.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,22 +8,23 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IdentificationError; import com.fingerprint.model.RawDeviceAttributesResultValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseRawDeviceAttributes */ + + @JsonPropertyOrder({ SignalResponseRawDeviceAttributes.JSON_PROPERTY_DATA, SignalResponseRawDeviceAttributes.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseRawDeviceAttributes { public static final String JSON_PROPERTY_DATA = "data"; private Map data = null; @@ -55,7 +40,7 @@ public SignalResponseRawDeviceAttributes data(Map(); } @@ -67,8 +52,8 @@ public SignalResponseRawDeviceAttributes putDataItem(String key, RawDeviceAttrib * It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") + @jakarta.annotation.Nullable + @Schema(description = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,8 +78,8 @@ public SignalResponseRawDeviceAttributes error(IdentificationError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseRootApps.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseRootApps.java index 69f22ac..4dcf292 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseRootApps.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseRootApps.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ProductError; import com.fingerprint.model.RootAppsResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseRootApps */ + + @JsonPropertyOrder({ SignalResponseRootApps.JSON_PROPERTY_DATA, SignalResponseRootApps.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseRootApps { public static final String JSON_PROPERTY_DATA = "data"; private RootAppsResult data; @@ -57,8 +42,8 @@ public SignalResponseRootApps data(RootAppsResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseRootApps error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java index bb7682d..d6ca5e8 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ProductError; import com.fingerprint.model.SuspectScoreResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseSuspectScore */ + + @JsonPropertyOrder({ SignalResponseSuspectScore.JSON_PROPERTY_DATA, SignalResponseSuspectScore.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseSuspectScore { public static final String JSON_PROPERTY_DATA = "data"; private SuspectScoreResult data; @@ -57,8 +42,8 @@ public SignalResponseSuspectScore data(SuspectScoreResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseSuspectScore error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseTampering.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseTampering.java index e8f52d8..3e91bd0 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseTampering.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseTampering.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.IdentificationError; import com.fingerprint.model.TamperingResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseTampering */ + + @JsonPropertyOrder({ SignalResponseTampering.JSON_PROPERTY_DATA, SignalResponseTampering.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseTampering { public static final String JSON_PROPERTY_DATA = "data"; private TamperingResult data; @@ -57,8 +42,8 @@ public SignalResponseTampering data(TamperingResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseTampering error(IdentificationError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseTor.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseTor.java index 7a691b1..abb6577 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseTor.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseTor.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ProductError; import com.fingerprint.model.TorResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseTor */ + + @JsonPropertyOrder({ SignalResponseTor.JSON_PROPERTY_DATA, SignalResponseTor.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseTor { public static final String JSON_PROPERTY_DATA = "data"; private TorResult data; @@ -57,8 +42,8 @@ public SignalResponseTor data(TorResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseTor error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseVirtualMachine.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseVirtualMachine.java index b7f944f..74d0c20 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseVirtualMachine.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseVirtualMachine.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ProductError; import com.fingerprint.model.VirtualMachineResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseVirtualMachine */ + + @JsonPropertyOrder({ SignalResponseVirtualMachine.JSON_PROPERTY_DATA, SignalResponseVirtualMachine.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseVirtualMachine { public static final String JSON_PROPERTY_DATA = "data"; private VirtualMachineResult data; @@ -57,8 +42,8 @@ public SignalResponseVirtualMachine data(VirtualMachineResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseVirtualMachine error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseVpn.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseVpn.java index e0a935f..6f4adfc 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseVpn.java +++ b/sdk/src/main/java/com/fingerprint/model/SignalResponseVpn.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -24,20 +8,21 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.ProductError; import com.fingerprint.model.VpnResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SignalResponseVpn */ + + @JsonPropertyOrder({ SignalResponseVpn.JSON_PROPERTY_DATA, SignalResponseVpn.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SignalResponseVpn { public static final String JSON_PROPERTY_DATA = "data"; private VpnResult data; @@ -57,8 +42,8 @@ public SignalResponseVpn data(VpnResult data) { * Get data * @return data **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -83,8 +68,8 @@ public SignalResponseVpn error(ProductError error) { * Get error * @return error **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/Subdivision.java b/sdk/src/main/java/com/fingerprint/model/Subdivision.java index e7a6c76..e41d9a5 100644 --- a/sdk/src/main/java/com/fingerprint/model/Subdivision.java +++ b/sdk/src/main/java/com/fingerprint/model/Subdivision.java @@ -1,41 +1,26 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Subdivision */ + + @JsonPropertyOrder({ Subdivision.JSON_PROPERTY_ISO_CODE, Subdivision.JSON_PROPERTY_NAME }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Subdivision { public static final String JSON_PROPERTY_ISO_CODE = "isoCode"; private String isoCode; @@ -55,8 +40,8 @@ public Subdivision isoCode(String isoCode) { * Get isoCode * @return isoCode **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "10", value = "") + @jakarta.annotation.Nullable + @Schema(example = "10", description = "") @JsonProperty(JSON_PROPERTY_ISO_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,8 +66,8 @@ public Subdivision name(String name) { * Get name * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Hlavni mesto Praha", value = "") + @jakarta.annotation.Nullable + @Schema(example = "Hlavni mesto Praha", description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/sdk/src/main/java/com/fingerprint/model/SuspectScoreResult.java b/sdk/src/main/java/com/fingerprint/model/SuspectScoreResult.java index 7324255..a4eecc2 100644 --- a/sdk/src/main/java/com/fingerprint/model/SuspectScoreResult.java +++ b/sdk/src/main/java/com/fingerprint/model/SuspectScoreResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * SuspectScoreResult */ + + @JsonPropertyOrder({ SuspectScoreResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class SuspectScoreResult { public static final String JSON_PROPERTY_RESULT = "result"; private Integer result; @@ -51,8 +36,8 @@ public SuspectScoreResult result(Integer result) { * Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "0", required = true, value = "Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score ") + @jakarta.annotation.Nonnull + @Schema(example = "0", required = true, description = "Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/TamperingResult.java b/sdk/src/main/java/com/fingerprint/model/TamperingResult.java index 3f56fb9..3aeae41 100644 --- a/sdk/src/main/java/com/fingerprint/model/TamperingResult.java +++ b/sdk/src/main/java/com/fingerprint/model/TamperingResult.java @@ -1,42 +1,27 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * TamperingResult */ + + @JsonPropertyOrder({ TamperingResult.JSON_PROPERTY_RESULT, TamperingResult.JSON_PROPERTY_ANOMALY_SCORE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TamperingResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -56,8 +41,8 @@ public TamperingResult result(Boolean result) { * Flag indicating whether browser tampering was detected according to our internal thresholds. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Flag indicating whether browser tampering was detected according to our internal thresholds.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "Flag indicating whether browser tampering was detected according to our internal thresholds.") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -84,8 +69,8 @@ public TamperingResult anomalyScore(BigDecimal anomalyScore) { * maximum: 1 * @return anomalyScore **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "0", required = true, value = "Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers.") + @jakarta.annotation.Nonnull + @Schema(example = "0", required = true, description = "Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers.") @JsonProperty(JSON_PROPERTY_ANOMALY_SCORE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/TooManyRequestsResponse.java b/sdk/src/main/java/com/fingerprint/model/TooManyRequestsResponse.java index ac79142..8c2767a 100644 --- a/sdk/src/main/java/com/fingerprint/model/TooManyRequestsResponse.java +++ b/sdk/src/main/java/com/fingerprint/model/TooManyRequestsResponse.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * TooManyRequestsResponse */ + + @JsonPropertyOrder({ TooManyRequestsResponse.JSON_PROPERTY_ERROR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TooManyRequestsResponse { public static final String JSON_PROPERTY_ERROR = "error"; private String error; @@ -51,8 +36,8 @@ public TooManyRequestsResponse error(String error) { * Error text. * @return error **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "request throttled", required = true, value = "Error text.") + @jakarta.annotation.Nonnull + @Schema(example = "request throttled", required = true, description = "Error text.") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/TorResult.java b/sdk/src/main/java/com/fingerprint/model/TorResult.java index fad598b..1f34cbb 100644 --- a/sdk/src/main/java/com/fingerprint/model/TorResult.java +++ b/sdk/src/main/java/com/fingerprint/model/TorResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * TorResult */ + + @JsonPropertyOrder({ TorResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class TorResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public TorResult result(Boolean result) { * `true` if the request IP address is a known tor exit node, `false` otherwise. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "`true` if the request IP address is a known tor exit node, `false` otherwise. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "`true` if the request IP address is a known tor exit node, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/VirtualMachineResult.java b/sdk/src/main/java/com/fingerprint/model/VirtualMachineResult.java index 315b703..617cdf1 100644 --- a/sdk/src/main/java/com/fingerprint/model/VirtualMachineResult.java +++ b/sdk/src/main/java/com/fingerprint/model/VirtualMachineResult.java @@ -1,40 +1,25 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * VirtualMachineResult */ + + @JsonPropertyOrder({ VirtualMachineResult.JSON_PROPERTY_RESULT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class VirtualMachineResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -51,8 +36,8 @@ public VirtualMachineResult result(Boolean result) { * `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "`true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. ") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "`true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/Visit.java b/sdk/src/main/java/com/fingerprint/model/Visit.java index a7ec884..3d40695 100644 --- a/sdk/src/main/java/com/fingerprint/model/Visit.java +++ b/sdk/src/main/java/com/fingerprint/model/Visit.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -26,18 +10,19 @@ import com.fingerprint.model.Confidence; import com.fingerprint.model.DeprecatedIPLocation; import com.fingerprint.model.SeenAt; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * Visit */ + + @JsonPropertyOrder({ Visit.JSON_PROPERTY_REQUEST_ID, Visit.JSON_PROPERTY_BROWSER_DETAILS, @@ -54,7 +39,7 @@ Visit.JSON_PROPERTY_FIRST_SEEN_AT, Visit.JSON_PROPERTY_LAST_SEEN_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Visit { public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; private String requestId; @@ -110,8 +95,8 @@ public Visit requestId(String requestId) { * Unique identifier of the user's identification request. * @return requestId **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516083.OX6kx8", required = true, value = "Unique identifier of the user's identification request.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516083.OX6kx8", required = true, description = "Unique identifier of the user's identification request.") @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -136,8 +121,8 @@ public Visit browserDetails(BrowserDetails browserDetails) { * Get browserDetails * @return browserDetails **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -162,8 +147,8 @@ public Visit incognito(Boolean incognito) { * Flag if user used incognito session. * @return incognito **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Flag if user used incognito session.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Flag if user used incognito session.") @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -188,8 +173,8 @@ public Visit ip(String ip) { * Get ip * @return ip **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "8.8.8.8", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "8.8.8.8", required = true, description = "") @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -216,8 +201,8 @@ public Visit ipLocation(DeprecatedIPLocation ipLocation) { * @deprecated **/ @Deprecated - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,8 +227,8 @@ public Visit timestamp(Long timestamp) { * Timestamp of the event with millisecond precision in Unix time. * @return timestamp **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516086", required = true, value = "Timestamp of the event with millisecond precision in Unix time.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516086", required = true, description = "Timestamp of the event with millisecond precision in Unix time.") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -268,8 +253,8 @@ public Visit time(OffsetDateTime time) { * Time expressed according to ISO 8601 in UTC format. * @return time **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "2022-06-09T22:58:36Z", required = true, value = "Time expressed according to ISO 8601 in UTC format.") + @jakarta.annotation.Nonnull + @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time expressed according to ISO 8601 in UTC format.") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -294,8 +279,8 @@ public Visit url(String url) { * Page URL from which the identification request was sent. * @return url **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "https://some.website/path?query=params", required = true, value = "Page URL from which the identification request was sent.") + @jakarta.annotation.Nonnull + @Schema(example = "https://some.website/path?query=params", required = true, description = "Page URL from which the identification request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -316,7 +301,7 @@ public Visit tag(Map tag) { return this; } - public Visit putTagItem(String key, Object tagItem) { + public Visit puttagItem(String key, Object tagItem) { this.tag.put(key, tagItem); return this; } @@ -325,8 +310,8 @@ public Visit putTagItem(String key, Object tagItem) { * A customer-provided value or an object that was sent with identification request. * @return tag **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "A customer-provided value or an object that was sent with identification request.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "A customer-provided value or an object that was sent with identification request.") @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) @@ -351,8 +336,8 @@ public Visit linkedId(String linkedId) { * A customer-provided id that was sent with identification request. * @return linkedId **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "someID", value = "A customer-provided id that was sent with identification request.") + @jakarta.annotation.Nullable + @Schema(example = "someID", description = "A customer-provided id that was sent with identification request.") @JsonProperty(JSON_PROPERTY_LINKED_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -377,8 +362,8 @@ public Visit confidence(Confidence confidence) { * Get confidence * @return confidence **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -403,8 +388,8 @@ public Visit visitorFound(Boolean visitorFound) { * Attribute represents if a visitor had been identified before. * @return visitorFound **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Attribute represents if a visitor had been identified before.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Attribute represents if a visitor had been identified before.") @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -429,8 +414,8 @@ public Visit firstSeenAt(SeenAt firstSeenAt) { * Get firstSeenAt * @return firstSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -455,8 +440,8 @@ public Visit lastSeenAt(SeenAt lastSeenAt) { * Get lastSeenAt * @return lastSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/VpnResult.java b/sdk/src/main/java/com/fingerprint/model/VpnResult.java index fcba0f1..da7db8a 100644 --- a/sdk/src/main/java/com/fingerprint/model/VpnResult.java +++ b/sdk/src/main/java/com/fingerprint/model/VpnResult.java @@ -1,44 +1,29 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.VpnResultMethods; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * VpnResult */ + + @JsonPropertyOrder({ VpnResult.JSON_PROPERTY_RESULT, VpnResult.JSON_PROPERTY_ORIGIN_TIMEZONE, VpnResult.JSON_PROPERTY_ORIGIN_COUNTRY, VpnResult.JSON_PROPERTY_METHODS }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class VpnResult { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; @@ -64,8 +49,8 @@ public VpnResult result(Boolean result) { * VPN or other anonymizing service has been used when sending the request. * @return result **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "VPN or other anonymizing service has been used when sending the request.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "VPN or other anonymizing service has been used when sending the request.") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -90,8 +75,8 @@ public VpnResult originTimezone(String originTimezone) { * Local timezone which is used in timezoneMismatch method. * @return originTimezone **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "Europe/Berlin", required = true, value = "Local timezone which is used in timezoneMismatch method.") + @jakarta.annotation.Nonnull + @Schema(example = "Europe/Berlin", required = true, description = "Local timezone which is used in timezoneMismatch method.") @JsonProperty(JSON_PROPERTY_ORIGIN_TIMEZONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -116,8 +101,8 @@ public VpnResult originCountry(String originCountry) { * Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). * @return originCountry **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "unknown", value = "Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown).") + @jakarta.annotation.Nullable + @Schema(example = "unknown", description = "Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown).") @JsonProperty(JSON_PROPERTY_ORIGIN_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,8 +127,8 @@ public VpnResult methods(VpnResultMethods methods) { * Get methods * @return methods **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_METHODS) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/VpnResultMethods.java b/sdk/src/main/java/com/fingerprint/model/VpnResultMethods.java index de308a7..97a0f49 100644 --- a/sdk/src/main/java/com/fingerprint/model/VpnResultMethods.java +++ b/sdk/src/main/java/com/fingerprint/model/VpnResultMethods.java @@ -1,36 +1,21 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * VpnResultMethods */ + + @JsonPropertyOrder({ VpnResultMethods.JSON_PROPERTY_TIMEZONE_MISMATCH, VpnResultMethods.JSON_PROPERTY_PUBLIC_V_P_N, @@ -38,7 +23,7 @@ VpnResultMethods.JSON_PROPERTY_OS_MISMATCH }) @JsonTypeName("VpnResult_methods") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class VpnResultMethods { public static final String JSON_PROPERTY_TIMEZONE_MISMATCH = "timezoneMismatch"; private Boolean timezoneMismatch; @@ -64,8 +49,8 @@ public VpnResultMethods timezoneMismatch(Boolean timezoneMismatch) { * The browser timezone doesn't match the timezone inferred from the request IP address. * @return timezoneMismatch **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "The browser timezone doesn't match the timezone inferred from the request IP address.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "The browser timezone doesn't match the timezone inferred from the request IP address.") @JsonProperty(JSON_PROPERTY_TIMEZONE_MISMATCH) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -90,8 +75,8 @@ public VpnResultMethods publicVPN(Boolean publicVPN) { * Request IP address is owned and used by a public VPN service provider. * @return publicVPN **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Request IP address is owned and used by a public VPN service provider.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "Request IP address is owned and used by a public VPN service provider.") @JsonProperty(JSON_PROPERTY_PUBLIC_V_P_N) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -116,8 +101,8 @@ public VpnResultMethods auxiliaryMobile(Boolean auxiliaryMobile) { * This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. * @return auxiliaryMobile **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices.") @JsonProperty(JSON_PROPERTY_AUXILIARY_MOBILE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -142,8 +127,8 @@ public VpnResultMethods osMismatch(Boolean osMismatch) { * The browser runs on a different operating system than the operating system inferred from the request network signature. * @return osMismatch **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "The browser runs on a different operating system than the operating system inferred from the request network signature.") + @jakarta.annotation.Nonnull + @Schema(example = "false", required = true, description = "The browser runs on a different operating system than the operating system inferred from the request network signature.") @JsonProperty(JSON_PROPERTY_OS_MISMATCH) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookVisit.java b/sdk/src/main/java/com/fingerprint/model/WebhookVisit.java index befbcc0..8d8f602 100644 --- a/sdk/src/main/java/com/fingerprint/model/WebhookVisit.java +++ b/sdk/src/main/java/com/fingerprint/model/WebhookVisit.java @@ -1,22 +1,6 @@ -/* - * Fingerprint Pro Server API - * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. - * - * The version of the OpenAPI document: 3 - * Contact: support@fingerprint.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - package com.fingerprint.model; import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -45,18 +29,19 @@ import com.fingerprint.model.TorResult; import com.fingerprint.model.VirtualMachineResult; import com.fingerprint.model.VpnResult; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; - +import io.swagger.v3.oas.annotations.media.Schema; /** * WebhookVisit */ + + @JsonPropertyOrder({ WebhookVisit.JSON_PROPERTY_VISITOR_ID, WebhookVisit.JSON_PROPERTY_CLIENT_REFERRER, @@ -95,7 +80,7 @@ WebhookVisit.JSON_PROPERTY_FIRST_SEEN_AT, WebhookVisit.JSON_PROPERTY_LAST_SEEN_AT }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class WebhookVisit { public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; private String visitorId; @@ -217,8 +202,8 @@ public WebhookVisit visitorId(String visitorId) { * Get visitorId * @return visitorId **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "3HNey93AkBW6CRbxV6xP", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "3HNey93AkBW6CRbxV6xP", required = true, description = "") @JsonProperty(JSON_PROPERTY_VISITOR_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -243,8 +228,8 @@ public WebhookVisit clientReferrer(String clientReferrer) { * Get clientReferrer * @return clientReferrer **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "https://google.com?search=banking+services", value = "") + @jakarta.annotation.Nullable + @Schema(example = "https://google.com?search=banking+services", description = "") @JsonProperty(JSON_PROPERTY_CLIENT_REFERRER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -269,8 +254,8 @@ public WebhookVisit userAgent(String userAgent) { * Get userAgent * @return userAgent **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", value = "") + @jakarta.annotation.Nullable + @Schema(example = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", description = "") @JsonProperty(JSON_PROPERTY_USER_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -295,8 +280,8 @@ public WebhookVisit bot(BotdDetectionResult bot) { * Get bot * @return bot **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_BOT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -321,8 +306,8 @@ public WebhookVisit ipInfo(IpInfoResult ipInfo) { * Get ipInfo * @return ipInfo **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -347,8 +332,8 @@ public WebhookVisit incognito(Boolean incognito) { * Flag if user used incognito session. * @return incognito **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Flag if user used incognito session.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Flag if user used incognito session.") @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -373,8 +358,8 @@ public WebhookVisit rootApps(RootAppsResult rootApps) { * Get rootApps * @return rootApps **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_ROOT_APPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -399,8 +384,8 @@ public WebhookVisit emulator(EmulatorResult emulator) { * Get emulator * @return emulator **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_EMULATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,8 +410,8 @@ public WebhookVisit clonedApp(ClonedAppResult clonedApp) { * Get clonedApp * @return clonedApp **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CLONED_APP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -451,8 +436,8 @@ public WebhookVisit factoryReset(FactoryResetResult factoryReset) { * Get factoryReset * @return factoryReset **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_FACTORY_RESET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -477,8 +462,8 @@ public WebhookVisit jailbroken(JailbrokenResult jailbroken) { * Get jailbroken * @return jailbroken **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_JAILBROKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -503,8 +488,8 @@ public WebhookVisit frida(FridaResult frida) { * Get frida * @return frida **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_FRIDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -529,8 +514,8 @@ public WebhookVisit ipBlocklist(IpBlockListResult ipBlocklist) { * Get ipBlocklist * @return ipBlocklist **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -555,8 +540,8 @@ public WebhookVisit tor(TorResult tor) { * Get tor * @return tor **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_TOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -581,8 +566,8 @@ public WebhookVisit privacySettings(PrivacySettingsResult privacySettings) { * Get privacySettings * @return privacySettings **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -607,8 +592,8 @@ public WebhookVisit virtualMachine(VirtualMachineResult virtualMachine) { * Get virtualMachine * @return virtualMachine **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -633,8 +618,8 @@ public WebhookVisit vpn(VpnResult vpn) { * Get vpn * @return vpn **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_VPN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -659,8 +644,8 @@ public WebhookVisit proxy(ProxyResult proxy) { * Get proxy * @return proxy **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_PROXY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -685,8 +670,8 @@ public WebhookVisit tampering(TamperingResult tampering) { * Get tampering * @return tampering **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_TAMPERING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -707,7 +692,7 @@ public WebhookVisit rawDeviceAttributes(Map(); } @@ -719,8 +704,8 @@ public WebhookVisit putRawDeviceAttributesItem(String key, RawDeviceAttributesRe * It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. * @return rawDeviceAttributes **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") + @jakarta.annotation.Nullable + @Schema(description = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -745,8 +730,8 @@ public WebhookVisit highActivity(HighActivityResult highActivity) { * Get highActivity * @return highActivity **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -771,8 +756,8 @@ public WebhookVisit locationSpoofing(LocationSpoofingResult locationSpoofing) { * Get locationSpoofing * @return locationSpoofing **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -797,8 +782,8 @@ public WebhookVisit suspectScore(SuspectScoreResult suspectScore) { * Get suspectScore * @return suspectScore **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -823,8 +808,8 @@ public WebhookVisit requestId(String requestId) { * Unique identifier of the user's identification request. * @return requestId **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516083.OX6kx8", required = true, value = "Unique identifier of the user's identification request.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516083.OX6kx8", required = true, description = "Unique identifier of the user's identification request.") @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -849,8 +834,8 @@ public WebhookVisit browserDetails(BrowserDetails browserDetails) { * Get browserDetails * @return browserDetails **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -875,8 +860,8 @@ public WebhookVisit ip(String ip) { * Get ip * @return ip **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "8.8.8.8", required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(example = "8.8.8.8", required = true, description = "") @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -903,8 +888,8 @@ public WebhookVisit ipLocation(DeprecatedIPLocation ipLocation) { * @deprecated **/ @Deprecated - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -929,8 +914,8 @@ public WebhookVisit timestamp(Long timestamp) { * Timestamp of the event with millisecond precision in Unix time. * @return timestamp **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "1654815516086", required = true, value = "Timestamp of the event with millisecond precision in Unix time.") + @jakarta.annotation.Nonnull + @Schema(example = "1654815516086", required = true, description = "Timestamp of the event with millisecond precision in Unix time.") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -955,8 +940,8 @@ public WebhookVisit time(OffsetDateTime time) { * Time expressed according to ISO 8601 in UTC format. * @return time **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "2022-06-09T22:58:36Z", required = true, value = "Time expressed according to ISO 8601 in UTC format.") + @jakarta.annotation.Nonnull + @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time expressed according to ISO 8601 in UTC format.") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -981,8 +966,8 @@ public WebhookVisit url(String url) { * Page URL from which the identification request was sent. * @return url **/ - @javax.annotation.Nonnull - @ApiModelProperty(example = "https://some.website/path?query=params", required = true, value = "Page URL from which the identification request was sent.") + @jakarta.annotation.Nonnull + @Schema(example = "https://some.website/path?query=params", required = true, description = "Page URL from which the identification request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -1003,7 +988,7 @@ public WebhookVisit tag(Map tag) { return this; } - public WebhookVisit putTagItem(String key, Object tagItem) { + public WebhookVisit puttagItem(String key, Object tagItem) { this.tag.put(key, tagItem); return this; } @@ -1012,8 +997,8 @@ public WebhookVisit putTagItem(String key, Object tagItem) { * A customer-provided value or an object that was sent with identification request. * @return tag **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "A customer-provided value or an object that was sent with identification request.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "A customer-provided value or an object that was sent with identification request.") @JsonProperty(JSON_PROPERTY_TAG) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) @@ -1038,8 +1023,8 @@ public WebhookVisit linkedId(String linkedId) { * A customer-provided id that was sent with identification request. * @return linkedId **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "someID", value = "A customer-provided id that was sent with identification request.") + @jakarta.annotation.Nullable + @Schema(example = "someID", description = "A customer-provided id that was sent with identification request.") @JsonProperty(JSON_PROPERTY_LINKED_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1064,8 +1049,8 @@ public WebhookVisit confidence(Confidence confidence) { * Get confidence * @return confidence **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nullable + @Schema(description = "") @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1090,8 +1075,8 @@ public WebhookVisit visitorFound(Boolean visitorFound) { * Attribute represents if a visitor had been identified before. * @return visitorFound **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Attribute represents if a visitor had been identified before.") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Attribute represents if a visitor had been identified before.") @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -1116,8 +1101,8 @@ public WebhookVisit firstSeenAt(SeenAt firstSeenAt) { * Get firstSeenAt * @return firstSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -1142,8 +1127,8 @@ public WebhookVisit lastSeenAt(SeenAt lastSeenAt) { * Get lastSeenAt * @return lastSeenAt **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/sdk/src/main/java/com/fingerprint/sdk/ApiClient.java b/sdk/src/main/java/com/fingerprint/sdk/ApiClient.java index 486f3e0..697e74c 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/ApiClient.java +++ b/sdk/src/main/java/com/fingerprint/sdk/ApiClient.java @@ -1,15 +1,15 @@ package com.fingerprint.sdk; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Form; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Form; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; import org.glassfish.jersey.client.ClientConfig; import org.glassfish.jersey.client.ClientProperties; @@ -35,6 +35,7 @@ import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import org.glassfish.jersey.logging.LoggingFeature; +import java.util.AbstractMap.SimpleEntry; import java.util.logging.Level; import java.util.logging.Logger; import java.util.Collection; @@ -42,11 +43,14 @@ import java.util.Map; import java.util.Map.Entry; import java.util.HashMap; -import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; import java.util.List; import java.util.Arrays; import java.util.ArrayList; import java.util.Date; +import java.util.stream.Collectors; +import java.util.stream.Stream; import java.time.OffsetDateTime; import java.net.URLEncoder; @@ -66,37 +70,38 @@ /** *

ApiClient class.

*/ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ApiClient extends JavaTimeFormatter { - protected Map defaultHeaderMap = new HashMap(); - protected Map defaultCookieMap = new HashMap(); + private static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + + protected Map defaultHeaderMap = new HashMap<>(); + protected Map defaultCookieMap = new HashMap<>(); protected String basePath = "https://api.fpjs.io"; protected String userAgent; private static final Logger log = Logger.getLogger(ApiClient.class.getName()); - protected List servers = new ArrayList(Arrays.asList( - new ServerConfiguration( - "https://api.fpjs.io", - "Global", - new HashMap() - ), - new ServerConfiguration( - "https://eu.api.fpjs.io", - "EU", - new HashMap() - ), - new ServerConfiguration( - "https://ap.api.fpjs.io", - "Asia (Mumbai)", - new HashMap() - ) + protected List servers = new ArrayList<>(Arrays.asList( + new ServerConfiguration( + "https://api.fpjs.io", + "Global", + new LinkedHashMap<>() + ), + new ServerConfiguration( + "https://eu.api.fpjs.io", + "EU", + new LinkedHashMap<>() + ), + new ServerConfiguration( + "https://ap.api.fpjs.io", + "Asia (Mumbai)", + new LinkedHashMap<>() + ) )); protected Integer serverIndex = 0; protected Map serverVariables = null; - protected Map> operationServers = new HashMap>() {{ - }}; - protected Map operationServerIndex = new HashMap(); - protected Map> operationServerVariables = new HashMap>(); + protected Map> operationServers = new HashMap<>(); + protected Map operationServerIndex = new HashMap<>(); + protected Map> operationServerVariables = new HashMap<>(); protected boolean debugging = false; protected ClientConfig clientConfig; protected int connectionTimeout = 0; @@ -133,7 +138,7 @@ public ApiClient(Map authMap) { setUserAgent("OpenAPI-Generator/5.1.1/java"); // Setup authentications (key: authentication name, value: authentication). - authentications = new HashMap(); + authentications = new HashMap<>(); Authentication auth = null; if (authMap != null) { auth = authMap.get("ApiKeyHeader"); @@ -155,7 +160,7 @@ public ApiClient(Map authMap) { authentications = Collections.unmodifiableMap(authentications); // Setup authentication lookup (key: authentication alias, value: authentication name) - authenticationLookup = new HashMap(); + authenticationLookup = new HashMap<>(); } /** @@ -170,7 +175,7 @@ public JSON getJSON() { /** *

Getter for the field httpClient.

* - * @return a {@link javax.ws.rs.client.Client} object. + * @return a {@link jakarta.ws.rs.client.Client} object. */ public Client getHttpClient() { return httpClient; @@ -179,7 +184,7 @@ public Client getHttpClient() { /** *

Setter for the field httpClient.

* - * @param httpClient a {@link javax.ws.rs.client.Client} object. + * @param httpClient a {@link jakarta.ws.rs.client.Client} object. * @return a {@link org.openapitools.client.ApiClient} object. */ public ApiClient setHttpClient(Client httpClient) { @@ -355,9 +360,10 @@ public ApiClient configureApiKeys(Map secrets) { if (auth instanceof ApiKeyAuth) { String name = authEntry.getKey(); // respect x-auth-id-alias property - name = authenticationLookup.containsKey(name) ? authenticationLookup.get(name) : name; - if (secrets.containsKey(name)) { - ((ApiKeyAuth) auth).setApiKey(secrets.get(name)); + name = authenticationLookup.getOrDefault(name, name); + String secret = secrets.get(name); + if (secret != null) { + ((ApiKeyAuth) auth).setApiKey(secret); } } } @@ -612,9 +618,9 @@ public String parameterToString(Object param) { return formatDate((Date) param); } else if (param instanceof OffsetDateTime) { return formatOffsetDateTime((OffsetDateTime) param); - } else if (param instanceof Collection) { + } else if (param instanceof Collection) { StringBuilder b = new StringBuilder(); - for(Object o : (Collection)param) { + for(Object o : (Collection)param) { if(b.length() > 0) { b.append(','); } @@ -635,14 +641,14 @@ public String parameterToString(Object param) { * @return List of pairs */ public List parameterToPairs(String collectionFormat, String name, Object value){ - List params = new ArrayList(); + List params = new ArrayList<>(); // preconditions if (name == null || name.isEmpty() || value == null) return params; - Collection valueCollection; - if (value instanceof Collection) { - valueCollection = (Collection) value; + Collection valueCollection; + if (value instanceof Collection) { + valueCollection = (Collection) value; } else { params.add(new Pair(name, parameterToString(value))); return params; @@ -694,14 +700,13 @@ public List parameterToPairs(String collectionFormat, String name, Object * application/json; charset=UTF8 * APPLICATION/JSON * application/vnd.company+json - * "* / *" is also default to JSON + * "*{@literal /}*" is also considered JSON by this method. * * @param mime MIME * @return True if the MIME type is JSON */ public boolean isJsonMime(String mime) { - String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; - return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); + return mime != null && (mime.equals("*/*") || JSON_MIME_PATTERN.matcher(mime).matches()); } /** @@ -713,8 +718,8 @@ public boolean isJsonMime(String mime) { * @return The Accept header to use. If the given array is empty, * null will be returned (not to set the Accept header explicitly). */ - public String selectHeaderAccept(String[] accepts) { - if (accepts.length == 0) { + public String selectHeaderAccept(String... accepts) { + if (accepts == null || accepts.length == 0) { return null; } for (String accept : accepts) { @@ -734,8 +739,8 @@ public String selectHeaderAccept(String[] accepts) { * @return The Content-Type header to use. If the given array is empty, * JSON will be used. */ - public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { + public String selectHeaderContentType(String... contentTypes) { + if (contentTypes == null || contentTypes.length == 0) { return "application/json"; } for (String contentType : contentTypes) { @@ -779,7 +784,17 @@ public Entity serialize(Object obj, Map formParams, String co File file = (File) param.getValue(); FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()) .fileName(file.getName()).size(file.length()).build(); - multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, MediaType.APPLICATION_OCTET_STREAM_TYPE)); + + // Attempt to probe the content type for the file so that the form part is more correctly + // and precisely identified, but fall back to application/octet-stream if that fails. + MediaType type; + try { + type = MediaType.valueOf(Files.probeContentType(file.toPath())); + } catch (IOException | IllegalArgumentException e) { + type = MediaType.APPLICATION_OCTET_STREAM_TYPE; + } + + multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, type)); } else { FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()).build(); multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(param.getValue()))); @@ -873,11 +888,6 @@ public T deserialize(Response response, GenericType returnType) throws Ap return file; } - String contentType = null; - List contentTypes = response.getHeaders().get("Content-Type"); - if (contentTypes != null && !contentTypes.isEmpty()) - contentType = String.valueOf(contentTypes.get(0)); - // read the entity stream multiple times response.bufferEntity(); @@ -904,7 +914,7 @@ public File downloadFileFromResponse(Response response) throws ApiException { /** *

Prepare the file for download from the response.

* - * @param response a {@link javax.ws.rs.core.Response} object. + * @param response a {@link jakarta.ws.rs.core.Response} object. * @return a {@link java.io.File} object. * @throws java.io.IOException if any. */ @@ -979,14 +989,11 @@ public ApiResponse invokeAPI( boolean isBodyNullable) throws ApiException { - // Not using `.target(targetURL).path(path)` below, - // to support (constant) query string in `path`, e.g. "/posts?draft=1" String targetURL; - if (serverIndex != null && operationServers.containsKey(operation)) { - Integer index = operationServerIndex.containsKey(operation) ? operationServerIndex.get(operation) : serverIndex; - Map variables = operationServerVariables.containsKey(operation) ? - operationServerVariables.get(operation) : serverVariables; - List serverConfigurations = operationServers.get(operation); + List serverConfigurations; + if (serverIndex != null && (serverConfigurations = operationServers.get(operation)) != null) { + int index = operationServerIndex.getOrDefault(operation, serverIndex).intValue(); + Map variables = operationServerVariables.getOrDefault(operation, serverVariables); if (index < 0 || index >= serverConfigurations.size()) { throw new ArrayIndexOutOfBoundsException( String.format( @@ -997,6 +1004,8 @@ public ApiResponse invokeAPI( } else { targetURL = this.basePath + path; } + // Not using `.target(targetURL).path(path)` below, + // to support (constant) query string in `path`, e.g. "/posts?draft=1" WebTarget target = httpClient.target(targetURL); if (queryParams != null) { @@ -1007,11 +1016,10 @@ public ApiResponse invokeAPI( } } - Invocation.Builder invocationBuilder; + Invocation.Builder invocationBuilder = target.request(); + if (accept != null) { - invocationBuilder = target.request().accept(accept); - } else { - invocationBuilder = target.request(); + invocationBuilder = invocationBuilder.accept(accept); } for (Entry entry : cookieParams.entrySet()) { @@ -1034,15 +1042,17 @@ public ApiResponse invokeAPI( Map allHeaderParams = new HashMap<>(defaultHeaderMap); allHeaderParams.putAll(headerParams); - // update different parameters (e.g. headers) for authentication - updateParamsForAuth( - authNames, - queryParams, - allHeaderParams, - cookieParams, - null, - method, - target.getUri()); + if (authNames != null) { + // update different parameters (e.g. headers) for authentication + updateParamsForAuth( + authNames, + queryParams, + allHeaderParams, + cookieParams, + null, + method, + target.getUri()); + } for (Entry entry : allHeaderParams.entrySet()) { String value = entry.getValue(); @@ -1056,10 +1066,11 @@ public ApiResponse invokeAPI( try { response = sendRequest(method, invocationBuilder, entity); - int statusCode = response.getStatusInfo().getStatusCode(); + final int statusCode = response.getStatusInfo().getStatusCode(); + Map> responseHeaders = buildResponseHeaders(response); - if (response.getStatusInfo() == Status.NO_CONTENT) { + if (statusCode == Status.NO_CONTENT.getStatusCode()) { return new ApiResponse(statusCode, responseHeaders); } else if (response.getStatusInfo().getFamily() == Status.Family.SUCCESSFUL) { if (returnType == null) { @@ -1125,8 +1136,8 @@ protected Client buildHttpClient() { clientConfig = getDefaultClientConfig(); ClientBuilder clientBuilder = ClientBuilder.newBuilder(); - customizeClientBuilder(clientBuilder); clientBuilder = clientBuilder.withConfig(clientConfig); + customizeClientBuilder(clientBuilder); return clientBuilder.build(); } @@ -1170,7 +1181,7 @@ public ClientConfig getDefaultClientConfig() { * To completely disable certificate validation (at your own risk), you can * override this method and invoke disableCertificateValidation(clientBuilder). * - * @param clientBuilder a {@link javax.ws.rs.client.ClientBuilder} object. + * @param clientBuilder a {@link jakarta.ws.rs.client.ClientBuilder} object. */ protected void customizeClientBuilder(ClientBuilder clientBuilder) { // No-op extension point @@ -1182,7 +1193,7 @@ protected void customizeClientBuilder(ClientBuilder clientBuilder) { * Please note that trusting all certificates is extremely risky. * This may be useful in a development environment with self-signed certificates. * - * @param clientBuilder a {@link javax.ws.rs.client.ClientBuilder} object. + * @param clientBuilder a {@link jakarta.ws.rs.client.ClientBuilder} object. * @throws java.security.KeyManagementException if any. * @throws java.security.NoSuchAlgorithmException if any. */ @@ -1209,14 +1220,14 @@ public void checkServerTrusted(X509Certificate[] certs, String authType) { /** *

Build the response headers.

* - * @param response a {@link javax.ws.rs.core.Response} object. + * @param response a {@link jakarta.ws.rs.core.Response} object. * @return a {@link java.util.Map} of response headers. */ protected Map> buildResponseHeaders(Response response) { - Map> responseHeaders = new HashMap>(); + Map> responseHeaders = new HashMap<>(); for (Entry> entry: response.getHeaders().entrySet()) { List values = entry.getValue(); - List headers = new ArrayList(); + List headers = new ArrayList<>(); for (Object o : values) { headers.add(String.valueOf(o)); } diff --git a/sdk/src/main/java/com/fingerprint/sdk/ApiException.java b/sdk/src/main/java/com/fingerprint/sdk/ApiException.java index 0cd031c..3d03df0 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/ApiException.java +++ b/sdk/src/main/java/com/fingerprint/sdk/ApiException.java @@ -19,8 +19,10 @@ /** * API Exception */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ApiException extends Exception { + private static final long serialVersionUID = 1L; + private int code = 0; private Map> responseHeaders = null; private String responseBody = null; diff --git a/sdk/src/main/java/com/fingerprint/sdk/Configuration.java b/sdk/src/main/java/com/fingerprint/sdk/Configuration.java index 0d073bf..2c2aae3 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/Configuration.java +++ b/sdk/src/main/java/com/fingerprint/sdk/Configuration.java @@ -13,7 +13,7 @@ package com.fingerprint.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/sdk/src/main/java/com/fingerprint/sdk/JSON.java b/sdk/src/main/java/com/fingerprint/sdk/JSON.java index 6b2d049..4c53b6d 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/JSON.java +++ b/sdk/src/main/java/com/fingerprint/sdk/JSON.java @@ -12,10 +12,10 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class JSON implements ContextResolver { private ObjectMapper mapper; diff --git a/sdk/src/main/java/com/fingerprint/sdk/JavaTimeFormatter.java b/sdk/src/main/java/com/fingerprint/sdk/JavaTimeFormatter.java index aba3b0f..f5677ff 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/JavaTimeFormatter.java +++ b/sdk/src/main/java/com/fingerprint/sdk/JavaTimeFormatter.java @@ -20,7 +20,7 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class JavaTimeFormatter { private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; diff --git a/sdk/src/main/java/com/fingerprint/sdk/Pair.java b/sdk/src/main/java/com/fingerprint/sdk/Pair.java index e9ae496..eea0ef9 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/Pair.java +++ b/sdk/src/main/java/com/fingerprint/sdk/Pair.java @@ -13,7 +13,7 @@ package com.fingerprint.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Pair { private String name = ""; private String value = ""; diff --git a/sdk/src/main/java/com/fingerprint/sdk/RFC3339DateFormat.java b/sdk/src/main/java/com/fingerprint/sdk/RFC3339DateFormat.java index 46d0f93..5c9f9ee 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/RFC3339DateFormat.java +++ b/sdk/src/main/java/com/fingerprint/sdk/RFC3339DateFormat.java @@ -22,6 +22,7 @@ import java.util.GregorianCalendar; import java.util.TimeZone; +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class RFC3339DateFormat extends DateFormat { private static final long serialVersionUID = 1L; private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); @@ -54,4 +55,4 @@ public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fie public Object clone() { return super.clone(); } -} \ No newline at end of file +} diff --git a/sdk/src/main/java/com/fingerprint/sdk/ServerConfiguration.java b/sdk/src/main/java/com/fingerprint/sdk/ServerConfiguration.java index 594279e..8b45181 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/ServerConfiguration.java +++ b/sdk/src/main/java/com/fingerprint/sdk/ServerConfiguration.java @@ -5,6 +5,7 @@ /** * Representing a Server configuration. */ +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ServerConfiguration { public String URL; public String description; @@ -42,7 +43,7 @@ public String URL(Map variables) { throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); } } - url = url.replaceAll("\\{" + name + "\\}", value); + url = url.replace("{" + name + "}", value); } return url; } diff --git a/sdk/src/main/java/com/fingerprint/sdk/ServerVariable.java b/sdk/src/main/java/com/fingerprint/sdk/ServerVariable.java index 291587b..bff497c 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/ServerVariable.java +++ b/sdk/src/main/java/com/fingerprint/sdk/ServerVariable.java @@ -5,6 +5,7 @@ /** * Representing a Server Variable for server URL template substitution. */ +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/sdk/src/main/java/com/fingerprint/sdk/StringUtil.java b/sdk/src/main/java/com/fingerprint/sdk/StringUtil.java index 0be6766..1adbf60 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/StringUtil.java +++ b/sdk/src/main/java/com/fingerprint/sdk/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/sdk/src/main/java/com/fingerprint/sdk/auth/ApiKeyAuth.java b/sdk/src/main/java/com/fingerprint/sdk/auth/ApiKeyAuth.java index 530a565..9cc9a09 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/auth/ApiKeyAuth.java +++ b/sdk/src/main/java/com/fingerprint/sdk/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBasicAuth.java b/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBasicAuth.java index 1a400e4..3bbbd56 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBasicAuth.java +++ b/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBasicAuth.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBearerAuth.java b/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBearerAuth.java index dffaed0..bae28fe 100644 --- a/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBearerAuth.java +++ b/sdk/src/main/java/com/fingerprint/sdk/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java b/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java index df51b19..3da7ec1 100644 --- a/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java +++ b/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java @@ -183,7 +183,7 @@ public void getEventBotdManyRequestsErrorTest() throws ApiException { assertEquals(response.getProducts().getIdentification().getData().getVisitorId(), "Ibk1527CUFmcnjLwIs4A9"); assert response.getProducts().getBotd().getData() == null; assert response.getProducts().getBotd().getError() != null; - assert response.getProducts().getBotd().getError().getCode() == ProductError.CodeEnum.TOOMANYREQUESTS; + assert response.getProducts().getBotd().getError().getCode() == ProductError.CodeEnum.TOO_MANY_REQUESTS; } @Test diff --git a/template/libraries/jersey2/JSON.mustache b/template/libraries/jersey3/JSON.mustache similarity index 99% rename from template/libraries/jersey2/JSON.mustache rename to template/libraries/jersey3/JSON.mustache index 3c99f8d..8c2720e 100644 --- a/template/libraries/jersey2/JSON.mustache +++ b/template/libraries/jersey3/JSON.mustache @@ -19,8 +19,8 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.ContextResolver; {{>generatedAnnotation}} public class JSON implements ContextResolver { diff --git a/template/libraries/jersey2/api.mustache b/template/libraries/jersey3/api.mustache similarity index 99% rename from template/libraries/jersey2/api.mustache rename to template/libraries/jersey3/api.mustache index 76473d3..bf7b1af 100644 --- a/template/libraries/jersey2/api.mustache +++ b/template/libraries/jersey3/api.mustache @@ -7,7 +7,7 @@ import {{invokerPackage}}.Configuration; import {{invokerPackage}}.Pair; import {{invokerPackage}}.Region; -import javax.ws.rs.core.GenericType; +import jakarta.ws.rs.core.GenericType; {{#imports}}import {{import}}; {{/imports}} diff --git a/template/libraries/jersey2/api_doc.mustache b/template/libraries/jersey3/api_doc.mustache similarity index 100% rename from template/libraries/jersey2/api_doc.mustache rename to template/libraries/jersey3/api_doc.mustache diff --git a/template/model.mustache b/template/model.mustache new file mode 100644 index 0000000..2f21d6d --- /dev/null +++ b/template/model.mustache @@ -0,0 +1,28 @@ +package {{package}}; + +{{^x-is-composed-model}} +import java.util.Objects; +{{#imports}}import {{import}}; +{{/imports}} +{{#jackson}} +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +{{/jackson}} +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; +{{/x-is-composed-model}} + +{{#models}} +{{#model}} +{{#isComposedModel}} +{{>interface}} +{{/isComposedModel}} +{{^isComposedModel}} +{{#isEnum}} +{{>enumOuterClass}} +{{/isEnum}} +{{^isEnum}} +{{>pojo}} +{{/isEnum}} +{{/isComposedModel}} +{{/model}} +{{/models}} \ No newline at end of file diff --git a/template/pojo.mustache b/template/pojo.mustache index ad59848..ce89dda 100644 --- a/template/pojo.mustache +++ b/template/pojo.mustache @@ -1,9 +1,11 @@ /** * {{{description}}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}} * @deprecated{{/isDeprecated}} - */{{#isDeprecated}} -@Deprecated{{/isDeprecated}}{{#description}} -@ApiModel(description = "{{{.}}}"){{/description}} + */ +{{#isDeprecated}} +@Deprecated{{/isDeprecated}} +{{#description}} +@Schema(description = "{{{.}}}"){{/description}} {{#jackson}} @JsonPropertyOrder({ {{#vars}} @@ -199,19 +201,19 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/deprecated}} {{#required}} {{#isNullable}} - @javax.annotation.Nullable + @jakarta.annotation.Nullable {{/isNullable}} {{^isNullable}} - @javax.annotation.Nonnull + @jakarta.annotation.Nonnull {{/isNullable}} {{/required}} {{^required}} - @javax.annotation.Nullable + @jakarta.annotation.Nullable {{/required}} {{#jsonb}} @JsonbProperty("{{baseName}}") {{/jsonb}} -{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} @ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}") +{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} @Schema({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}description = "{{{description}}}") {{#vendorExtensions.x-extra-annotation}} {{{vendorExtensions.x-extra-annotation}}} {{/vendorExtensions.x-extra-annotation}}