Package com.stytch.sdk.b2b.otp
Class OTP.Email.Discovery.SendParameters
-
- All Implemented Interfaces:
public final class OTP.Email.Discovery.SendParametersA data class wrapping the parameters needed to send an Email Discovery OTP
-
-
Field Summary
Fields Modifier and Type Field Description private final StringemailAddressprivate final StringloginTemplateIdprivate final Localelocale
-
Constructor Summary
Constructors Constructor Description OTP.Email.Discovery.SendParameters(String emailAddress, String loginTemplateId, Locale locale)OTP.Email.Discovery.SendParameters(String emailAddress, String loginTemplateId)OTP.Email.Discovery.SendParameters(String emailAddress)
-
Method Summary
Modifier and Type Method Description final StringgetEmailAddress()The email address of the member final StringgetLoginTemplateId()Use a custom template for login emails. final LocalegetLocale()The locale is used to determine which language to use in the email. -
-
Constructor Detail
-
OTP.Email.Discovery.SendParameters
OTP.Email.Discovery.SendParameters(String emailAddress, String loginTemplateId, Locale locale)
-
OTP.Email.Discovery.SendParameters
OTP.Email.Discovery.SendParameters(String emailAddress, String loginTemplateId)
-
OTP.Email.Discovery.SendParameters
OTP.Email.Discovery.SendParameters(String emailAddress)
-
-
Method Detail
-
getEmailAddress
final String getEmailAddress()
The email address of the member
-
getLoginTemplateId
final String getLoginTemplateId()
Use a custom template for login emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for OTP - Login.
-
getLocale
final Locale getLocale()
The locale is used to determine which language to use in the email. Parameter is a []IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. "en". Currently supported languages are English ("en"), Spanish ("es"), and Brazilian Portuguese ("pt-br"); if no value is provided, the copy defaults to English.
-
-
-
-