Package com.dzidzi.dto.partner
Class PartnerRegistration
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.partner.PartnerRegistration
Represents partner registrations of the Api.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPartnerRegistration(UUID id, String fullname, String email, String contact, String partnerName, PartnerType partnerType, long requestedOn, PreferredContactMode preferredContactMode, PartnerRegistrationState registrationState, long resolvedOn, String signOffStatement, String reviewStatement, EntityComposition reviewedBy, EntityComposition signedBy, AddressEntityApi address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PartnerRegistration.Builderbuilder()TheAddressof the restaurant or the courierThe phone number of the user.getEmail()The email of the user.The fullname of the user requesting to join.The name of the restaurant.The type of partner.The preferred mode of contactThe state of the requestlongThe date the request was created in millislongThe date the request was completedThe admin/customer service who reviewed the requestThe reviewers' closing statementThe admin who approved the requestThe admins' closing statementvoidsetReviewedBy(EntityComposition reviewedBy) The admin/customer service who reviewed the requestvoidsetSignedBy(EntityComposition signedBy) The admin who approved the request
-
Constructor Details
-
PartnerRegistration
public PartnerRegistration(UUID id, String fullname, String email, String contact, String partnerName, PartnerType partnerType, long requestedOn, PreferredContactMode preferredContactMode, PartnerRegistrationState registrationState, long resolvedOn, String signOffStatement, String reviewStatement, EntityComposition reviewedBy, EntityComposition signedBy, AddressEntityApi address)
-
-
Method Details
-
builder
-
getFullname
The fullname of the user requesting to join. It can be the courier or the user requesting on behalf of the restaurant. -
getEmail
The email of the user. It can be the personal email of the courier, the restaurants email or user requesting on behalf of the restaurant. -
getContact
The phone number of the user. It can be the couriers personal phone number, the restaurants phone number or the user requesting on behalf of the restaurant -
getPartnerName
The name of the restaurant. This field is only required by restaurants. -
getPartnerType
The type of partner. Either a courier or a restaurant. -
getRequestedOn
public long getRequestedOn()The date the request was created in millis -
getPreferredContactMode
The preferred mode of contact -
getRegistrationState
The state of the request -
getResolvedOn
public long getResolvedOn()The date the request was completed -
getReviewStatement
The reviewers' closing statement -
getSignOffStatement
The admins' closing statement -
getReviewedBy
The admin/customer service who reviewed the request -
getSignedBy
The admin who approved the request -
getAddress
TheAddressof the restaurant or the courier -
setReviewedBy
The admin/customer service who reviewed the request -
setSignedBy
The admin who approved the request
-