package com.yn.bftl.thirdparty.modules.chinaums.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yn.bftl.thirdparty.modules.chinaums.dto.chinaums.ChinaumsCreateCusDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 个人进件DTO
 *
 * @author huabiao
 * @create 2022/12/19  11:14
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CusCreateDTO", description = "个人进件DTO")
public class CusCreateDTO extends ChinaumsCreateCusDTO {


    @ApiModelProperty(value = "证件人像面照片ID", required = true)
    @NotNull
    private Long idCardCopyId;

    @ApiModelProperty(value = "证件国徽面照片ID", required = true)
    @NotNull
    private Long idCardNationalId;

    @ApiModelProperty(value = "证件开始时间,格式:yyyy-MM-dd HH:mm:ss", required = true)
    @NotNull
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime idCardStartTime;

    @ApiModelProperty(value = "证件结束时间,格式:yyyy-MM-dd HH:mm:ss,有效期必须大于60天", notes = "若为空则为长期有效")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime idCardEndTime;

    @ApiModelProperty(value = "开户银行名称",required = true)
    @NotBlank
    private String settleAcctBankName;

}
