package com.ga.core.vo.org;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDate;

@Data
public class AgentSaveReq {
    @NotBlank(message = "설계사명은 필수입니다")
    @Size(max = 50)
    private String agentName;

    @NotNull(message = "소속을 선택해주세요")
    private Long orgId;

    @NotNull(message = "직급을 선택해주세요")
    private Long gradeId;

    private String residentNo;
    private String licenseNo;
    private String phone;
    private String email;
    private String bankCode;
    private String accountNo;
    private LocalDate joinDate;

    @NotBlank(message = "소득세 유형은 필수입니다")
    private String taxType = "BUSINESS_INCOME";  // TaxType

    @Size(max = 20)
    private String businessNo;   // 사업소득자 시 입력

    @NotBlank(message = "부가세 유형은 필수입니다")
    private String vatType = "NONE";             // VatType
}
