Package com.dzidzi.dto.order
Class PlatformOrder
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.order.PlatformOrder
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformOrder(UUID id, EntityComposition user, EntityComposition courier, RestaurantEntityApi restaurant, AddressEntityApi deliveryAddress, long orderDate, OrderStatus status, BigDecimal totalOrderPrice, CourierSettlementEntityDto courierSettlement, RestaurantSettlementEntityDto restaurantSettlement, PlatformSettlement platformSettlement, BigDecimal totalAmountToPay, String orderNumber, String orderNote, long deliveryDate) -
Method Summary
Modifier and TypeMethodDescriptionTheCourierwho the order is assigned to.TheAddresswhere the order was delivered tolongThe delivery datelongThe date and time the order was madeTheOrderItem'sThe order noteThe unique order numberTheRestaurantwho the order is assigned to.TheOrderStatusof the orderThe total amount of the order to payThe total items pricegetUser()TheUserwho made the ordervoidsetCourier(EntityComposition courier) TheCourierwho the order is assigned to.voidsetCourierSettlement(CourierSettlementEntityDto courierSettlement) voidsetDeliveryAddress(AddressEntityApi deliveryAddress) TheAddresswhere the order was delivered tovoidsetOrderItems(List<OrderItemEntityApi> orderItems) TheOrderItem'svoidsetPlatformSettlement(PlatformSettlement platformSettlement) voidsetRestaurant(RestaurantEntityApi restaurant) TheRestaurantwho the order is assigned to.voidsetRestaurantSettlement(RestaurantSettlementEntityDto restaurantSettlement) voidsetUser(EntityComposition user) TheUserwho made the order
-
Constructor Details
-
PlatformOrder
public PlatformOrder(UUID id, EntityComposition user, EntityComposition courier, RestaurantEntityApi restaurant, AddressEntityApi deliveryAddress, long orderDate, OrderStatus status, BigDecimal totalOrderPrice, CourierSettlementEntityDto courierSettlement, RestaurantSettlementEntityDto restaurantSettlement, PlatformSettlement platformSettlement, BigDecimal totalAmountToPay, String orderNumber, String orderNote, long deliveryDate)
-
-
Method Details
-
getUser
TheUserwho made the order -
getCourier
TheCourierwho the order is assigned to. -
getRestaurant
TheRestaurantwho the order is assigned to. -
getDeliveryAddress
TheAddresswhere the order was delivered to -
getOrderDate
public long getOrderDate()The date and time the order was made -
getStatus
TheOrderStatusof the order -
getTotalOrderPrice
The total items price -
getTotalAmountToPay
The total amount of the order to pay -
getCourierSettlement
-
getRestaurantSettlement
-
getPlatformSettlement
-
getOrderNumber
The unique order number -
getOrderNote
The order note -
getDeliveryDate
public long getDeliveryDate()The delivery date -
getOrderItems
TheOrderItem's -
setUser
TheUserwho made the order -
setCourier
TheCourierwho the order is assigned to. -
setRestaurant
TheRestaurantwho the order is assigned to. -
setDeliveryAddress
TheAddresswhere the order was delivered to -
setCourierSettlement
-
setRestaurantSettlement
-
setPlatformSettlement
-
setOrderItems
TheOrderItem's
-