package ru.soune.nocopy.dto.payout;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PayoutRequestDTO {

    @NotNull(message = "Sum of pay is required")
    @DecimalMin(value = "1000.00", message = "Min sum for pay 1000")
    private BigDecimal amount;

    @NotNull(message = "Способ выплаты обязателен")
    private Long payoutMethodId;
}
