package com.pressing.modules.discount.dto;

import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;

public class DiscountDtos {

    public record DiscountRequest(
            Long customerId, // Optionnel (Null = Global)
            @NotNull String name,
            @NotNull BigDecimal rate,
            @NotNull LocalDate startDate,
            @NotNull LocalDate endDate
    ) {}

    public record DiscountResponse(
            Long id,
            Long customerId,
            String customerName,
            String name,
            BigDecimal rate,
            LocalDate startDate,
            LocalDate endDate,
            boolean active,
            String createdBy
    ) {}
}