package com.bcxin.Infrastructures.models;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class CredentialCheckInfo implements Serializable {

    private Boolean fromMobile;
    //身份证人像面
    private String frontPhoto;
    //身份证国徽面
    private String reversePhoto;
    //身份证人头像
    private String headPhoto;
    //有效期从
    private Date validDateFrom;
    //有效期到
    private Date validDateTo;
    //地址
    private String address;
    //活体采集照片
    private String certificateImage;

    public static CredentialCheckInfo create(Boolean fromMobile,
                                             String frontPhoto,
                                             String reversePhoto,
                                             String headPhoto,
                                             Date validDateFrom,
                                             Date validDateTo,
                                             String address,
                                             String certificateImage) {
        CredentialCheckInfo info = new CredentialCheckInfo();
        info.setFromMobile(fromMobile);
        info.setFrontPhoto(frontPhoto);
        info.setReversePhoto(reversePhoto);
        info.setHeadPhoto(headPhoto);
        info.setValidDateFrom(validDateFrom);
        info.setValidDateTo(validDateTo);
        info.setAddress(address);
        info.setCertificateImage(certificateImage);
        return info;
    }
}