Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@
*/
public enum HSMCategory {

ACCOUNT_UPDATE("ACCOUNT_UPDATE"),
PAYMENT_UPDATE("PAYMENT_UPDATE"),
PERSONAL_FINANCE_UPDATE("PERSONAL_FINANCE_UPDATE"),
SHIPPING_UPDATE("SHIPPING_UPDATE"),
RESERVATION_UPDATE("RESERVATION_UPDATE"),
ISSUE_RESOLUTION("ISSUE_RESOLUTION"),
APPOINTMENT_UPDATE("APPOINTMENT_UPDATE"),
TRANSPORTATION_UPDATE("TRANSPORTATION_UPDATE"),
TICKET_UPDATE("TICKET_UPDATE"),
ALERT_UPDATE("ALERT_UPDATE");
OTP("OTP"),
TRANSACTIONAL("TRANSACTIONAL"),
MARKETING("MARKETING");

private final String category;

Expand Down
4 changes: 2 additions & 2 deletions api/src/test/java/com/messagebird/TestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public static TemplateResponse createWhatsAppTemplateResponse(final String templ
final TemplateResponse templateResponse = new TemplateResponse();
templateResponse.setName(templateName);
templateResponse.setLanguage(language);
templateResponse.setCategory(HSMCategory.ACCOUNT_UPDATE);
templateResponse.setCategory(HSMCategory.OTP);
templateResponse.setStatus(HSMStatus.NEW);
templateResponse.setCreatedAt(new Date());
templateResponse.setUpdatedAt(new Date());
Expand All @@ -326,7 +326,7 @@ public static Template createWhatsAppTemplate(final String templateName, final S
final Template template = new Template();
template.setName(templateName);
template.setLanguage(language);
template.setCategory(HSMCategory.ACCOUNT_UPDATE);
template.setCategory(HSMCategory.OTP);

final List<HSMComponent> components = new ArrayList<>();
components.add(createHSMComponentHeader());
Expand Down
2 changes: 1 addition & 1 deletion examples/src/main/java/ExampleCreateTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static void main(String[] args) {
template.setLanguage("en_US");
template.setWABAID(args[2]);
template.setComponents(components);
template.setCategory(HSMCategory.ACCOUNT_UPDATE);
template.setCategory(HSMCategory.OTP);

try {
TemplateResponse response = messageBirdClient.createWhatsAppTemplate(template);
Expand Down