class TencentCloud::Ess::V20201111::TemplateInfo
>- 生成模板的文件基础信息 FileInfos
>- 签署控件 SignComponents
>- 填写控件 Components
>- 发起方参与信息Promoter、签署参与方 Recipients,后者会在模板发起合同时用于指定参与方
>- 模板基本信息
> 一个模板通常会包含以下结构信息
>
> **模板组成**
def deserialize(params)
def deserialize(params) @TemplateId = params['TemplateId'] @TemplateName = params['TemplateName'] unless params['Recipients'].nil? @Recipients = [] params['Recipients'].each do |i| recipient_tmp = Recipient.new recipient_tmp.deserialize(i) @Recipients << recipient_tmp end end unless params['Components'].nil? @Components = [] params['Components'].each do |i| component_tmp = Component.new component_tmp.deserialize(i) @Components << component_tmp end end unless params['SignComponents'].nil? @SignComponents = [] params['SignComponents'].each do |i| component_tmp = Component.new component_tmp.deserialize(i) @SignComponents << component_tmp end end @Description = params['Description'] @DocumentResourceIds = params['DocumentResourceIds'] unless params['FileInfos'].nil? @FileInfos = [] params['FileInfos'].each do |i| fileinfo_tmp = FileInfo.new fileinfo_tmp.deserialize(i) @FileInfos << fileinfo_tmp end end @AttachmentResourceIds = params['AttachmentResourceIds'] @SignOrder = params['SignOrder'] @Status = params['Status'] @Creator = params['Creator'] @CreatedOn = params['CreatedOn'] unless params['Promoter'].nil? @Promoter = Recipient.new @Promoter.deserialize(params['Promoter']) end @TemplateType = params['TemplateType'] @Available = params['Available'] @OrganizationId = params['OrganizationId'] @CreatorId = params['CreatorId'] @PreviewUrl = params['PreviewUrl'] unless params['UserFlowType'].nil? @UserFlowType = UserFlowType.new @UserFlowType.deserialize(params['UserFlowType']) end @TemplateVersion = params['TemplateVersion'] @Published = params['Published'] @ShareTemplateId = params['ShareTemplateId'] unless params['TemplateSeals'].nil? @TemplateSeals = [] params['TemplateSeals'].each do |i| sealinfo_tmp = SealInfo.new sealinfo_tmp.deserialize(i) @TemplateSeals << sealinfo_tmp end end unless params['Seals'].nil? @Seals = [] params['Seals'].each do |i| sealinfo_tmp = SealInfo.new sealinfo_tmp.deserialize(i) @Seals << sealinfo_tmp end end end
def initialize(templateid=nil, templatename=nil, recipients=nil, components=nil, signcomponents=nil, description=nil, documentresourceids=nil, fileinfos=nil, attachmentresourceids=nil, signorder=nil, status=nil, creator=nil, createdon=nil, promoter=nil, templatetype=nil, available=nil, organizationid=nil, creatorid=nil, previewurl=nil, userflowtype=nil, templateversion=nil, published=nil, sharetemplateid=nil, templateseals=nil, seals=nil)
def initialize(templateid=nil, templatename=nil, recipients=nil, components=nil, signcomponents=nil, description=nil, documentresourceids=nil, fileinfos=nil, attachmentresourceids=nil, signorder=nil, status=nil, creator=nil, createdon=nil, promoter=nil, templatetype=nil, available=nil, organizationid=nil, creatorid=nil, previewurl=nil, userflowtype=nil, templateversion=nil, published=nil, sharetemplateid=nil, templateseals=nil, seals=nil) @TemplateId = templateid @TemplateName = templatename @Recipients = recipients @Components = components @SignComponents = signcomponents @Description = description @DocumentResourceIds = documentresourceids @FileInfos = fileinfos @AttachmentResourceIds = attachmentresourceids @SignOrder = signorder @Status = status @Creator = creator @CreatedOn = createdon @Promoter = promoter @TemplateType = templatetype @Available = available @OrganizationId = organizationid @CreatorId = creatorid @PreviewUrl = previewurl @UserFlowType = userflowtype @TemplateVersion = templateversion @Published = published @ShareTemplateId = sharetemplateid @TemplateSeals = templateseals @Seals = seals end