# AmountPaidDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.guestledgercheck;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;

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

    /**
     * DTO类：加载 Amount Paid 的相关信息
     */
    @Data
    public class AmountPaidDTO {
        /**
         * 支付日期
         */
        @NotNull(message = "The paidDate cannot be null")
        private Long paidDate;

        /**
         * 支付金额
         */
        @NotNull(message = "The amount cannot be null")
        @DecimalMin(value = "0", message = "The amount must be greater than 0")
        @DigitsCustom(integer = 9,  message = "The amount is wrong format")
        private BigDecimal amount;

        /**
         * 创建人姓名
         */
        private String createdByName;

        /**
         * Amount Paid 记录id
         */
        @Null(message = "The id cannot be null")
        private Long id;
    }