Package com.dzidzi.dto.courier
Class ChangeCourierRequest
java.lang.Object
com.dzidzi.dto.courier.ChangeCourierRequest
ChangeCourierRequest represents the DTO request containing the objects used to update an existing courier.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChangeCourierRequest(String contact, ChangeAddressRequest address, String newPassword, String password, String username, org.springframework.web.multipart.MultipartFile avatar) Creates a newChangeCourierRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeCourierRequest.Builderbuilder()The new address of the courier.org.springframework.web.multipart.MultipartFileThe new profile image of the courierThe new contact of the courierThe new password to set.The existing password.The new username to use.voidsetAvatar(org.springframework.web.multipart.MultipartFile avatar) The new profile image of the courier
-
Constructor Details
-
ChangeCourierRequest
public ChangeCourierRequest() -
ChangeCourierRequest
@ConstructorProperties({"contact","address","newPassword","password","username","avatar"}) public ChangeCourierRequest(String contact, ChangeAddressRequest address, String newPassword, String password, String username, org.springframework.web.multipart.MultipartFile avatar) Creates a newChangeCourierRequestinstance.- Parameters:
contact- The new contact of the courieraddress- The new address of the courier.ChangeAddressRequestnewPassword- The new password to set.password- The existing password.username- The new username to use.avatar- The new profile image of the courier
-
-
Method Details
-
builder
-
getContact
The new contact of the courier -
getAddress
The new address of the courier.ChangeAddressRequest -
getNewPassword
The new password to set. -
getPassword
The existing password. -
getUsername
The new username to use. -
getAvatar
public org.springframework.web.multipart.MultipartFile getAvatar()The new profile image of the courier -
setAvatar
public void setAvatar(org.springframework.web.multipart.MultipartFile avatar) The new profile image of the courier
-