# AcApiListBO.java

    package cloud.wconnect.finance.pojo.bo.api.api;

    import cloud.wconnect.commonlib.annotation.validator.DigitsInteger;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import java.math.BigDecimal;

    /**
     * BO: API List
     *
     * @author zc
     * @date 2023/08/08
     */
    @Data
    public class AcApiListBO {

        /**
         * Invoice #
         */
        @NotBlank(message = "The invoiceNo cannot be blank")
        @Length(max = 10, message = "The invoiceNo is limited 10 characters")
        private String invoiceNo;

        /**
         * Airline
         */
        @NotBlank(message = "The airline cannot be blank")
        @Length(max = 100, message = "The airline is limited 100 characters")
        private String airline;

        /**
         * Conf. No.
         */
        @Length(max = 20, message = "The confNo is limited 20 characters")
        private String confNo;

        /**
         * First Name
         */
        @NotBlank(message = "The firstName cannot be blank")
        @Length(max = 255, message = "The firstName is limited 255 characters")
        private String firstName;

        /**
         * Last Name
         */
        @NotBlank(message = "The lastName cannot be blank")
        @Length(max = 255, message = "The lastName is limited 255 characters")
        private String lastName;

        /**
         * 入住日期
         */
        @NotBlank(message = "The checkInStr cannot be blank")
        @Length(max = 20, message = "The checkInStr is limited 20 characters")
        private String checkInStr;

        /**
         * Nights
         */
        @NotNull(message = "The nights cannot be null")
        @Range(min = 0, max = 999, message = "The nights must be between 0 and 999")
        private Integer nights;

        /**
         * Total Room
         */
        @NotNull(message = "The totalRoom cannot be null")
        @Range(min = 0, max = 999, message = "The totalRoom must be between 0 and 999")
        private Integer totalRoom;

        /**
         * Room Costs (Room Amounts)
         */
        @NotNull(message = "The roomCosts cannot be null")
        @DigitsInteger(integer = 7, message = "The roomCosts is wrong format")
        private BigDecimal roomCosts;

    }