Package com.dzidzi.dto.restaurant
Class AddBranchRequest
java.lang.Object
com.dzidzi.dto.restaurant.AddBranchRequest
AddBranchRequest represents the DTO request containing the objects used to create a new restaurant branch by the restaurant admin.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AddBranchRequest.Builderbuilder()The address of the branch restaurant.org.springframework.web.multipart.MultipartFileThe profile image of the branch restaurantorg.springframework.web.multipart.MultipartFileThe background image of the branch restaurantgetBio()The branch restaurants bioThe name of the branch restaurantThe contact of the branch restaurantThe second contact of the branch restaurant if neededgetEmail()The email of the branch.The password to use.The username of the branch.voidsetAvatar(org.springframework.web.multipart.MultipartFile avatar) The profile image of the branch restaurantvoidsetBackgroundImage(org.springframework.web.multipart.MultipartFile backgroundImage) The background image of the branch restaurant
-
Method Details
-
builder
-
getEmail
The email of the branch. -
getUsername
The username of the branch. Used for login. -
getPassword
The password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
getBranchName
The name of the branch restaurant -
getContact
The contact of the branch restaurant -
getContact1
The second contact of the branch restaurant if needed -
getBio
The branch restaurants bio -
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
-