Class AddCourierRequest

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

public class AddCourierRequest extends Object
AddCourierRequest represents the DTO request containing the objects used to create a new 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 new AddCourierRequest instance.
      Parameters:
      firstName - The first name of the courier
      lastName - The last name of the courier
      contact - The contact of the courier
      address - The address of the courier. AddAddressRequest
      newPassword - The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.
      repeatPass - The same password typed in newPass
      username - The new username to use for your account
      avatar - The profile image of the courier
  • Method Details

    • builder

      public static AddCourierRequest.Builder builder()
    • getFirstName

      public String getFirstName()
      The first name of the courier
    • getLastName

      public String getLastName()
      The last name of the courier
    • getContact

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

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

      public String getNewPassword()
      The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters.
    • getRepeatPass

      public String getRepeatPass()
      The same password typed in newPass
    • getUsername

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