tencentcloud-sdk-ess 3.0.384 → 3.0.387

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4334c59112619aed2b085442c9a5b26ea118d19
4
- data.tar.gz: 0b68715c351cccacc6039b102c79605e977293ba
3
+ metadata.gz: 33503f0ccc0b93764f53f418655dcac5fbe77b19
4
+ data.tar.gz: 7d92d42725926657621e38898aa23cc56d06175d
5
5
  SHA512:
6
- metadata.gz: de5ee88b9f85ff9a1da282c9d000813b9d28f3ff37ae2742ae27e0796a718a12ade8ba7067c855d98fec87e4836b213e1aa6ea18d079e0674f26545395030957
7
- data.tar.gz: bfeaa2fe268ad6a0452cc1fc4ba4293dc82c115d04b88909330825a7bc4a84b84a98c560447bb00bd83f6cc231156ea79d65ce1d27b21ea23aea6346e52047c1
6
+ metadata.gz: 9fa55903e8ed28564c482018fcdab8644d84d714cb61e2e0b6083b5028cc6ed3ea01158644f6a4844547be3344aabc301630f02e04975f75f60c8ac850ddb8cd
7
+ data.tar.gz: 94e7946f8fef2898e91c39cdbf2a728927d0eff9058a07eaa1e37b97cec9b5457bedb8b5fd454895b230d1851f35b7ee3077edc150136aebec7a6f427b959997
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.384
1
+ 3.0.387
@@ -208,6 +208,33 @@ module TencentCloud
208
208
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
209
209
  end
210
210
 
211
+ # 提交企业签署流程审批结果
212
+ # 适用场景:
213
+ # 在通过接口(CreateFlow 或者CreateFlowByFiles)创建签署流程时,若指定了参数 NeedSignReview 为true,则可以调用此接口提交企业内部签署审批结果。
214
+ # 若签署流程状态正常,且本企业存在签署方未签署,同一签署流程可以多次提交签署审批结果,签署时的最后一个“审批结果”有效。
215
+
216
+ # @param request: Request instance for CreateFlowSignReview.
217
+ # @type request: :class:`Tencentcloud::ess::V20201111::CreateFlowSignReviewRequest`
218
+ # @rtype: :class:`Tencentcloud::ess::V20201111::CreateFlowSignReviewResponse`
219
+ def CreateFlowSignReview(request)
220
+ body = send_request('CreateFlowSignReview', request.serialize)
221
+ response = JSON.parse(body)
222
+ if response['Response'].key?('Error') == false
223
+ model = CreateFlowSignReviewResponse.new
224
+ model.deserialize(response['Response'])
225
+ model
226
+ else
227
+ code = response['Response']['Error']['Code']
228
+ message = response['Response']['Error']['Message']
229
+ reqid = response['Response']['RequestId']
230
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
231
+ end
232
+ rescue TencentCloud::Common::TencentCloudSDKException => e
233
+ raise e
234
+ rescue StandardError => e
235
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
236
+ end
237
+
211
238
  # 此接口(CreateMultiFlowSignQRCode)用于创建一码多扫流程签署二维码。
212
239
  # 适用场景:无需填写签署人信息,可通过模板id生成签署二维码,签署人可通过扫描二维码补充签署信息进行实名签署。常用于提前不知道签署人的身份信息场景,例如:劳务工招工、大批量员工入职等场景。
213
240
  # 适用的模板仅限于B2C(1、无序签署,2、顺序签署时B静默签署,3、顺序签署时B非首位签署)、单C的模板,且模板中发起方没有填写控件。
@@ -586,7 +586,7 @@ module TencentCloud
586
586
  # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
587
587
  # @param FlowName: 签署流程名称,最大长度200个字符
588
588
  # @type FlowName: String
589
- # @param Approvers: 签署参与者信息
589
+ # @param Approvers: 签署参与者信息,最大限制50方
590
590
  # @type Approvers: Array
591
591
  # @param FileIds: 签署pdf文件的资源编号列表,通过UploadFiles接口获取
592
592
  # @type FileIds: Array
@@ -612,12 +612,17 @@ module TencentCloud
612
612
  # @type Unordered: Boolean
613
613
  # @param CustomShowMap: 合同显示的页卡模板,说明:只支持{合同名称}, {发起方企业}, {发起方姓名}, {签署方N企业}, {签署方N姓名},且N不能超过签署人的数量,N从1开始
