diff --git a/.stats.yml b/.stats.yml index 0d90c5c..e8e2674 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 5 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-64c1896dedae5302f4967c8edb2a675a48cba330193a20bdda1409fe3f9f9972.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-c2d315d9176eaab871bd9caca815b3806646706b9ef1af0ddbb2253ffd821efb.yml diff --git a/prelude-java-core/src/main/kotlin/so/prelude/sdk/models/VerificationCreateParams.kt b/prelude-java-core/src/main/kotlin/so/prelude/sdk/models/VerificationCreateParams.kt index 90f950b..07b5ca2 100644 --- a/prelude-java-core/src/main/kotlin/so/prelude/sdk/models/VerificationCreateParams.kt +++ b/prelude-java-core/src/main/kotlin/so/prelude/sdk/models/VerificationCreateParams.kt @@ -725,7 +725,7 @@ constructor( private val deviceModel: String?, private val osVersion: String?, private val appVersion: String?, - private val isTrustedUser: String?, + private val isTrustedUser: Boolean?, private val additionalProperties: Map, ) { @@ -754,7 +754,7 @@ constructor( * This signal should provide a higher level of trust, indicating that the user is genuine. * For more details, refer to [Signals](/guides/prevent-fraud#signals). */ - @JsonProperty("is_trusted_user") fun isTrustedUser(): String? = isTrustedUser + @JsonProperty("is_trusted_user") fun isTrustedUser(): Boolean? = isTrustedUser @JsonAnyGetter @ExcludeMissing @@ -775,7 +775,7 @@ constructor( private var deviceModel: String? = null private var osVersion: String? = null private var appVersion: String? = null - private var isTrustedUser: String? = null + private var isTrustedUser: Boolean? = null private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -823,7 +823,7 @@ constructor( * genuine. For more details, refer to [Signals](/guides/prevent-fraud#signals). */ @JsonProperty("is_trusted_user") - fun isTrustedUser(isTrustedUser: String) = apply { this.isTrustedUser = isTrustedUser } + fun isTrustedUser(isTrustedUser: Boolean) = apply { this.isTrustedUser = isTrustedUser } fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() diff --git a/prelude-java-core/src/test/kotlin/so/prelude/sdk/models/VerificationCreateParamsTest.kt b/prelude-java-core/src/test/kotlin/so/prelude/sdk/models/VerificationCreateParamsTest.kt index efd9fb8..b0ea933 100644 --- a/prelude-java-core/src/test/kotlin/so/prelude/sdk/models/VerificationCreateParamsTest.kt +++ b/prelude-java-core/src/test/kotlin/so/prelude/sdk/models/VerificationCreateParamsTest.kt @@ -36,7 +36,7 @@ class VerificationCreateParamsTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -74,7 +74,7 @@ class VerificationCreateParamsTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -110,7 +110,7 @@ class VerificationCreateParamsTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) diff --git a/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ErrorHandlingTest.kt b/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ErrorHandlingTest.kt index 9dee3bb..bcd3aa5 100644 --- a/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ErrorHandlingTest.kt +++ b/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ErrorHandlingTest.kt @@ -84,7 +84,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -139,7 +139,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -187,7 +187,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -235,7 +235,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -287,7 +287,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -335,7 +335,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -387,7 +387,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -435,7 +435,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -483,7 +483,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -536,7 +536,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) @@ -583,7 +583,7 @@ class ErrorHandlingTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) diff --git a/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ServiceParamsTest.kt b/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ServiceParamsTest.kt index c2679da..ccef2d7 100644 --- a/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ServiceParamsTest.kt +++ b/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/ServiceParamsTest.kt @@ -83,7 +83,7 @@ class ServiceParamsTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() ) diff --git a/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/blocking/VerificationServiceTest.kt b/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/blocking/VerificationServiceTest.kt index 560cccc..7cefe36 100644 --- a/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/blocking/VerificationServiceTest.kt +++ b/prelude-java-core/src/test/kotlin/so/prelude/sdk/services/blocking/VerificationServiceTest.kt @@ -49,7 +49,7 @@ class VerificationServiceTest { .deviceModel("iPhone17,2") .devicePlatform(VerificationCreateParams.Signals.DevicePlatform.ANDROID) .ip("192.0.2.1") - .isTrustedUser("is_trusted_user") + .isTrustedUser(false) .osVersion("18.0.1") .build() )