Class AddCustomerServiceRequest

java.lang.Object
com.dzidzi.dto.customerService.AddCustomerServiceRequest

public class AddCustomerServiceRequest extends Object
AddCustomerServiceRequest represents the DTO request containing the objects used to create a new customer service rep.
  • Constructor Details

    • AddCustomerServiceRequest

      public AddCustomerServiceRequest()
    • AddCustomerServiceRequest

      @ConstructorProperties({"firstName","lastName","contact","address","newPassword","repeatPass","username","avatar"}) public AddCustomerServiceRequest(String firstName, String lastName, String contact, AddAddressRequest address, String newPassword, String repeatPass, String username, org.springframework.web.multipart.MultipartFile avatar)
      Creates a new AddCustomerServiceRequest instance.
      Parameters:
      firstName - The first name of the customer service rep
      lastName - The last name of the customer service rep
      contact - The contact of the customer service rep
      address - The address of the customer service rep. 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 newPassword
      username - The new username to use for your account
      avatar - The profile image of the customer representative
  • Method Details

    • builder

      public static AddCustomerServiceRequest.Builder builder()
    • getFirstName

      public String getFirstName()
      The first name of the customer service rep
    • getLastName

      public String getLastName()
      The last name of the customer service rep
    • getContact

      public String getContact()
      The contact of the customer service rep
    • getAddress

      public AddAddressRequest getAddress()
      The address of the customer service rep. 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 newPassword
    • 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 customer representative