614
614
  # @type CustomShowMap: String
615
+ # @param NeedSignReview: 发起方企业的签署人进行签署操作是否需要企业内部审批。
616
+ # 若设置为true,审核结果需通过接口 CreateFlowSignReview 通知电子签,审核通过后,发起方企业签署人方可进行签署操作,否则会阻塞其签署操作。
617
+
618
+ # 注:企业可以通过此功能与企业内部的审批流程进行关联,支持手动、静默签署合同。
619
+ # @type NeedSignReview: Boolean
615
620
  # @param Agent: 应用号信息
616
621
  # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
617
622
 
618
- attr_accessor :Operator, :FlowName, :Approvers, :FileIds, :FlowType, :Components, :CcInfos, :NeedPreview, :FlowDescription, :Deadline, :Unordered, :CustomShowMap, :Agent
623
+ attr_accessor :Operator, :FlowName, :Approvers, :FileIds, :FlowType, :Components, :CcInfos, :NeedPreview, :FlowDescription, :Deadline, :Unordered, :CustomShowMap, :NeedSignReview, :Agent
619
624
 
620
- def initialize(operator=nil, flowname=nil, approvers=nil, fileids=nil, flowtype=nil, components=nil, ccinfos=nil, needpreview=nil, flowdescription=nil, deadline=nil, unordered=nil, customshowmap=nil, agent=nil)
625
+ def initialize(operator=nil, flowname=nil, approvers=nil, fileids=nil, flowtype=nil, components=nil, ccinfos=nil, needpreview=nil, flowdescription=nil, deadline=nil, unordered=nil, customshowmap=nil, needsignreview=nil, agent=nil)
621
626
  @Operator = operator
622
627
  @FlowName = flowname
623
628
  @Approvers = approvers
@@ -630,6 +635,7 @@ module TencentCloud
630
635
  @Deadline = deadline
631
636
  @Unordered = unordered
632
637
  @CustomShowMap = customshowmap
638
+ @NeedSignReview = needsignreview
633
639
  @Agent = agent
634
640
  end
635
641
 
@@ -670,6 +676,7 @@ module TencentCloud
670
676
  @Deadline = params['Deadline']
671
677
  @Unordered = params['Unordered']
672
678
  @CustomShowMap = params['CustomShowMap']
679
+ @NeedSignReview = params['NeedSignReview']
673
680
  unless params['Agent'].nil?
674
681
  @Agent = Agent.new
675
682
  @Agent.deserialize(params['Agent'])
@@ -708,7 +715,7 @@ module TencentCloud
708
715
  # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
709
716
  # @param FlowName: 签署流程名称,最大长度200个字符
710
717
  # @type FlowName: String
711
- # @param Approvers: 签署流程参与者信息
718
+ # @param Approvers: 签署流程参与者信息,最大限制50方
712
719
  # @type Approvers: Array
713
720
  # @param FlowType: 签署流程的类型(如销售合同/入职合同等),最大长度200个字符
714
721
  # @type FlowType: String
@@ -730,14 +737,19 @@ module TencentCloud
730
737
  # @type Unordered: Boolean
731
738
  # @param CustomShowMap: 合同显示的页卡模板,说明:只支持{合同名称}, {发起方企业}, {发起方姓名}, {签署方N企业}, {签署方N姓名},且N不能超过签署人的数量,N从1开始
732
739
  # @type CustomShowMap: String
740
+ # @param NeedSignReview: 发起方企业的签署人进行签署操作是否需要企业内部审批。
741
+ # 若设置为true,审核结果需通过接口 CreateFlowSignReview 通知电子签,审核通过后,发起方企业签署人方可进行签署操作,否则会阻塞其签署操作。
742
+
743
+ # 注:企业可以通过此功能与企业内部的审批流程进行关联,支持手动、静默签署合同。
744
+ # @type NeedSignReview: Boolean
733
745
  # @param RelatedFlowId: 暂未开放
734
746
  # @type RelatedFlowId: String
735
747
  # @param Agent: 应用相关信息
736
748
  # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
737
749
 
