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

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

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

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 订单保险信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class InsurancePageReqVO extends PageParam {

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

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

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

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "分销商名称")
    private String otaName;

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

    @Schema(description = "分销商ID")
    private Long distributorId;

    @Schema(description = "门店ID")
    private Long storeId;

    @Schema(description = "保险生效日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] insuranceEffectDate;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}