Package com.dzidzi.dto.serviceTicket
Class ServiceTicket
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.serviceTicket.ServiceTicketEntityApi
com.dzidzi.dto.serviceTicket.ServiceTicket
Represents a service ticket of the Api.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionServiceTicket(UUID id, TicketStatus status, long createdOn, long resolvedOn, String details, EntityComposition user, EntityComposition courier, RestaurantEntityApi restaurant, EntityComposition assignedTo) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceTicket.Builderbuilder()The customer service/admin user id who accepted the ticketTheCourierwho created this ticketThe details of the ticketTheRestaurantwho created this ticketgetUser()TheUserwho created this ticketvoidsetAssignedTo(EntityComposition assignedTo) The customer service/admin user id who accepted the ticketvoidsetCourier(EntityComposition courier) TheCourierwho created this ticketvoidsetRestaurant(RestaurantEntityApi restaurant) TheRestaurantwho created this ticketvoidsetUser(EntityComposition user) TheUserwho created this ticketMethods inherited from class com.dzidzi.dto.serviceTicket.ServiceTicketEntityApi
getCreatedOn, getResolvedOn, getStatus
-
Constructor Details
-
ServiceTicket
public ServiceTicket(UUID id, TicketStatus status, long createdOn, long resolvedOn, String details, EntityComposition user, EntityComposition courier, RestaurantEntityApi restaurant, EntityComposition assignedTo)
-
-
Method Details
-
builder
-
getDetails
The details of the ticket -
getUser
TheUserwho created this ticket -
getCourier
TheCourierwho created this ticket -
getRestaurant
TheRestaurantwho created this ticket -
getAssignedTo
The customer service/admin user id who accepted the ticket -
setUser
TheUserwho created this ticket -
setCourier
TheCourierwho created this ticket -
setRestaurant
TheRestaurantwho created this ticket -
setAssignedTo
The customer service/admin user id who accepted the ticket
-