Class CreateNewPasswordRequest

java.lang.Object
com.dzidzi.dto.credential.CreateNewPasswordRequest

public class CreateNewPasswordRequest extends Object
CreateNewPasswordRequest represents the DTO request containing the objects used to complete an account with UserRole.SERVICE, UserRole.COURIER, UserRole.RESTAURANT_ADMIN and UserRole.ADMIN.
  • Method Details

    • builder

      public static CreateNewPasswordRequest.Builder builder()
    • getNewPass

      public String getNewPass()
      The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.
    • getRepeatPass

      public String getRepeatPass()
      The same password typed in newPass
    • getUsername

      public String getUsername()
      The new username to use for your account
    • setNewPass

      public void setNewPass(String newPass)
      The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.
    • setRepeatPass

      public void setRepeatPass(String repeatPass)
      The same password typed in newPass
    • setUsername

      public void setUsername(String username)
      The new username to use for your account