CreateContractRequest.java 7.75 KB
package com.thinkgem.jeesite.modules.eci.entity;

import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * 创建合同请求实体
 */
public class CreateContractRequest {

    private static final long serialVersionUID = 1L;
    /**
     * 是
     * 合同名称
     */
    private String subject;

    /**
     * 否
     * 合同编号,对接方系统中的业务编号
     */
    private String sn;

    /**
     * 否
     * 合同描述
     */
    private String description;

    /**
     * 否
     * 用印流程ID
     */
    private String categoryId;

    /**
     * 否
     * 用印流程名称,如果分类ID为空,则用此参数确定用印流程
     */
    private String categoryName;

    /**
     * 否
     * 是否发起合同,默认true。(true:立即发起;false:保存为草稿)
     */
    private boolean send;

    /**
     * 否
     * 合同文档ID的集合(一个文档只能属于一个合同)
     */
    private List<Long> documents;

    /**
     * 否
     * 合同过期时间;格式:yyyy-MM-dd HH:mm:ss,过期未结束签署,则作废,不传该参数则默认使用控制台配置的过期时间
     */
    private String expireTime;

    /**
     * 否
     * 合同终止时间;格式:yyyy-MM-dd ,系统将时间调至传入时间的23时59分59秒。
     */
    private String endTime;

    /**
     * 否
     * 合同创建人姓名
     */
    private String creatorName;

    /**
     * 否
     * 合同创建人手机号码
     */
    private String creatorContact;

    /**
     * 否
     * 合同创建人邮箱
     */
    private String creatorEmail;

    /**
     * 否
     * 合同创建人在发起方中的员工编号
     */
    private String creatorNumber;

    /**
     * 否
     * 发起方名称
     */
    private String tenantName;

    /**
     * 否
     * 签署方,为空时在合同签署完成后需要调用接口“封存合同”主动结束合同
     */
    private List<SignatoryRequest> signatories;

    /**
     * 否
     * 模板参数
     */
    private List<BdcqzsTemplate> documentParams;

    /**
     * 否
     * 用户的业务数据
     */
    private String businessData;

    /**
     * 否
     * 合同的唯一标识,由调用方生成
     */
    private String bizId;

    /**
     * 否
     * 水印配置(需在用印流程配置水印并勾选通过接口设置),参考WaterMarkContent
     */
    private List<WaterMarkContent> waterMarkConfigs;

    /**
     * 否
     * 指定位置外签署,默认使用业务分类中的「签署位置规则」配置
     */
    private boolean extraSign;

    /**
     * 否
     * 允许指定位置签署,默认使用业务分类中的「签署位置规则」配置
     */
    private boolean mustSign;

    /**
     * 否
     * 是否自动生成会签节点(用于签署动作中传入多个印章并且未指定签署人)默认false
     */
    private boolean autoCreateCounterSign;

    /**
     * 否
     * 是否所有文档均需签署:1. DEFAULT, 默认,无需签署所有文档2. ALL, 所有签署方每个签署节点必须签署所有文档3. SENDER, 发起方每个签署节点必须签署所有文档4. RECEIVER 接受方每个节点必须签署所有文档
     */
    private String signAll;

    /**
     * 否
     * 抄送人配置,参考ContractTransmit
     */
    private List<ContractTransmitItem> transmitters;

    /**
     * 否
     * 0 发送全部通知;1 仅发送短信通知;2 仅发送邮件通知
     */
    private Integer msgCode;

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public boolean isSend() {
        return send;
    }

    public void setSend(boolean send) {
        this.send = send;
    }

    public List<Long> getDocuments() {
        return documents;
    }

    public void setDocuments(List<Long> documents) {
        this.documents = documents;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getCreatorContact() {
        return creatorContact;
    }

    public void setCreatorContact(String creatorContact) {
        this.creatorContact = creatorContact;
    }

    public String getCreatorEmail() {
        return creatorEmail;
    }

    public void setCreatorEmail(String creatorEmail) {
        this.creatorEmail = creatorEmail;
    }

    public String getCreatorNumber() {
        return creatorNumber;
    }

    public void setCreatorNumber(String creatorNumber) {
        this.creatorNumber = creatorNumber;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public List<SignatoryRequest> getSignatories() {
        return signatories;
    }

    public void setSignatories(List<SignatoryRequest> signatories) {
        this.signatories = signatories;
    }

    public List<BdcqzsTemplate> getDocumentParams() {
        return documentParams;
    }

    public void setDocumentParams(List<BdcqzsTemplate> documentParams) {
        this.documentParams = documentParams;
    }

    public String getBusinessData() {
        return businessData;
    }

    public void setBusinessData(String businessData) {
        this.businessData = businessData;
    }

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public List<WaterMarkContent> getWaterMarkConfigs() {
        return waterMarkConfigs;
    }

    public void setWaterMarkConfigs(List<WaterMarkContent> waterMarkConfigs) {
        this.waterMarkConfigs = waterMarkConfigs;
    }

    public boolean isExtraSign() {
        return extraSign;
    }

    public void setExtraSign(boolean extraSign) {
        this.extraSign = extraSign;
    }

    public boolean isMustSign() {
        return mustSign;
    }

    public void setMustSign(boolean mustSign) {
        this.mustSign = mustSign;
    }

    public boolean isAutoCreateCounterSign() {
        return autoCreateCounterSign;
    }

    public void setAutoCreateCounterSign(boolean autoCreateCounterSign) {
        this.autoCreateCounterSign = autoCreateCounterSign;
    }

    public String getSignAll() {
        return signAll;
    }

    public void setSignAll(String signAll) {
        this.signAll = signAll;
    }

    public List<ContractTransmitItem> getTransmitters() {
        return transmitters;
    }

    public void setTransmitters(List<ContractTransmitItem> transmitters) {
        this.transmitters = transmitters;
    }

    public Integer getMsgCode() {
        return msgCode;
    }

    public void setMsgCode(Integer msgCode) {
        this.msgCode = msgCode;
    }

}