Skip to content

Commit 70053aa

Browse files
authored
Merge pull request #235 from messagebird/Issue_234_HSMCategoryChanges
HSM Category Updated
2 parents 6baf806 + 9b5503c commit 70053aa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

api/src/main/java/com/messagebird/objects/integrations/HSMCategory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
*/
1212
public enum HSMCategory {
1313

14-
OTP("OTP"),
15-
TRANSACTIONAL("TRANSACTIONAL"),
14+
AUTHENTICATION("AUTHENTICATION"),
15+
UTILITY("UTILITY"),
1616
MARKETING("MARKETING");
1717

1818
private final String category;

api/src/test/java/com/messagebird/TestUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public static TemplateResponse createWhatsAppTemplateResponse(final String templ
305305
final TemplateResponse templateResponse = new TemplateResponse();
306306
templateResponse.setName(templateName);
307307
templateResponse.setLanguage(language);
308-
templateResponse.setCategory(HSMCategory.OTP);
308+
templateResponse.setCategory(HSMCategory.AUTHENTICATION);
309309
templateResponse.setStatus(HSMStatus.NEW);
310310
templateResponse.setCreatedAt(new Date());
311311
templateResponse.setUpdatedAt(new Date());
@@ -327,7 +327,7 @@ public static Template createWhatsAppTemplate(final String templateName, final S
327327
final Template template = new Template();
328328
template.setName(templateName);
329329
template.setLanguage(language);
330-
template.setCategory(HSMCategory.OTP);
330+
template.setCategory(HSMCategory.AUTHENTICATION);
331331

332332
final List<HSMComponent> components = new ArrayList<>();
333333
components.add(createHSMComponentHeader());

examples/src/main/java/ExampleCreateTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static void main(String[] args) {
8686
template.setLanguage("en_US");
8787
template.setWABAID(args[2]);
8888
template.setComponents(components);
89-
template.setCategory(HSMCategory.OTP);
89+
template.setCategory(HSMCategory.AUTHENTICATION);
9090

9191
try {
9292
TemplateResponse response = messageBirdClient.createWhatsAppTemplate(template);

0 commit comments

Comments
 (0)