Class: PreludeSDK::Models::VerificationCreateParams::Options::AppRealm

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/prelude_sdk/models/verification_create_params.rb,
sig/prelude_sdk/models/verification_create_params.rbs

Overview

See Also:

  • PreludeSDK::Models::VerificationCreateParams::Options#app_realm

Defined Under Namespace

Modules: Platform

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(platform:, value:) ⇒ Object

Some parameter documentations has been truncated, see PreludeSDK::Models::VerificationCreateParams::Options::AppRealm for more details.

This allows automatic OTP retrieval on mobile apps and web browsers. Supported platforms are Android (SMS Retriever API) and Web (WebOTP API).

Parameters:



# File 'lib/prelude_sdk/models/verification_create_params.rb', line 297

Instance Attribute Details

#platformSymbol, PreludeSDK::Models::VerificationCreateParams::Options::AppRealm::Platform

The platform for automatic OTP retrieval. Use "android" for the SMS Retriever API or "web" for the WebOTP API.

Parameters:

  • value (PreludeSDK::Models::VerificationCreateParams::Options::AppRealm::platform)

Returns:



284
# File 'lib/prelude_sdk/models/verification_create_params.rb', line 284

required :platform, enum: -> { PreludeSDK::VerificationCreateParams::Options::AppRealm::Platform }

#valueString

The value depends on the platform:

Parameters:

  • value (String)

Returns:

  • (String)


295
# File 'lib/prelude_sdk/models/verification_create_params.rb', line 295

required :value, String

Instance Method Details

#to_hash{

Returns:

  • ({)


230
# File 'sig/prelude_sdk/models/verification_create_params.rbs', line 230

def to_hash: -> {