lib/v20210526/client.rb in tencentcloud-sdk-essbasic-3.0.523 vs lib/v20210526/client.rb in tencentcloud-sdk-essbasic-3.0.524
- old
+ new
@@ -331,9 +331,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 创建预发起合同
+
+ # @param request: Request instance for ChannelCreatePrepareFlow.
+ # @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreatePrepareFlowRequest`
+ # @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelCreatePrepareFlowResponse`
+ def ChannelCreatePrepareFlow(request)
+ body = send_request('ChannelCreatePrepareFlow', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = ChannelCreatePrepareFlowResponse.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 ChannelCreateReleaseFlow.
# @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateReleaseFlowRequest`
\ No newline at end of file