package com.toyshop.dto;

import jakarta.validation.constraints.NotBlank;
import java.math.BigDecimal;

public class ProductRequest {
  @NotBlank
  private String name;
  private Long categoryId;
  private String description;
  private BigDecimal price;
  private Integer stock;
  private String ageRange;
  private String safetyInfo;
  private boolean onSale = true;

  public String getName() { return name; }
  public void setName(String name) { this.name = name; }
  public Long getCategoryId() { return categoryId; }
  public void setCategoryId(Long categoryId) { this.categoryId = categoryId; }
  public String getDescription() { return description; }
  public void setDescription(String description) { this.description = description; }
  public BigDecimal getPrice() { return price; }
  public void setPrice(BigDecimal price) { this.price = price; }
  public Integer getStock() { return stock; }
  public void setStock(Integer stock) { this.stock = stock; }
  public String getAgeRange() { return ageRange; }
  public void setAgeRange(String ageRange) { this.ageRange = ageRange; }
  public String getSafetyInfo() { return safetyInfo; }
  public void setSafetyInfo(String safetyInfo) { this.safetyInfo = safetyInfo; }
  public boolean isOnSale() { return onSale; }
  public void setOnSale(boolean onSale) { this.onSale = onSale; }
}
