Package com.dzidzi.dto.extra
Class ChangeExtraRequest
java.lang.Object
com.dzidzi.dto.extra.ChangeExtraRequest
ChangeExtraRequest represents the DTO request containing the objects used to update an existing extra.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChangeExtraRequest(UUID id, String name, BigDecimal price, Set<UUID> restaurantBranchIds, org.springframework.web.multipart.MultipartFile image) Creates a newChangeExtraRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeExtraRequest.Builderbuilder()getId()The id of the extraorg.springframework.web.multipart.MultipartFilegetImage()The new image of the extragetName()The new name of the extragetPrice()The new price of the extraThe restaurant branch ids to make bulk additionvoidThe id of the extravoidsetPrice(BigDecimal price)
-
Constructor Details
-
ChangeExtraRequest
public ChangeExtraRequest() -
ChangeExtraRequest
@ConstructorProperties({"id","name","price","restaurantBranchIds","image"}) public ChangeExtraRequest(UUID id, String name, BigDecimal price, Set<UUID> restaurantBranchIds, org.springframework.web.multipart.MultipartFile image) Creates a newChangeExtraRequestinstance.- Parameters:
id- The id of the extraname- The new name of the extraprice- The new price of the extrarestaurantBranchIds- The restaurant branch ids to make bulk additionimage- The new image of the extra
-
-
Method Details
-
setPrice
-
builder
-
getId
The id of the extra -
getName
The new name of the extra -
getPrice
The new price of the extra -
getRestaurantBranchIds
The restaurant branch ids to make bulk addition -
getImage
public org.springframework.web.multipart.MultipartFile getImage()The new image of the extra -
setId
The id of the extra
-