package com.yd.csf.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class CommissionAddRequest implements Serializable {
    /**
     * 检核年月
     */
    @Schema(description = "检核年月")
    @JsonFormat(pattern = "yyyy-MM")
    private String reconciliationYearMonth;

    /**
     * 应收款类型 R=关联保单应收单 U=非关联保单应收单
     */
    @Schema(description = "应收款类型 R=关联保单应收单 U=非关联保单应收单", requiredMode = Schema.RequiredMode.REQUIRED)
    private String commissionBizType;

    @Schema(description = "对账公司")
    private String reconciliationCompany;

    @Schema(description = "对账公司编码")
    private String reconciliationCompanyCode;

    @Schema(description = "对账公司业务id")
    private String reconciliationCompanyBizId;

    /**
     * 保单号
     */
    @Schema(description = "保单号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String policyNo;

    /**
     * 佣金期数(1=第一年; 2=第二年; 3=第三年; 4=第四年; 5=第五年)
     */
    @Schema(description = "佣金期数(1=第一年; 2=第二年; 3=第三年; 4=第四年; 5=第五年)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer commissionPeriod;

    /**
     * 总期数
     */
    @Schema(description = "总期数")
    private Integer totalPeriod;

    /**
     * 入账项目名称(1:销售拥金;2:销售奖金;3:销售津贴;4:续期佣金;5:服务津贴;等等)
     */
    @Schema(description = "入账项目名称(1:销售拥金;2:销售奖金;3:销售津贴;4:续期佣金;5:服务津贴;等等)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String commissionName;

    /**
     * 入账项目类型(1:销售拥金;2:销售奖金;3:销售津贴;4:续期佣金;5:服务津贴;等等)
     */
    @Schema(description = "入账项目类型(1:销售拥金;2:销售奖金;3:销售津贴;4:续期佣金;5:服务津贴;等等)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String commissionType;
    /**
     * 入账金额
     */
    @Schema(description = "入账金额", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal amount;

    /**
     * 入账币种
     */
    @Schema(description = "入账币种", requiredMode = Schema.RequiredMode.REQUIRED)
    private String currency;

    /**
     * 页面输入的结算汇率：保费币种对实际结算币种的汇率
     */
    @Schema(description = "结算汇率", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal exchangeRate;

    /**
     * 入账年月（实）
     */
    @Schema(description = "入账年月（实）", requiredMode = Schema.RequiredMode.REQUIRED, format = "yyyy-MM")
    private String commissionDate;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 人工备注
     */
    private String manualRemark;

    private static final long serialVersionUID = 1L;
}
