Class ChangeExtraRequest

java.lang.Object
com.dzidzi.dto.extra.ChangeExtraRequest

public class ChangeExtraRequest extends Object
ChangeExtraRequest represents the DTO request containing the objects used to update an existing extra.
  • 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 new ChangeExtraRequest instance.
      Parameters:
      id - The id of the extra
      name - The new name of the extra
      price - The new price of the extra
      restaurantBranchIds - The restaurant branch ids to make bulk addition
      image - The new image of the extra
  • Method Details

    • setPrice

      public void setPrice(BigDecimal price)
    • builder

      public static ChangeExtraRequest.Builder builder()
    • getId

      public UUID getId()
      The id of the extra
    • getName

      public String getName()
      The new name of the extra
    • getPrice

      public BigDecimal getPrice()
      The new price of the extra
    • getRestaurantBranchIds

      public Set<UUID> getRestaurantBranchIds()
      The restaurant branch ids to make bulk addition
    • getImage

      public org.springframework.web.multipart.MultipartFile getImage()
      The new image of the extra
    • setId

      public void setId(UUID id)
      The id of the extra