Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 14, 2025
1 parent 3f6dc9d commit 3202953
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, JsonValue>,
) {

Expand Down Expand Up @@ -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
Expand All @@ -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<String, JsonValue> = mutableMapOf()

@JvmSynthetic
Expand Down Expand Up @@ -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<String, JsonValue>) = apply {
this.additionalProperties.clear()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down

0 comments on commit 3202953

Please sign in to comment.