Skip to content

Commit cabb3ad

Browse files
feat(SMS-102): add otp service to ReSMS top class
1 parent d83c295 commit cabb3ad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/dev/resms/ReSMS.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package dev.resms;
22

3+
import dev.resms.services.otp.Otp;
34
import dev.resms.services.sms.Sms;
45
import lombok.RequiredArgsConstructor;
56

@@ -17,4 +18,13 @@ public class ReSMS {
1718
public Sms sms() {
1819
return new Sms(apiKey);
1920
}
21+
22+
/**
23+
* Returns an Otp object that can be used to interact with the Otp service.
24+
*
25+
* @return An Otp object.
26+
*/
27+
public Otp otp() {
28+
return new Otp(apiKey);
29+
}
2030
}

0 commit comments

Comments
 (0)