Package com.dzidzi.dto.courier
Class AddCourierRequest
java.lang.Object
com.dzidzi.dto.courier.AddCourierRequest
AddCourierRequest represents the DTO request containing the objects used to create a new courier.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddCourierRequest(String firstName, String lastName, String contact, AddAddressRequest address, String newPassword, String repeatPass, String username, org.springframework.web.multipart.MultipartFile avatar) Creates a newAddCourierRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddCourierRequest.Builderbuilder()The address of the courier.org.springframework.web.multipart.MultipartFileThe profile image of the courierThe contact of the courierThe first name of the courierThe last name of the courierThe new password to use.The same password typed in newPassThe new username to use for your accountvoidsetAvatar(org.springframework.web.multipart.MultipartFile avatar) The profile image of the courier
-
Constructor Details
-
AddCourierRequest
public AddCourierRequest() -
AddCourierRequest
@ConstructorProperties({"firstName","lastName","contact","address","newPassword","repeatPass","username","avatar"}) public AddCourierRequest(String firstName, String lastName, String contact, AddAddressRequest address, String newPassword, String repeatPass, String username, org.springframework.web.multipart.MultipartFile avatar) Creates a newAddCourierRequestinstance.- Parameters:
firstName- The first name of the courierlastName- The last name of the couriercontact- The contact of the courieraddress- The address of the courier.AddAddressRequestnewPassword- The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.repeatPass- The same password typed in newPassusername- The new username to use for your accountavatar- The profile image of the courier
-
-
Method Details
-
builder
-
getFirstName
The first name of the courier -
getLastName
The last name of the courier -
getContact
The contact of the courier -
getAddress
The address of the courier.AddAddressRequest -
getNewPassword
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
getRepeatPass
The same password typed in newPass -
getUsername
The new username to use for your account -
getAvatar
public org.springframework.web.multipart.MultipartFile getAvatar()The profile image of the courier -
setAvatar
public void setAvatar(org.springframework.web.multipart.MultipartFile avatar) The profile image of the courier
-