Package com.dzidzi.dto.courier
Class AddCourierRequest.Builder
java.lang.Object
com.dzidzi.dto.courier.AddCourierRequest.Builder
- Enclosing class:
AddCourierRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddress(AddAddressRequest address) The address of the courier.avatar(org.springframework.web.multipart.MultipartFile avatar) The profile image of the courierbuild()The contact of the courierThe first name of the courierThe last name of the couriernewPassword(String newPassword) The new password to use.repeatPass(String repeatPass) The same password typed in newPasstoString()The new username to use for your account
-
Method Details
-
firstName
The first name of the courier- Returns:
this.
-
lastName
The last name of the courier- Returns:
this.
-
contact
The contact of the courier- Returns:
this.
-
address
The address of the courier.AddAddressRequest- Returns:
this.
-
newPassword
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.- Returns:
this.
-
repeatPass
The same password typed in newPass- Returns:
this.
-
username
The new username to use for your account- Returns:
this.
-
avatar
The profile image of the courier- Returns:
this.
-
build
-
toString
-