package com.mvrent.carrental.web;

import com.mvrent.carrental.model.PaymentMethod;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

public record PaymentForm(
        BigDecimal amount,
        PaymentMethod method,
        String reference,
        @JsonFormat(pattern = "yyyy-MM-dd")
        @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate paidAt,
        String notes
) {}
