Package com.dzidzi.dto.order
Class AddOrderRequest
java.lang.Object
com.dzidzi.dto.order.AddOrderRequest
AddOrderRequest represents the DTO request containing the objects used to create a new order.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddOrderRequest(List<UUID> orderItems, boolean useMyAddress, AddAddressRequest address, String couponNumber, String orderNote) Creates a newAddOrderRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddOrderRequest.Builderbuilder()The address of the ordering user ifisUseMyAddress()is false.The coupon numberA list of the order item ids to be orderedThe order note if necessarybooleanToggle to true if you want to use your address or false to use a new address
-
Constructor Details
-
AddOrderRequest
public AddOrderRequest() -
AddOrderRequest
@ConstructorProperties({"orderItems","useMyAddress","address","couponNumber","orderNote"}) public AddOrderRequest(List<UUID> orderItems, boolean useMyAddress, AddAddressRequest address, String couponNumber, String orderNote) Creates a newAddOrderRequestinstance.- Parameters:
orderItems- A list of the order item ids to be ordereduseMyAddress- Toggle to true if you want to use your address or false to use a new addressaddress- The address of the ordering user ifisUseMyAddress()is false.AddAddressRequestcouponNumber- The coupon numberorderNote- The order note if necessary
-
-
Method Details
-
builder
-
getOrderItems
A list of the order item ids to be ordered -
isUseMyAddress
public boolean isUseMyAddress()Toggle to true if you want to use your address or false to use a new address -
getAddress
The address of the ordering user ifisUseMyAddress()is false.AddAddressRequest -
getCouponNumber
The coupon number -
getOrderNote
The order note if necessary
-