# ApiUpdateStatusDTO.java

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

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Update status
     *
     * @author zc
     * @date 2023/08/05
     */
    @Data
    public class ApiUpdateStatusDTO {

        /**
         * 状态 (2.No Record in PMS; 3.Matched; 4.Pay & Close)
         */
        @NotNull(message = "The status cannot be null")
        @Range(min = 2, max = 4, message = "The status must be in [2:No Record in PMS; 3:Matched; 4:Pay & Close]")
        private Integer status;

        /**
         * OTA id (status = 3.Matched 时必传)
         */
        private Long otaId;
    }