Class AddExtraRequest

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

public class AddExtraRequest extends Object
AddExtraRequest represents the DTO request containing the objects used to create a new extra.
  • Constructor Details

    • AddExtraRequest

      public AddExtraRequest()
    • AddExtraRequest

      @ConstructorProperties({"name","price","image"}) public AddExtraRequest(String name, BigDecimal price, org.springframework.web.multipart.MultipartFile image)
      Creates a new AddExtraRequest instance.
      Parameters:
      name - The name of the extra
      price - The price of the extra
      image - The image of the extra
  • Method Details

    • builder

      public static AddExtraRequest.Builder builder()
    • getName

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

      public BigDecimal getPrice()
      The price of the extra
    • getImage

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