@@ -102,8 +102,7 @@ public UsersBatchResponse createBatch(List<BatchUserRequest> users) throws Desco
102102 }
103103
104104 @ Override
105- public UserResponseDetails createTestUser (String loginId , UserRequest request )
106- throws DescopeException {
105+ public UserResponseDetails createTestUser (String loginId , UserRequest request ) throws DescopeException {
107106 if (request == null ) {
108107 request = new UserRequest ();
109108 }
@@ -127,6 +126,7 @@ public UserResponseDetails invite(String loginId, UserRequest request, InviteOpt
127126 addIfNotBlank (req , "inviteUrl" , options .getInviteUrl ());
128127 addIfNotNull (req , "sendSMS" , options .getSendSMS ());
129128 addIfNotNull (req , "sendEmail" , options .getSendEmail ());
129+ addIfNotNull (req , "templateId" , options .getTemplateId ());
130130 }
131131 req .putAll (request .toMap ());
132132 URI createUserUri = composeCreateUserUri ();
@@ -241,8 +241,7 @@ public UserResponseDetails loadByUserId(String userId) throws DescopeException {
241241 }
242242
243243 @ Override
244- public AllUsersResponseDetails searchAll (UserSearchRequest request )
245- throws DescopeException {
244+ public AllUsersResponseDetails searchAll (UserSearchRequest request ) throws DescopeException {
246245 if (request == null ) {
247246 request = UserSearchRequest .builder ().limit (0 ).page (0 ).build ();
248247 }
@@ -281,8 +280,7 @@ public UserResponseDetails deactivate(String loginId) throws DescopeException {
281280 }
282281
283282 @ Override
284- public UserResponseDetails updateEmail (String loginId , String email , Boolean isVerified )
285- throws DescopeException {
283+ public UserResponseDetails updateEmail (String loginId , String email , Boolean isVerified ) throws DescopeException {
286284 if (StringUtils .isBlank (loginId )) {
287285 throw ServerCommonException .invalidArgument ("Login ID" );
288286 }
@@ -293,8 +291,7 @@ public UserResponseDetails updateEmail(String loginId, String email, Boolean isV
293291 }
294292
295293 @ Override
296- public UserResponseDetails updatePhone (String loginId , String phone , Boolean isVerified )
297- throws DescopeException {
294+ public UserResponseDetails updatePhone (String loginId , String phone , Boolean isVerified ) throws DescopeException {
298295 if (StringUtils .isBlank (loginId )) {
299296 throw ServerCommonException .invalidArgument ("Login ID" );
300297 }
@@ -305,8 +302,7 @@ public UserResponseDetails updatePhone(String loginId, String phone, Boolean isV
305302 }
306303
307304 @ Override
308- public UserResponseDetails updateDisplayName (String loginId , String displayName )
309- throws DescopeException {
305+ public UserResponseDetails updateDisplayName (String loginId , String displayName ) throws DescopeException {
310306 if (StringUtils .isBlank (loginId )) {
311307 throw ServerCommonException .invalidArgument ("Login ID" );
312308 }
@@ -317,8 +313,8 @@ public UserResponseDetails updateDisplayName(String loginId, String displayName)
317313 }
318314
319315 @ Override
320- public UserResponseDetails updateDisplayNames (String loginId , String givenName , String middleName ,
321- String familyName ) throws DescopeException {
316+ public UserResponseDetails updateDisplayNames (String loginId , String givenName , String middleName , String familyName )
317+ throws DescopeException {
322318 if (StringUtils .isBlank (loginId )) {
323319 throw ServerCommonException .invalidArgument ("Login ID" );
324320 }
@@ -341,8 +337,7 @@ public UserResponseDetails updatePicture(String loginId, String picture) throws
341337 }
342338
343339 @ Override
344- public UserResponseDetails updateCustomAttributes (String loginId , String key , Object value )
345- throws DescopeException {
340+ public UserResponseDetails updateCustomAttributes (String loginId , String key , Object value ) throws DescopeException {
346341 if (StringUtils .isBlank (loginId )) {
347342 throw ServerCommonException .invalidArgument ("Login ID" );
348343 }
@@ -389,8 +384,7 @@ public UserResponseDetails addRoles(String loginId, List<String> roles) throws D
389384 }
390385
391386 @ Override
392- public UserResponseDetails removeRoles (String loginId , List <String > roles )
393- throws DescopeException {
387+ public UserResponseDetails removeRoles (String loginId , List <String > roles ) throws DescopeException {
394388 if (StringUtils .isBlank (loginId )) {
395389 throw ServerCommonException .invalidArgument ("Login ID" );
396390 }
@@ -543,8 +537,7 @@ public void expirePassword(String loginId) throws DescopeException {
543537 }
544538
545539 @ Override
546- public ProviderTokenResponse getProviderToken (String loginId , String provider )
547- throws DescopeException {
540+ public ProviderTokenResponse getProviderToken (String loginId , String provider ) throws DescopeException {
548541 if (StringUtils .isBlank (loginId )) {
549542 throw ServerCommonException .invalidArgument ("Login ID" );
550543 }
@@ -569,9 +562,8 @@ public OTPTestUserResponse generateOtpForTestUser(String loginId, DeliveryMethod
569562 }
570563
571564 @ Override
572- public MagicLinkTestUserResponse generateMagicLinkForTestUser (
573- String loginId , String uri , DeliveryMethod deliveryMethod )
574- throws DescopeException {
565+ public MagicLinkTestUserResponse generateMagicLinkForTestUser (String loginId , String uri ,
566+ DeliveryMethod deliveryMethod ) throws DescopeException {
575567 if (StringUtils .isBlank (loginId )) {
576568 throw ServerCommonException .invalidArgument ("Login ID" );
577569 }
@@ -582,8 +574,8 @@ public MagicLinkTestUserResponse generateMagicLinkForTestUser(
582574 }
583575
584576 @ Override
585- public EnchantedLinkTestUserResponse generateEnchantedLinkForTestUser (
586- String loginId , String uri ) throws DescopeException {
577+ public EnchantedLinkTestUserResponse generateEnchantedLinkForTestUser (String loginId , String uri )
578+ throws DescopeException {
587579 if (StringUtils .isBlank (loginId )) {
588580 throw ServerCommonException .invalidArgument ("Login ID" );
589581 }
@@ -599,12 +591,11 @@ public List<UserHistoryResponse> history(List<String> userIds) throws DescopeExc
599591 throw ServerCommonException .invalidArgument ("User IDs" );
600592 }
601593 ApiProxy apiProxy = getApiProxy ();
602- return apiProxy .postAndGetArray (getUri (USER_HISTORY_LINK ), userIds ,
603- new TypeReference < List < UserHistoryResponse >>() { });
594+ return apiProxy .postAndGetArray (getUri (USER_HISTORY_LINK ), userIds , new TypeReference < List < UserHistoryResponse >>() {
595+ });
604596 }
605597
606- public String generateEmbeddedLink (
607- String loginId , Map <String , Object > customClaims ) throws DescopeException {
598+ public String generateEmbeddedLink (String loginId , Map <String , Object > customClaims ) throws DescopeException {
608599 if (StringUtils .isBlank (loginId )) {
609600 throw ServerCommonException .invalidArgument ("Login ID" );
610601 }
0 commit comments