# OvBalanceRvAmountDTO.java

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

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

    import jakarta.validation.constraints.DecimalMin;
    import jakarta.validation.constraints.NotNull;

    import java.math.BigDecimal;

    /**
     * @author lichen
     * @description Over Balance Reservation 中的各种Amount (CurrentBalance, AuthAmount) 对应的DTO
     * @date 2023/3/18 11:08
     */
    @Data
    public class OvBalanceRvAmountDTO {

        /**
         * 1:CurrentBalance 2:AuthAmount
         */
        @NotNull(message = "The type cannot be null")
        private Integer type;

        /**
         * Balance Amount
         */
        @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;

        /**
         * 资产id
         */
        private Integer propertyId;
        /**
         * Over Balance Reservation ID
         */
        private Long rvId;

        /**
         * 类型
         */
        public static final int TYPE_CURRENT_BALANCE = 1;
        public static final int TYPE_AUTH_AMOUNT = 2;

    }