lib/v20210519/client.rb in tencentcloud-sdk-tdid-3.0.497 vs lib/v20210519/client.rb in tencentcloud-sdk-tdid-3.0.498

- old
+ new

@@ -1181,35 +1181,9 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end - # 该接口已废弃 - - # 验证购买 - - # @param request: Request instance for VerifyPurchase. - # @type request: :class:`Tencentcloud::tdid::V20210519::VerifyPurchaseRequest` - # @rtype: :class:`Tencentcloud::tdid::V20210519::VerifyPurchaseResponse` - def VerifyPurchase(request) - body = send_request('VerifyPurchase', request.serialize) - response = JSON.parse(body) - if response['Response'].key?('Error') == false - model = VerifyPurchaseResponse.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 - end end end end \ No newline at end of file