Package com.stytch.sdk.consumer.otp
Class OTP.WhatsAppOTP.Parameters
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class OTP.WhatsAppOTP.Parameters implements Parcelable
Data class used for wrapping parameters used with WhatsApp OTP
-
-
Field Summary
Fields Modifier and Type Field Description private final StringphoneNumberprivate final IntegerexpirationMinutesprivate final Localelocale
-
Constructor Summary
Constructors Constructor Description OTP.WhatsAppOTP.Parameters(String phoneNumber, Integer expirationMinutes, Locale locale)OTP.WhatsAppOTP.Parameters(String phoneNumber, Integer expirationMinutes)OTP.WhatsAppOTP.Parameters(String phoneNumber)
-
Method Summary
Modifier and Type Method Description final StringgetPhoneNumber()the number the OTP code should be sent to via WhatsApp, in E.164 format (i.e. final IntegergetExpirationMinutes()indicates how long the OTP should last before it expires final LocalegetLocale()-
-
Constructor Detail
-
OTP.WhatsAppOTP.Parameters
OTP.WhatsAppOTP.Parameters(String phoneNumber, Integer expirationMinutes, Locale locale)
-
OTP.WhatsAppOTP.Parameters
OTP.WhatsAppOTP.Parameters(String phoneNumber, Integer expirationMinutes)
-
OTP.WhatsAppOTP.Parameters
OTP.WhatsAppOTP.Parameters(String phoneNumber)
-
-
Method Detail
-
getPhoneNumber
final String getPhoneNumber()
the number the OTP code should be sent to via WhatsApp, in E.164 format (i.e. +1XXXXXXXXXX)
-
getExpirationMinutes
final Integer getExpirationMinutes()
indicates how long the OTP should last before it expires
-
getLocale
final Locale getLocale()
-
-
-
-