/**
 * Un producto de la bodega: código, nombre, precio en céntimos y stock.
 * Esqueleto de P0: completen los campos, el constructor y los métodos.
 */
public class Product {

    public Product(String code, String name, long priceCents, int stock) {
        // por hacer: guardar los datos en campos
    }

    public String code() {
        throw new UnsupportedOperationException("por hacer");
    }

    public String name() {
        throw new UnsupportedOperationException("por hacer");
    }

    public long priceCents() {
        throw new UnsupportedOperationException("por hacer");
    }

    public int stock() {
        throw new UnsupportedOperationException("por hacer");
    }

    /** Suma quantity unidades al stock. */
    public void addStock(int quantity) {
        throw new UnsupportedOperationException("por hacer");
    }

    /** Resta quantity unidades del stock. */
    public void removeStock(int quantity) {
        throw new UnsupportedOperationException("por hacer");
    }

    /** Lo que vale todo el stock, en céntimos: precio por stock. */
    public long stockValueCents() {
        throw new UnsupportedOperationException("por hacer");
    }
}
