Package com.dzidzi.dto.order
Class ChangeOrderRequest.Builder
java.lang.Object
com.dzidzi.dto.order.ChangeOrderRequest.Builder
- Enclosing class:
ChangeOrderRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()newAddress(AddAddressRequest newAddress) The address of the ordering user ifAddOrderRequest.isUseMyAddress()is false.newOrderItems(List<UUID> newOrderItems) A list of the order item ids to be addedThe order note if necessaryremovedOrderItems(List<UUID> removedOrderItems) A list of the order item ids to be removedtoString()useMyAddress(boolean useMyAddress) Toggle to true if you want to use your address or false to use a new address
-
Method Details
-
id
- Returns:
this.
-
newAddress
The address of the ordering user ifAddOrderRequest.isUseMyAddress()is false.AddAddressRequest- Returns:
this.
-
removedOrderItems
A list of the order item ids to be removed- Returns:
this.
-
newOrderItems
A list of the order item ids to be added- Returns:
this.
-
useMyAddress
Toggle to true if you want to use your address or false to use a new address- Returns:
this.
-
orderNote
The order note if necessary- Returns:
this.
-
build
-
toString
-