Package com.dzidzi.dto.order
Class Order.Builder
java.lang.Object
com.dzidzi.dto.order.Order.Builder
- Enclosing class:
Order
-
Method Summary
Modifier and TypeMethodDescriptionaddress(AddressEntityApi address) build()coupon(CouponEntityApi coupon) courier(EntityComposition courier) deliveryDate(long deliveryDate) deliveryFee(BigDecimal deliveryFee) discount(BigDecimal discount) orderDate(long orderDate) orderItems(List<OrderItemEntityApi> orderItems) orderNumber(String orderNumber) restaurant(RestaurantEntityApi restaurant) status(OrderStatus status) toString()totalAmountToPay(BigDecimal totalAmountToPay) totalOrderPrice(BigDecimal totalOrderPrice) user(EntityComposition user) vat(BigDecimal vat)
-
Method Details
-
id
- Returns:
this.
-
orderDate
- Returns:
this.
-
status
- Returns:
this.
-
totalOrderPrice
- Returns:
this.
-
vat
- Returns:
this.
-
discount
- Returns:
this.
-
deliveryFee
- Returns:
this.
-
totalAmountToPay
- Returns:
this.
-
orderNumber
- Returns:
this.
-
orderNote
- Returns:
this.
-
user
- Returns:
this.
-
courier
- Returns:
this.
-
restaurant
- Returns:
this.
-
address
- Returns:
this.
-
coupon
- Returns:
this.
-
deliveryDate
- Returns:
this.
-
orderItems
- Returns:
this.
-
build
-
toString
-