public class EmailTemplatesEntity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
apiToken |
protected okhttp3.HttpUrl |
baseUrl |
protected okhttp3.OkHttpClient |
client |
static java.lang.String |
TEMPLATE_BLOCKED_ACCOUNT |
static java.lang.String |
TEMPLATE_CHANGE_PASSWORD |
static java.lang.String |
TEMPLATE_ENROLLMENT_EMAIL |
static java.lang.String |
TEMPLATE_MFA_OOB_CODE |
static java.lang.String |
TEMPLATE_PASSWORD_RESET |
static java.lang.String |
TEMPLATE_RESET_EMAIL |
static java.lang.String |
TEMPLATE_STOLEN_CREDENTIALS |
static java.lang.String |
TEMPLATE_VERIFY_EMAIL |
static java.lang.String |
TEMPLATE_WELCOME_EMAIL |
Modifier and Type | Method and Description |
---|---|
Request<EmailTemplate> |
create(EmailTemplate template)
Create an Email Template.
|
Request<EmailTemplate> |
get(java.lang.String templateName)
Request the Email Templates.
|
Request<EmailTemplate> |
update(java.lang.String templateName,
EmailTemplate template)
Patches the existing Email Template.
|
public static final java.lang.String TEMPLATE_VERIFY_EMAIL
public static final java.lang.String TEMPLATE_RESET_EMAIL
public static final java.lang.String TEMPLATE_WELCOME_EMAIL
public static final java.lang.String TEMPLATE_BLOCKED_ACCOUNT
public static final java.lang.String TEMPLATE_STOLEN_CREDENTIALS
public static final java.lang.String TEMPLATE_ENROLLMENT_EMAIL
public static final java.lang.String TEMPLATE_CHANGE_PASSWORD
public static final java.lang.String TEMPLATE_PASSWORD_RESET
public static final java.lang.String TEMPLATE_MFA_OOB_CODE
protected final okhttp3.OkHttpClient client
protected final okhttp3.HttpUrl baseUrl
protected final java.lang.String apiToken
public Request<EmailTemplate> get(java.lang.String templateName)
templateName
- the template name to request. You can use any of the constants defined in EmailTemplatesEntity
public Request<EmailTemplate> create(EmailTemplate template)
template
- the template data to setpublic Request<EmailTemplate> update(java.lang.String templateName, EmailTemplate template)
templateName
- the name of the template to update. You can use any of the constants defined in EmailTemplatesEntity
template
- the email template data to set.