Class ChangeCourierRequest

java.lang.Object
com.dzidzi.dto.courier.ChangeCourierRequest

public class ChangeCourierRequest extends Object
ChangeCourierRequest represents the DTO request containing the objects used to update an existing 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 new ChangeCourierRequest instance.
      Parameters:
      contact - The new contact of the courier
      address - The new address of the courier. ChangeAddressRequest
      newPassword - 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

      public static ChangeCourierRequest.Builder builder()
    • getContact

      public String getContact()
      The new contact of the courier
    • getAddress

      public ChangeAddressRequest getAddress()
      The new address of the courier. ChangeAddressRequest
    • getNewPassword

      public String getNewPassword()
      The new password to set.
    • getPassword

      public String getPassword()
      The existing password.
    • getUsername

      public String 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