package cokr.xit.ens.modules.kkotalk.model.config;

import javax.validation.*;
import javax.validation.constraints.*;

import cokr.xit.ens.modules.kkomydoc.model.config.*;
import cokr.xit.ens.modules.kkotalk.model.*;
import io.swagger.v3.oas.annotations.media.*;
import lombok.*;
import lombok.experimental.*;

@Getter
@ToString
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "Document")
public class Document extends KkotalkApiDTO.Envelope {

    /**
     * <pre>
     * 상품 코드 - 필수
     * D10_1|D10_2|D11_1|D11_2
     * </pre>
     */
    @Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "상품코드", example = "D10_2", allowableValues = {"D10_1","D10_2","D11_1","D11_2"})
    @Size(min = 3, max = 5, message = "상품 코드는 필수 입니다(\"D10_1\",\"D10_2\",\"D11_1\",\"D11_2\"")
    private String productCode = "D10_2";

    @Valid
    private XitProperty xit_property;
}
