Package com.dzidzi.dto.order
Class RestaurantOrder
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.order.RestaurantOrder
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRestaurantOrder(UUID id, EntityComposition user, EntityComposition courier, OrderStatus status, BigDecimal totalOrderPrice, RestaurantSettlementEntityDto restaurantSettlement, long deliveryDate, String orderNumber, String orderNote, List<Item> orderItems) -
Method Summary
Modifier and TypeMethodDescriptionstatic RestaurantOrder.Builderbuilder()TheCourierwho the order is assigned to.longThe delivery dateTheOrderItem'sThe order noteThe unique order numberTheOrderStatusof the orderThe total items pricegetUser()TheUserwho made the ordervoidsetCourier(EntityComposition courier) TheCourierwho the order is assigned to.voidsetOrderItems(List<Item> orderItems) TheOrderItem'svoidsetRestaurantSettlement(RestaurantSettlementEntityDto restaurantSettlement) voidsetUser(EntityComposition user) TheUserwho made the order
-
Constructor Details
-
RestaurantOrder
public RestaurantOrder(UUID id, EntityComposition user, EntityComposition courier, OrderStatus status, BigDecimal totalOrderPrice, RestaurantSettlementEntityDto restaurantSettlement, long deliveryDate, String orderNumber, String orderNote, List<Item> orderItems)
-
-
Method Details
-
builder
-
getUser
TheUserwho made the order -
getCourier
TheCourierwho the order is assigned to. -
getStatus
TheOrderStatusof the order -
getTotalOrderPrice
The total items price -
getRestaurantSettlement
-
getDeliveryDate
public long getDeliveryDate()The delivery date -
getOrderNumber
The unique order number -
getOrderNote
The order note -
getOrderItems
TheOrderItem's -
setUser
TheUserwho made the order -
setCourier
TheCourierwho the order is assigned to. -
setRestaurantSettlement
-
setOrderItems
TheOrderItem's
-