Package com.dzidzi.dto.customerService
Class AddCustomerServiceRequest
java.lang.Object
com.dzidzi.dto.customerService.AddCustomerServiceRequest
AddCustomerServiceRequest represents the DTO request containing the objects used to create a new customer service rep.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddCustomerServiceRequest(String firstName, String lastName, String contact, AddAddressRequest address, String newPassword, String repeatPass, String username, org.springframework.web.multipart.MultipartFile avatar) Creates a newAddCustomerServiceRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The address of the customer service rep.org.springframework.web.multipart.MultipartFileThe profile image of the customer representativeThe contact of the customer service repThe first name of the customer service repThe last name of the customer service repThe new password to use.The same password typed in newPasswordThe new username to use for your account
-
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 newAddCustomerServiceRequestinstance.- Parameters:
firstName- The first name of the customer service replastName- The last name of the customer service repcontact- The contact of the customer service repaddress- The address of the customer service rep.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 newPasswordusername- The new username to use for your accountavatar- The profile image of the customer representative
-
-
Method Details
-
builder
-
getFirstName
The first name of the customer service rep -
getLastName
The last name of the customer service rep -
getContact
The contact of the customer service rep -
getAddress
The address of the customer service rep.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 newPassword -
getUsername
The new username to use for your account -
getAvatar
public org.springframework.web.multipart.MultipartFile getAvatar()The profile image of the customer representative
-