Package africa.sendbyte.templates
Class TemplateRequest
java.lang.Object
africa.sendbyte.templates.TemplateRequest
The definition used to
create or
update a template.
Provide a name, a subject, and at least one body — html,
text, or mjml. Subject and bodies may contain Handlebars variables.
TemplateRequest req = TemplateRequest.builder()
.name("welcome")
.subject("Welcome to PayLink, {{first_name}}!")
.html("<p>Hi {{first_name}}, your account is ready.</p>")
.text("Hi {{first_name}}, your account is ready.")
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
getName
-
getSubject
-
getHtml
-
getText
-
getMjml
-
builder
-