Package com.dzidzi.dto.orderItem
Class AddOrderItemRequest
java.lang.Object
com.dzidzi.dto.orderItem.AddOrderItemRequest
AddOrderItemRequest represents the DTO request containing the objects used to create a new order item.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddOrderItemRequest(UUID menu, int quantity, UUID extra) Creates a newAddOrderItemRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddOrderItemRequest.Builderbuilder()getExtra()The extra idgetMenu()The menu idintThe quantity of the menu to be ordered
-
Constructor Details
-
AddOrderItemRequest
public AddOrderItemRequest() -
AddOrderItemRequest
@ConstructorProperties({"menu","quantity","extra"}) public AddOrderItemRequest(UUID menu, int quantity, UUID extra) Creates a newAddOrderItemRequestinstance.- Parameters:
menu- The menu idquantity- The quantity of the menu to be orderedextra- The extra id
-
-
Method Details
-
builder
-
getMenu
The menu id -
getQuantity
public int getQuantity()The quantity of the menu to be ordered -
getExtra
The extra id
-