Package com.dzidzi.dto.order
Class UserOrder
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.order.OrderEntityApi
com.dzidzi.dto.order.UserOrder
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUserOrder(UUID id, EntityComposition user, EntityComposition courier, RestaurantEntityApi restaurant, AddressEntityApi deliveryAddress, CouponEntityApi coupon, long orderDate, OrderStatus status, BigDecimal totalOrderPrice, BigDecimal deliveryFee, BigDecimal vat, BigDecimal discount, BigDecimal totalAmountToPay, String orderNumber, String orderNote, long deliveryDate, List<Item> orderItems) -
Method Summary
Modifier and TypeMethodDescriptionstatic UserOrder.Builderbuilder()The coupon usedTheCourierwho the order is assigned to.TheAddresswhere the order was delivered tolongThe delivery dateThe delivery feeThe discountTheOrderItem'sTheRestaurantwho the order is assigned to.The total amount of the order to payThe total items pricegetUser()TheUserwho made the ordergetVat()The vat of the ordervoidsetCoupon(CouponEntityApi coupon) The coupon usedvoidsetCourier(EntityComposition courier) TheCourierwho the order is assigned to.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 ordervoidsetVat(BigDecimal vat) The vat of the orderMethods inherited from class com.dzidzi.dto.order.OrderEntityApi
getOrderDate, getOrderNote, getOrderNumber, getStatus
-
Constructor Details
-
UserOrder
public UserOrder(UUID id, EntityComposition user, EntityComposition courier, RestaurantEntityApi restaurant, AddressEntityApi deliveryAddress, CouponEntityApi coupon, long orderDate, OrderStatus status, BigDecimal totalOrderPrice, BigDecimal deliveryFee, BigDecimal vat, BigDecimal discount, BigDecimal totalAmountToPay, String orderNumber, String orderNote, long deliveryDate, List<Item> orderItems)
-
-
Method Details
-
builder
-
getTotalOrderPrice
The total items price -
getVat
The vat of the order -
getDiscount
The discount -
getDeliveryFee
The delivery fee -
getTotalAmountToPay
The total amount of the order to pay -
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 -
getCoupon
The coupon used -
getDeliveryDate
public long getDeliveryDate()The delivery date -
getOrderItems
TheOrderItem's -
setVat
The vat of the order -
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 -
setCoupon
The coupon used -
setOrderItems
TheOrderItem's
-