738
- attr_accessor :Operator, :FlowName, :Approvers, :FlowType, :ClientToken, :CallbackUrl, :DeadLine, :UserData, :FlowDescription, :Unordered, :CustomShowMap, :RelatedFlowId, :Agent
750
+ attr_accessor :Operator, :FlowName, :Approvers, :FlowType, :ClientToken, :CallbackUrl, :DeadLine, :UserData, :FlowDescription, :Unordered, :CustomShowMap, :NeedSignReview, :RelatedFlowId, :Agent
739
751
 
740
- def initialize(operator=nil, flowname=nil, approvers=nil, flowtype=nil, clienttoken=nil, callbackurl=nil, deadline=nil, userdata=nil, flowdescription=nil, unordered=nil, customshowmap=nil, relatedflowid=nil, agent=nil)
752
+ def initialize(operator=nil, flowname=nil, approvers=nil, flowtype=nil, clienttoken=nil, callbackurl=nil, deadline=nil, userdata=nil, flowdescription=nil, unordered=nil, customshowmap=nil, needsignreview=nil, relatedflowid=nil, agent=nil)
741
753
  @Operator = operator
742
754
  @FlowName = flowname
743
755
  @Approvers = approvers
@@ -749,6 +761,7 @@ module TencentCloud
749
761
  @FlowDescription = flowdescription
750
762
  @Unordered = unordered
751
763
  @CustomShowMap = customshowmap
764
+ @NeedSignReview = needsignreview
752
765
  @RelatedFlowId = relatedflowid
753
766
  @Agent = agent
754
767
  end
@@ -775,6 +788,7 @@ module TencentCloud
775
788
  @FlowDescription = params['FlowDescription']
776
789
  @Unordered = params['Unordered']
777
790
  @CustomShowMap = params['CustomShowMap']
791
+ @NeedSignReview = params['NeedSignReview']
778
792
  @RelatedFlowId = params['RelatedFlowId']
779
793
  unless params['Agent'].nil?
780
794
  @Agent = Agent.new
@@ -803,6 +817,63 @@ module TencentCloud
803
817
  end
804
818
  end
805
819
 
820
+ # CreateFlowSignReview请求参数结构体
821
+ class CreateFlowSignReviewRequest < TencentCloud::Common::AbstractModel
822
+ # @param Operator: 调用方用户信息,userId 必填
823
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
824
+ # @param FlowId: 签署流程编号
825
+ # @type FlowId: String
826
+ # @param ReviewType: 企业内部审核结果
827
+ # PASS: 通过
828
+ # REJECT: 拒绝
829
+ # @type ReviewType: String
830
+ # @param ReviewMessage: 审核原因
831
+ # 当ReviewType 是REJECT 时此字段必填,字符串长度不超过200
832
+ # @type ReviewMessage: String
833
+ # @param Agent: 应用相关信息
834
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
835
+
836
+ attr_accessor :Operator, :FlowId, :ReviewType, :ReviewMessage, :Agent
837
+
838
+ def initialize(operator=nil, flowid=nil, reviewtype=nil, reviewmessage=nil, agent=nil)
839
+ @Operator = operator
840
+ @FlowId = flowid
841
+ @ReviewType = reviewtype
842
+ @ReviewMessage = reviewmessage
843
+ @Agent = agent
844
+ end
845
+
846
+ def deserialize(params)
847
+ unless params['Operator'].nil?
848
+ @Operator = UserInfo.new
849
+ @Operator.deserialize(params['Operator'])
850
+ end
851
+ @FlowId = params['FlowId']
852
+ @ReviewType = params['ReviewType']
853
+ @ReviewMessage = params['ReviewMessage']
854
+ unless params['Agent'].nil?
855
+ @Agent = Agent.new
856
+ @Agent.deserialize(params['Agent'])
857
+ end
858
+ end
859
+ end
860
+
861
+ # CreateFlowSignReview返回参数结构体
862
+ class CreateFlowSignReviewResponse < TencentCloud::Common::AbstractModel
863
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
864
+ # @type RequestId: String
865
+
866
+ attr_accessor :RequestId
867
+
868
+ def initialize(requestid=nil)
869
+ @RequestId = requestid
870
+ end
871
+
872
+ def deserialize(params)
873
+ @RequestId = params['RequestId']
874
+ end
875
+ end
876
+
806
877
  # CreateMultiFlowSignQRCode请求参数结构体
807
878
  class CreateMultiFlowSignQRCodeRequest < TencentCloud::Common::AbstractModel
808
879
  # @param TemplateId: 模板ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ess
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.384
4
+ version: 3.0.387
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common