Package com.dzidzi.dto.extra
Class Extra
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.merge.MenuExtraComposition
com.dzidzi.dto.extra.Extra
Represents an extra of the Api.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExtra(UUID id, String name, BigDecimal price, RestaurantEntityApi restaurant, Image image, boolean visible) -
Method Summary
Modifier and TypeMethodDescriptionstatic Extra.Builderbuilder()getImage()The image of the extraTheRestaurantwho owns this extrabooleanA flag to disable extra from showing to usersMethods inherited from class com.dzidzi.dto.merge.MenuExtraComposition
getName, getPrice, setName
-
Constructor Details
-
Extra
public Extra(UUID id, String name, BigDecimal price, RestaurantEntityApi restaurant, Image image, boolean visible)
-
-
Method Details
-
builder
-
getRestaurant
TheRestaurantwho owns this extra -
getImage
The image of the extra -
isVisible
public boolean isVisible()A flag to disable extra from showing to users
-