package com.yc.ship.module.trade.controller.admin.insurance.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 订单保险信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class InsuranceRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "13856")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "订单明细ID", example = "3807")
    private Long orderId;

    @Schema(description = "订单号", example = "3807")
    @ExcelProperty("订单号")
    private String orderNo;

    @Schema(description = "保险流水号")
    @ExcelProperty("保险流水号")
    private String insuranceNo;

    @Schema(description = "保险状态   1:成功,2:失败", example = "1")
    @ExcelProperty("保险状态   1:成功,2:失败")
    private Integer insuranceStatus;

    @Schema(description = "保费")
    @ExcelProperty("保费")
    private BigDecimal premium;

    @Schema(description = "保单保额")
    @ExcelProperty("保单保额")
    private BigDecimal amount;

    @Schema(description = "被保人数")
    @ExcelProperty("被保人数")
    private Integer insuredNum;

    @Schema(description = "保单号")
    @ExcelProperty("保单号")
    private String policyNo;

    @Schema(description = "投保单号")
    @ExcelProperty("投保单号")
    private String proposalNo;

    @Schema(description = "电子保单")
    @ExcelProperty("电子保单")
    private String electronicPolicy;

    @Schema(description = "产品代码", example = "1")
    @ExcelProperty("产品代码")
    private String rationType;

    @Schema(description = "险种代码")
    @ExcelProperty("险种代码")
    private String riskCode;

    @Schema(description = "投保人姓名", example = "李四")
    @ExcelProperty("投保人姓名")
    private String holderName;

    @Schema(description = "投保人证件号码")
    @ExcelProperty("投保人证件号码")
    private String holderNo;

    @Schema(description = "保险生效日期")
    @ExcelProperty("保险生效日期")
    private LocalDateTime insuranceEffectDate;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;


    @Schema(description = "被保人姓名")
    @ExcelProperty("被保人姓名")
    private String insuredName;

    @Schema(description = "被保人证件号")
    @ExcelProperty("被保人证件号")
    private String insuredIdNo;

    @Schema(description = "被保人证件类型")
    @ExcelProperty("被保人证件类型")
    private String insuredIdType;
}