lib/v20210526/client.rb in tencentcloud-sdk-essbasic-3.0.414 vs lib/v20210526/client.rb in tencentcloud-sdk-essbasic-3.0.415

- old
+ new

@@ -29,10 +29,12 @@ end # 指定需要批量撤销的签署流程Id,批量撤销合同 # 客户指定需要撤销的签署流程Id,最多100个,超过100不处理;接口失败后返回错误信息 + # 注意: + # 能撤回合同的只能是合同的发起人或者发起企业的超管、法人 # @param request: Request instance for ChannelBatchCancelFlows. # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelBatchCancelFlowsRequest` # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelBatchCancelFlowsResponse` def ChannelBatchCancelFlows(request) @@ -77,11 +79,14 @@ rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 指定需要批量撤销的签署流程Id,获取批量撤销链接 - # 客户指定需要撤销的签署流程Id,最多100个,超过100不处理;接口调用成功返回批量撤销合同的链接,通过链接跳转到电子签小程序完成批量撤销 + # 客户指定需要撤销的签署流程Id,最多100个,超过100不处理; + # 接口调用成功返回批量撤销合同的链接,通过链接跳转到电子签小程序完成批量撤销; + # 注意: + # 能撤回合同的只能是合同的发起人或者发起企业的超管、法人 # @param request: Request instance for ChannelCreateBatchCancelFlowUrl. # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateBatchCancelFlowUrlRequest` # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateBatchCancelFlowUrlResponse` def ChannelCreateBatchCancelFlowUrl(request) @@ -235,9 +240,33 @@ def ChannelGetTaskResultApi(request) body = send_request('ChannelGetTaskResultApi', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ChannelGetTaskResultApiResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + + # 合同文件验签 + + # @param request: Request instance for ChannelVerifyPdf. + # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelVerifyPdfRequest` + # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelVerifyPdfResponse` + def ChannelVerifyPdf(request) + body = send_request('ChannelVerifyPdf', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ChannelVerifyPdfResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file