Package com.dzidzi.dto.order
Class CourierOrder
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.order.CourierOrder
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCourierOrder(UUID id, EntityComposition user, RestaurantEntityApi restaurant, AddressEntityApi deliveryAddress, String orderNumber, OrderStatus status, CourierSettlementEntityDto courierSettlement, long deliveryDate, String orderNote, List<Item> orderItems) -
Method Summary
Modifier and TypeMethodDescriptionstatic CourierOrder.Builderbuilder()TheAddresswhere the order was delivered tolongThe delivery dateTheOrderItem'sThe order noteThe unique order numberTheRestaurantwho the order is assigned to.TheOrderStatusof the ordergetUser()TheUserwho made the ordervoidsetCourierSettlement(CourierSettlementEntityDto courierSettlement) voidsetDeliveryAddress(AddressEntityApi deliveryAddress) TheAddresswhere the order was delivered tovoidsetOrderItems(List<Item> orderItems) TheOrderItem'svoidsetRestaurant(RestaurantEntityApi restaurant) TheRestaurantwho the order is assigned to.voidsetUser(EntityComposition user) TheUserwho made the order
-
Constructor Details
-
CourierOrder
public CourierOrder(UUID id, EntityComposition user, RestaurantEntityApi restaurant, AddressEntityApi deliveryAddress, String orderNumber, OrderStatus status, CourierSettlementEntityDto courierSettlement, long deliveryDate, String orderNote, List<Item> orderItems)
-
-
Method Details
-
builder
-
getUser
TheUserwho made the order -
getRestaurant
TheRestaurantwho the order is assigned to. -
getDeliveryAddress
TheAddresswhere the order was delivered to -
getOrderNumber
The unique order number -
getStatus
TheOrderStatusof the order -
getCourierSettlement
-
getDeliveryDate
public long getDeliveryDate()The delivery date -
getOrderNote
The order note -
getOrderItems
TheOrderItem's -
setUser
TheUserwho made the order -
setRestaurant
TheRestaurantwho the order is assigned to. -
setDeliveryAddress
TheAddresswhere the order was delivered to -
setCourierSettlement
-
setOrderItems
TheOrderItem's
-