Class AddBranchRequest

java.lang.Object
com.dzidzi.dto.restaurant.AddBranchRequest

public class AddBranchRequest extends Object
AddBranchRequest represents the DTO request containing the objects used to create a new restaurant branch by the restaurant admin.
  • Method Details

    • builder

      public static AddBranchRequest.Builder builder()
    • getEmail

      public String getEmail()
      The email of the branch.
    • getUsername

      public String getUsername()
      The username of the branch. Used for login.
    • getPassword

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

      public String getBranchName()
      The name of the branch restaurant
    • getContact

      public String getContact()
      The contact of the branch restaurant
    • getContact1

      public String getContact1()
      The second contact of the branch restaurant if needed
    • getBio

      public String getBio()
      The branch restaurants bio
    • getAddress

      public AddAddressRequest getAddress()
      The address of the branch restaurant. AddAddressRequest
    • getAvatar

      public org.springframework.web.multipart.MultipartFile getAvatar()
      The profile image of the branch restaurant
    • getBackgroundImage

      public org.springframework.web.multipart.MultipartFile getBackgroundImage()
      The background image of the branch restaurant
    • setAvatar

      public void setAvatar(org.springframework.web.multipart.MultipartFile avatar)
      The profile image of the branch restaurant
    • setBackgroundImage

      public void setBackgroundImage(org.springframework.web.multipart.MultipartFile backgroundImage)
      The background image of the branch restaurant