Class VerificationCreateParams.Options
-
- All Implemented Interfaces:
public final class VerificationCreateParams.Options
Verification options
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
VerificationCreateParams.Options.Builder
A builder for Options.
public final class
VerificationCreateParams.Options.AppRealm
This allows you to automatically retrieve and fill the OTP code on mobile apps. Currently only Android devices are supported.
public final class
VerificationCreateParams.Options.Variables
The variables to be replaced in the template.
-
Method Summary
Modifier and Type Method Description final Optional<VerificationCreateParams.Options.AppRealm>
appRealm()
This allows you to automatically retrieve and fill the OTP code on mobile apps. final Optional<String>
callbackUrl()
The URL where webhooks will be sent when verification events occur, including verification creation, attempt creation, and delivery status changes. final Optional<Long>
codeSize()
The size of the code generated. final Optional<String>
customCode()
The custom code to use for OTP verification. final Optional<String>
locale()
A BCP-47 formatted locale string with the language the text message will be sent to. final Optional<String>
senderId()
The Sender ID to use for this message. final Optional<String>
templateId()
The identifier of a verification template. final Optional<VerificationCreateParams.Options.Variables>
variables()
The variables to be replaced in the template. final JsonField<VerificationCreateParams.Options.AppRealm>
_appRealm()
Returns the raw JSON value of appRealm. final JsonField<String>
_callbackUrl()
Returns the raw JSON value of callbackUrl. final JsonField<Long>
_codeSize()
Returns the raw JSON value of codeSize. final JsonField<String>
_customCode()
Returns the raw JSON value of customCode. final JsonField<String>
_locale()
Returns the raw JSON value of locale. final JsonField<String>
_senderId()
Returns the raw JSON value of senderId. final JsonField<String>
_templateId()
Returns the raw JSON value of templateId. final JsonField<VerificationCreateParams.Options.Variables>
_variables()
Returns the raw JSON value of variables. final Map<String, JsonValue>
_additionalProperties()
final VerificationCreateParams.Options.Builder
toBuilder()
final VerificationCreateParams.Options
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static VerificationCreateParams.Options.Builder
builder()
Returns a mutable builder for constructing an instance of Options. -
-
Method Detail
-
appRealm
final Optional<VerificationCreateParams.Options.AppRealm> appRealm()
This allows you to automatically retrieve and fill the OTP code on mobile apps. Currently only Android devices are supported.
-
callbackUrl
final Optional<String> callbackUrl()
The URL where webhooks will be sent when verification events occur, including verification creation, attempt creation, and delivery status changes. For more details, refer to /verify/v2/documentation/webhook.
-
codeSize
final Optional<Long> codeSize()
The size of the code generated. It should be between 4 and 8. Defaults to the code size specified from the Dashboard.
-
customCode
final Optional<String> customCode()
The custom code to use for OTP verification. This feature is only available for compatibility purposes and subject to Prelude’s approval. Contact us to discuss your use case. For more details, refer to /introduction/concepts/multi-routing.
-
locale
final Optional<String> locale()
A BCP-47 formatted locale string with the language the text message will be sent to. If there's no locale set, the language will be determined by the country code of the phone number. If the language specified doesn't exist, it defaults to US English.
-
senderId
final Optional<String> senderId()
The Sender ID to use for this message. The Sender ID needs to be enabled by Prelude.
-
templateId
final Optional<String> templateId()
The identifier of a verification template. It applies use case-specific settings, such as the message content or certain verification parameters.
-
variables
final Optional<VerificationCreateParams.Options.Variables> variables()
The variables to be replaced in the template.
-
_appRealm
final JsonField<VerificationCreateParams.Options.AppRealm> _appRealm()
Returns the raw JSON value of appRealm.
Unlike appRealm, this method doesn't throw if the JSON field has an unexpected type.
-
_callbackUrl
final JsonField<String> _callbackUrl()
Returns the raw JSON value of callbackUrl.
Unlike callbackUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_codeSize
final JsonField<Long> _codeSize()
Returns the raw JSON value of codeSize.
Unlike codeSize, this method doesn't throw if the JSON field has an unexpected type.
-
_customCode
final JsonField<String> _customCode()
Returns the raw JSON value of customCode.
Unlike customCode, this method doesn't throw if the JSON field has an unexpected type.
-
_locale
final JsonField<String> _locale()
Returns the raw JSON value of locale.
Unlike locale, this method doesn't throw if the JSON field has an unexpected type.
-
_senderId
final JsonField<String> _senderId()
Returns the raw JSON value of senderId.
Unlike senderId, this method doesn't throw if the JSON field has an unexpected type.
-
_templateId
final JsonField<String> _templateId()
Returns the raw JSON value of templateId.
Unlike templateId, this method doesn't throw if the JSON field has an unexpected type.
-
_variables
final JsonField<VerificationCreateParams.Options.Variables> _variables()
Returns the raw JSON value of variables.
Unlike variables, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final VerificationCreateParams.Options.Builder toBuilder()
-
validate
final VerificationCreateParams.Options validate()
-
builder
final static VerificationCreateParams.Options.Builder builder()
Returns a mutable builder for constructing an instance of Options.
-
-
-
-